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:
Posts: 146
ok, fixed that with <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=191&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.
Posts: 146
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&name=gallery&file=index&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.
Posts: 146
http://www.nukeforums.com/forums/viewtopic.php?topic=9686&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>
Posts: 8
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 -->