Ok, here's the good, the bad and the ugly about the Random block.
The good:
<LI> You can find the Random Block <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Contributed%20Code&" TARGET="_blank">here</A><!-- BBCode End -->.
<LI> It works with PostNuke, PHP-Nuke and in standalone mode.
<LI> While it has a few issues, it's pretty fast and reliable
The bad: The current random block code is known to:
<LI> Inflate session count numbers on PostNuke
<LI> be hard to use on some sites because of the way it uses include("http://..."); calls
The ugly:
I have no time to support this code. I know that it's got issues and could be rewritten, but there are plenty of people who could work on that. Instead, I'm focussing on getting G2 in gear so that we can all have a better Gallery. I'm sure y'all understand this. If somebody out there wants to:
<LI> Be a moderator for this forum and provide assistance
<LI> Take over as the owner for this code (it would be a big plus if you own all three implementations -- PostNuke, PHP-Nuke and standalone)
You should send me a private message, since I'm probably not going to be spending much time even reading this forum.
-Bharat[/]
[/]
[/]
Posts: 9
Why i cant download the random Block?
The link is not working!!!
Please where can i download RANDOM BLOCK???
Posts: 146
yes. please update this for use with phpnuke 6.5
the link doesnt work :mad:
Posts: 573
http://www.yankeesinthesouth.org
links to both the block-random.php and the fix for phpNuke 6.5 (for gallery 1.3.3 and 1.3.4-cvs)
Posts: 4
LOL dmolavi.. you have to reg to get it? Jeez, don't you peeps have anything to return for getting things for free, instead of just trying to build your userbase.
Got a better one anyway from a "no reg req" site.
Bang me and call me Sally!
Posts: 2
I've tried registering twice now with YankeesInTheSouth (using two different usernames and two different email addresses) and no luck, I never get the automated confirmation email
Does anyone know where I could get the fix for this, I am currently using PHP-Nuke v.6.5 and Gallery v. 1.3.4-cvs-34
Have tried all of the tips and hints listed on this forum but am still getting the:
Any help in this matter would be so greatly appreciated :D
Posts: 26
Mind sharing where you got the better one? The registration on dmolavi's site is not working for me either.
Posts: 2
I also have this problem ........... :cry:
I am using php 4.3.2 and Gallery 1.3.3 ...............
Posts: 3474
I'm not sure what random block you're using, but I know in the case of the original random block, there is a small bug that causes an equivalent error. To fix it, change this line:
$choose = rand(1, $count);
to:
$choose = rand(1, (int) $count);
-Beckett (
)
And if you're using PHP-Nuke 6.5, you shouldn't be using Gallery 1.3.3. You should be using Gallery 1.3.4, which contains updated code to handle changes in PHP-Nuke after version 6.
Posts: 2
Thank for your help ~~ :wink:
Posts: 2
I am having some issues as well. I receive one of two respones once in awhile.
The first is when the Random Block trys to pull up a pic sometimes
The second is when you click on certain pics. They work in the gallery but not from the block. Most do this is only a few pics making this error.
Fatal error: Call to a member function on a non-object in /home/drugzcla/public_html/Photos/view_photo.php on line 80
I have made the small adjustment in the block you have addressed but that didn't appear to help or hurt it.
I am running gallery 1.3.4 and phpnuke 6.5
Posts: 14
Your second error occurs when gallery_random picks a thumbnail that corresponds to a nested album in stead of a photo.
I've just posted another entry about this:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=1134&postdays=0&postorder=asc&start=23