PHP-Nuke 6.0 problems

SamBeckett
SamBeckett's picture

Joined: 2002-09-29
Posts: 146
Posted: Sun, 2002-09-29 20:14

Warning: rand() expects parameter 2 to be long, string given in /home/www/news/modules/gallery/block-random.php on line 138
ERROR: requested index [] out of bounds [197]
Fatal error: Call to a member function on a non-object in /home/www/news/modules/gallery/classes/Album.php on line 570

help! :eek:

 
SamBeckett
SamBeckett's picture

Joined: 2002-09-29
Posts: 146
Posted: Sun, 2002-09-29 20:41

ok, fixed that with <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=191&amp;5" TARGET="_blank">FIX</A><!-- BBCode End -->

now I'm trying to add the block, and I'm getting a my entire site being redisplayed backint my random image block.

 
SamBeckett
SamBeckett's picture

Joined: 2002-09-29
Posts: 146
Posted: Sun, 2002-09-29 22:21

Ok, this is what I tried when creating a block:
Title: Random Image
RSS/RDF file URL: [kept blank] Custom
Content
http://www.mysite.com/modules.php?op=modload&amp;name=gallery&amp;file=index&amp;include=block-random.php
Who can View- registered

and what I get is a copy of my main site page (which is not loged in) inside of the random image block. I've also tried creating a module with the same results.

 
SamBeckett
SamBeckett's picture

Joined: 2002-09-29
Posts: 146
Posted: Sun, 2002-09-29 23:05

http://www.nukeforums.com/forums/viewtopic.php?topic=9686&amp;forum=17
doesnt work

FOUND A FIX! this is what you do---

create www/blocks/block-random.php
<?php
if (eregi("block-random.php",$PHP_SELF)) {
Header("Location: http://www.sitename.com/modules/gallery/block-random.php");
die();
}
?>

Add Block (put in CONTENT)
<iframe src="http://www.sitename.com/blocks/block-random.php"" width="150" height="250" frameborder="0" scrolling="no">
</iframe>

 
cyberclark

Joined: 2002-10-30
Posts: 8
Posted: Wed, 2002-10-30 09:20

Thanks Sam this fixed the problem for me, well a combination of this iframe and setting the cache reload from 0 to 1 as mentioned in another post.

However now that the content is in an iFrame when you click on the links (ie the pic or the text link) it opens in that frame.

I have tried placing a target="_top" or target="_main" in the block-random.php towards the end of the href statement but unfortunatly I do not know enough about .php coding to get this to work for me.

Any of you guru's out there know of a simple way to get the content to open back into nuke? and if not nuke I could live with it at least opening in a whole new window or something?!?

thanks in advance for any help

Steve
<!-- BBCode Start --><A HREF="http://www.cyberclark.com/community" TARGET="_blank">Cyberclark.com</A><!-- BBCode End -->