Hi. I am trying to run 2 random gallery blocks on 2 different galleries on the same site.
This means 1 random block for each individual gallery.
I always get an error that gallery1 is already using the command....
can anybody fix this problem? know how to run 2 blocks on one server
Posts: 77
Hi,
which block do you use? The original one from Bharat or my modification for PN?
Please post the complete error message!
Joerg
Posts: 3
Fatal error: Cannot redeclare blocks_gallery_random_block() (previously declared in /XXXXX/fst/var/www/html/modules/babesgallery/pnblocks/gallery_random.php:53) in /XXXXX/fst/var/www/html/modules/gallery/pnblocks/gallery_random.php on line 53
this will occur throughout the script for every function.
Posts: 77
Hi,
Ok, I think we get a problem here. Cause the blocks are included in the rest of the PN source when the page is displayed. So every function in the block is defined twice. I don't know if I can fix this problem. I have to think about it, but it seems difficult.
Joerg
Posts: 3
Thank you. If it's too difficult, are there alternatives?
Thanks again
Posts: 77
Hi,
there is only one workaround at the moment. Put the pictures in two different albums of one gallery. Then get the <!-- BBCode Start --><A HREF="http://www.holzapfel-online.de/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=9" TARGET="_blank">latest code</A><!-- BBCode End -->. Now you can place multiple random-blocks on your page. In each of the random-blocks you can select (in the block config) a different album for display.
Joerg
Posts: 172
For the random block and top 10 etc code cna be found at:
http://www.transitgallery.com/files/
Hope it helps
Posts: 2
Hi josephp,
Sounds good!!
I have questions about your random block function.
1 - Can your random block specify an album?
2 - Can two or more blocks be placed?
Thanks
Posts: 172
You can have as much you want as long you inculde the code in php pages
Thanks !
Posts: 2
Thank you for replay.
:smile: