Ok Got Block working with PHP-Nuke
mikem
Joined: 2002-08-22
Posts: 19 |
Posted: Thu, 2002-09-19 21:50 |
Here is what I did. Step 1. Step 2. Look for this If "block-random.php", is not there, then you have to add it. Close and save index.php, upload back to gallery folder. Step 3. add this : if (@file_exists($content)) { right after : function themesidebox($title, $content) { Save and re-upload your theme.php file. Step 4. replace "you.server" with..well you know what to replace ti with I hope. If it gives you errors when you activate the blcok, try opening block-random.php and look for this line if (time() - $mtime < CACHE_EXPIRED) { Change the rebuild value from 0 to 1. This worked for me. It was having trouble reading my cache file and would give errors. If it STILL doesn't work..well. I amd no help then. Good luck. Back up your files before you make changes to them. Mike |
|
Posts: 3
OK, I got the random block to work by using a combination of two methods seen in this forum! I used the block creation method from this thread:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=903&3
Then used the php file fiddles from this one. I did have to set $rebuild to 1 as I kept getting some out of range error.
Thanks all, much appreciated! :grin:
Posts: 3
That was with phpNuke 5.6 btw, soon to upgrade to 6 I think...
Posts: 3
Ah, but now the hyperlinks open in the block :???:
Need to read some more messages and see how to fix that.
Posts: 1
I did the same thing as Rutty and got it to work BUT I would like for my icons to be at the top instead of the text. I'm a newbie at php and have tried cutting and pasting.
My site name is : <!-- BBCode Start --><A HREF="http://burbankms.lausd.k12.ca.us/index.php" TARGET="_blank">Piece of the Ocean</A><!-- BBCode End -->