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 
Global Templates, php includes and Guestbook solved  XML
Forum Index » Support Forum
Author Message
Anonymous



On my site, I have a global template. I can make one change to one file and it propagates the entire website. With Guestbook, you use the templates that are in the admin, and they are hard coded. one would have to change these templates every time they made a global change. What got me frustrated, was when I wanted to use a global php include program, and wanted it to work in guestbook too. Nothing works in guestbook, as far as making a call to an external php program. I discovered, if you stripped the templates, and have nothing in them except what is needed (JavaScript or whatever for popup image windows) and then wrap your template around the guestbook index.php, addentry.php, and comment.php with all your include statements such as include global header, include global menu, include global footer, include some global php program etc. I found that not only does guestbook run much faster, but also I can make the page output the way I want it, and it stays under the global website configuration of the entire site.

My advise, don't use the header and footer templates in the admin, and just make guestbook run your html direct.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum