HELP PLZ! Trying to run 2 random gallery blocks.
i7iceguy
Joined: 2002-11-02
Posts: 3 |
![]() |
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. can anybody fix this problem? know how to run 2 blocks on one server |
|
joerg
![]()
Joined: 2002-10-12
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 |
|
i7iceguy
Joined: 2002-11-02
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. |
|
joerg
![]()
Joined: 2002-10-12
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 |
|
i7iceguy
Joined: 2002-11-02
Posts: 3 |
![]() |
Thank you. If it's too difficult, are there alternatives? Thanks again |
|
joerg
![]()
Joined: 2002-10-12
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 |
|
josephp
Joined: 2002-10-03
Posts: 172 |
![]() |
For the random block and top 10 etc code cna be found at: http://www.transitgallery.com/files/ Hope it helps |
|
yshima
![]()
Joined: 2002-10-25
Posts: 2 |
![]() |
Hi josephp, Sounds good!! Thanks |
|
josephp
Joined: 2002-10-03
Posts: 172 |
![]() |
Quote:
Hi josephp, You can have as much you want as long you inculde the code in php pages Thanks ! |
|
yshima
![]()
Joined: 2002-10-25
Posts: 2 |
![]() |
Thank you for replay. |
|