(Untitled)

Goodmorning everyone..and plz somebody help me.

I am trying make zenphoto to open in different Temblate..
I have two pages,one in English and one in Greek..I have changed the default theme to be like my page(in Greek)..Now i have to open from the english version a different template which it would be tranclated..How can I do this?

Tnx.

Comments

  • Zenphoto does not support having multiple themes for 1 gallery. I was messing around at one point with zenphoto and had the theme set via a cookie. Which I was able to get to work. It was my larger scope of what I was trying to do that made me trash the whole project. Maybe you have better knowledge of php and can do more with it. I am by no means a php expert.

    http://beta.chilifrei.net/zpthemeswitcher/index.php

    I am setting the cookie like this in the main index.php
    $themepath = 'themes';
    if (isset($_COOKIE['theme']))
    {
    $theme = $_COOKIE['theme'];
    } else if (isset($_POST['theme']))
    { $theme = $_POST['theme'];
    } else
    { $theme = 'Default'; }

    $_zp_themeroot = WEBPATH . "/$themepath/$theme";
    echo ("$theme\n");
    echo $_COOKIE['theme'];

    as you can see.. 1) I did this like 8 months ago and know it is wrong.
    and 2) as you can see it doesnt keep the theme setting from page to page. and 3) not all themes seem to work using this method.

    I have been on these boards for just about a year now, this is the closest I have seen to multiple themes for 1 gallery... hope it is some sort of a head start
Sign In or Register to comment.