You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 67 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - multiple themes depending on ... [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Q-wulf
Nuke Cadet
Nuke Cadet


Joined: Dec 29, 2005
Posts: 9


PostPosted: Wed Jan 04, 2006 2:06 pm Reply with quoteBack to top

HI. I've got a Problem.

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.


I hope someone can help me.

Greetz
Q-Wulf
Find all posts by Q-wulfView user's profileSend private message
Q-wulf
Nuke Cadet
Nuke Cadet


Joined: Dec 29, 2005
Posts: 9


PostPosted: Thu Jan 05, 2006 6:40 am Reply with quoteBack to top

I found 2 sites that might help:
http://themechooser.com/cpgNuke/ <--- if you use the theme chooser there you get
http://themechooser.com/cpgNuke/index.php?prevtheme=CR-Blue but it does not stay, if you klick teh next link, its gone.

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();
}

require_once("mainfile.php");
$title = "Theme Chooser";
global $theme, $Default_Theme, $name;
if($name==""){$name="index";}
if($name!=""){
$content="";
$content .= "<center><table border=2><tr><td><center>";
$content .= "<form action=\"modules.php\" method=\"POST\">";
$content .= "<input type=\"hidden\" name=\"name\" value=\"$name\">";
$content .= "<input type=\"hidden\" name=\"theme\" value=\"$theme\">";
$content .= "<center><B>Select another<br>theme from the list.</B></center><BR><br>";
$content .= "<select name=\"theme\" onchange=submit();>";
    $handle=opendir('themes');
    while ($file = readdir($handle)) {
   if ( (!ereg("[.]",$file)) ) {
      $themelist .= "$file ";
   }
    }
    closedir($handle);
    $themelist = explode(" ", $themelist);
    sort($themelist);
    for ($i=0; $i < sizeof($themelist); $i++) {
       if($themelist[$i]!="") {
           $content .= "<option value=\"$themelist[$i]\" ";
          if((($userinfo[theme]=="") && ($themelist[$i]=="$Default_Theme")) || ($userinfo[theme]==$themelist[$i]))
          $content .= "selected";
       $content .= ">$themelist[$i]\n";
   }
    }
$content .= "</select>";
$content .= "</form>";
$content .="</center>";
$content .= "</td></tr></table></center>";
}
else
{
$content = "";
$content .= "<center>Not available if no modules are in use.</center>";
}
?>


I hope someone can help me,
Greetz Q-Wulf
Find all posts by Q-wulfView user's profileSend private message
MMaynard
Nuke Soldier
Nuke Soldier


Joined: Mar 15, 2005
Posts: 30

Location: New York

PostPosted: Thu Jan 05, 2006 1:48 pm Reply with quoteBack to top

AutoTheme will allow you to do this easily.
http://www.spidean.com

_________________
Free,Donation and Custom themes
http://www.PortalThemes.com
Find all posts by MMaynardView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.203 Seconds - 231 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::