HELP PLZ! Trying to run 2 random gallery blocks.

i7iceguy

Joined: 2002-11-02
Posts: 3
Posted: Sat, 2002-11-02 12:12

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

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Sat, 2002-11-02 16:06

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
Posted: Sat, 2002-11-02 19:53

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
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Sat, 2002-11-02 21:09

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
Posted: Sat, 2002-11-02 23:30

Thank you. If it's too difficult, are there alternatives?

Thanks again

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Sun, 2002-11-03 20:10

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&amp;name=Downloads&amp;file=index&amp;req=getit&amp;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
Posted: Tue, 2002-11-05 23:30

For the random block and top 10 etc code cna be found at:

http://www.transitgallery.com/files/

Hope it helps

 
yshima
yshima's picture

Joined: 2002-10-25
Posts: 2
Posted: Wed, 2002-11-06 09:29

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

 
josephp

Joined: 2002-10-03
Posts: 172
Posted: Wed, 2002-11-06 19:33
Quote:
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

You can have as much you want as long you inculde the code in php pages

Thanks !

 
yshima
yshima's picture

Joined: 2002-10-25
Posts: 2
Posted: Wed, 2002-11-06 20:45

Thank you for replay.
:smile: