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 
php in templates doesn't work  XML
Forum Index » Advanced Guestbook Forum
Author Message
beg
Beginner

Joined: 11/09/2005 13:42:44
Messages: 5
Offline

Hi!

I want to customize the template files also with php statements.

The problem is that these php is put out in the html-source code instead of beeing processed..

how can the php statements in the template files can be processed?

maybe someone can me help with this?

thanks,
Bernhard
Carbonize
Master
[Avatar]

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

They cannot. The templates are loaded as strings then any variables in the strings converted.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 11/09/2005 13:42:44
Messages: 5
Offline

Hi Carbonize!

Thank you very much for the fast reply!

so there is no way to write php into the templates?

maybe you can think of an other solution for this problem:

I have a website in different languages, but want to use only one language version for the guestbook (english). So there are links to the guestbook from different sites in a certain language. to get back to the language the user came from I wanted to pass a language var to the guestbook site, so there can be an if-selection for the navigation with the correct links back to the site with the choosen language..

how can I do this or something more or less similar? Do I need to use the whole guestbook-thing for each language version and is this no problem for the database?

Bernhard
Carbonize
Master
[Avatar]

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

You could easily use the guestbook in the various languages. You just need to set lang iin a cookie to reflect the language for the guestbook.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 11/09/2005 13:42:44
Messages: 5
Offline

the point is, that I don't want (and need) the guestbook in different languages, but all the other pages with there navigations are in different languages.

So if somebody from a page in german goes to the guestbook, how do I manage it, that he gets back to the german site (and not english, french, ..) from the navigation in the guestbook?
beg
Beginner

Joined: 11/09/2005 13:42:44
Messages: 5
Offline

this is the site:
http://ambition.gehberger.at

if you click on 'de' in the upper right corner you get to the german version in the german subdirectory.

there will be links for different language versions.

for each language versions there will be translated pages in the appropriated subdirectories like german, english, french, ..

but there will be only one directory guestbook.

so how can I manage it, that I can link to the guestbook form different pages and link back to them?

I opened the english icon to test this - there is no translation yet, but you will see the directory and the problem with the guestbook to get back to the english and not german pages..

thank you very much for looking after this!
I have no idea of getting around with this reasonably..

Bernhard
Carbonize
Master
[Avatar]

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

Have a look at Lazarus. It comes with an include file for putting the guestbook in any page. This way you could easily just put it in a page for each language.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 11/09/2005 13:42:44
Messages: 5
Offline

ok, thank you very much for your help.

I will take a look at that and hope that I don't have to do all the customization again..

Bernhard
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum