If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
add script to advanced guestbook 2.3.1  XML
Forum Index » Support Forum
Author Message
Anonymous



Is it possible to add a script to the advanced guestbook templates...either header.php, body.php or footer.php? I'd like to add an image scroller to the page and have tried using includes but it doesn't work...so I'm guessing the answer to my question is no...but I thought I'd ask anyway
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I'm guessing you mean Javascript in which case yes. You just need to copy the code into the relevant template file(s).

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



no, I meant include a separate php script file. It's an image scroller script that pulls thumbnails from Coppermine Photo Gallery. I've tried <? include('myscript.php'); ?> as well as entering the entire code at the top of the header.php and body.php files.

It doesn't get parsed (I believe that's the right term). I can see the code (<? include('myscript.php')> when I view the page source.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

It is possible I'm just to tired to think of it right now. You'd basically have to merge the thumbnail script into the guestbook and turn the result into a variable to be processed as part of the template.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum