I am creating a Multigaming Page atm. preview on http://dsd.wolfgang-falk.com . My Problem is : i would like to use themes based on different Conntent.
eg. We have a Community Section a WOW section and a Vanguard section.
So now if someone uses a Link on my left navi menu , the Theme would be changed. I do not want it to be done with a dropdown box etc, it should change automatically.
eg, now i have following linktype
contentid-1.html
and if i want the link to hange the style it is kinda like this :
contentid-1.html&changetheme=WOWTheme
This is one Idea (better one)
The one that is is not that good, but would be a solution too, would be to change the Buttuons that are now specified as "Home" "Downloads" "Forum" "Supporters" "Your account" into "Community" "Vanguard" " WOW" and let em change the theme.
then, there is altho a site Sengers.au. they have a block, which almost does what i need. How can i change this block, to work like a module, or insert a part of this code into my platinum 7.6 Template so it changes the Template to the Template i want it to change to ?
it has 2 files:
Code:
//visittheme.php (to be included in mainfile.php)
<?php
global $user, $ThemeSel, $theme, $sessiontheme, $Default_Theme, $name;
if(IsSet($admin))$limitend=$adlimit;
$set_reg=ini_get("register_globals");
if($set_reg!="1"){ini_set("register_globals", "1");}
if($theme!="")$sessiontheme=$theme;
if($sessiontheme==""){$sessiontheme=$Default_Theme;$ThemeSel=$sessiontheme; session_register('sessiontheme');}
$ThemeSel=$sessiontheme; $Default_Theme=$sessiontheme; $theme=$sessiontheme;
?>
Code:
//Block-Visit-Theme.php
<?php
if (eregi("block-VisitTheme.php", $_SERVER['PHP_SELF'])){
Header("Location: index.php");
die();
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum