Author |
Message |
11/09/2005 13:48:09
|
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
|
|
11/09/2005 14:13:52
|
Carbonize
Master
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 |
|
11/09/2005 16:18:58
|
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
|
|
11/09/2005 17:19:53
|
Carbonize
Master
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 |
|
11/09/2005 17:26:40
|
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?
|
|
11/09/2005 17:35:08
|
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
|
|
11/09/2005 17:44:19
|
Carbonize
Master
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 |
|
11/09/2005 17:57:59
|
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
|
|
|