Member
Member
elkiwi   2008-02-20, 09:44
#1

Hi, I'm trying to intergrate zenphoto 1.1 into a multi language site and although I don't need zen in other languages, I do want to be able to pass a language variable to it so I can navigate to a page related to a gallery in the correct language.

My site stores the lang in the url like this /en/dir/ /es/dir/ and the chmod gets the en part and gives it to my php page. Is there a way I can do this with the zenphoto chmod without having a separate installation for each language?

Again I don't need zenphoto to display the other languages, just hold the variable for it so I can return to my site pages in the correct language.

Thanks for any help

Administrator
Administrator
acrylian   2008-02-20, 10:16
#2

I think the best solution would be to use a cookie.

Member
Member
DirkSohler   2008-02-21, 12:18
#3

Or use a session variable. More secure and compatible as a cookie.

Administrator
Administrator
acrylian   2008-02-21, 12:46
#4

Yeah, right.

Member
Member
elkiwi   2008-02-21, 14:59
#5

Thanks for that...so i need to set the cookie/session in the theme album.php index.php etc or just the core index.php?

Member
Member
DirkSohler   2008-02-22, 14:18
#6

Why do you want to set this in the gallery at all? Why don’t you use it on the entry page of your home page and set it from there? Then you don’t need to use it in the gallery.

But if you do so, you need to set it in the index file before any other output started, because it will be sent as header, if you want to use a cookie.

For using sessions i’m not sure, but i heard, you need to “encapsulate” all output with the session start and session end tags. php.net will help

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.