for each photo a different banner ad script

pinoepel

Joined: 2011-03-22
Posts: 10
Posted: Tue, 2011-03-22 09:56

Hi,

I look for in Gallery2 following possibility: Photo 1 gets banner script 1, photo 2 gets banner script 2 and so for each photo, a special banner. Is that possible? if yes, how?

Thanks

 
pinoepel

Joined: 2011-03-22
Posts: 10
Posted: Tue, 2011-03-22 10:17

tried it with custom fields but the code comes out as a text, not as an embedded javascript. any help or idea?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-03-22 11:51
 
pinoepel

Joined: 2011-03-22
Posts: 10
Posted: Tue, 2011-03-22 12:08

thank you! maybe the following is possible: the script, which saves the edited customfields, could save the scripts in raw script and with more characters? now it replaces the "<" and ">" with "&lt;" and &gt;... if this would be possible to disable, comments are no risk, right? but where I have to change the script?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-03-22 12:21
 
pinoepel

Joined: 2011-03-22
Posts: 10
Posted: Tue, 2011-03-22 12:41

okay, this means, my idea doesnt work? thank you anyway ;) I use your solution!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-03-22 12:51

gallery filters html everywhere with htmlSafe()
so if you want raw unfiltered html anywhere you'll have to edit htmlSafe()
BUT this is a global change and will also allow raw unfiltered html everywhere including user comments

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
pinoepel

Joined: 2011-03-22
Posts: 10
Posted: Tue, 2011-03-22 12:53

thank you very much for supporting!