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, 254 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 - Different theme for every module [ ]
 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
sylver83
Nuke Cadet
Nuke Cadet


Joined: Apr 08, 2006
Posts: 7

Location: sabac,serbia

PostPosted: Tue Jan 09, 2007 5:11 am Reply with quoteBack to top

How can i make that every module has own theme? For example:

module downloads -> theme no1
module feedback -> theme no2

etc...

Tnx
Find all posts by sylver83View user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Tue Jan 09, 2007 9:21 am Reply with quoteBack to top

BACKUP FILES FIRST!!!
Quote:

First thing you need to do is make a backup of mainfile.php and place it somewhere safe

Second, this file is hefty so you should open it in a text editor that shows line numbers.
What were looking for is around line #1198 ( or search for: function get_theme() )

Directly below you should see Code:
global $user, $cookie, $Default_Theme;


Change that to Code:
global $user, $cookie, $Default_Theme, $name;


What we did was declare variable $name as a global for later.

Next, find this block of code below:
Code:
$ThemeSelSave = $ThemeSel;
return($ThemeSel);
}


and directly above add this:

Code:
if ($name == "Supporters" || $name == "Forums" || $name == "Downloads")
{$ThemeSel = "T-Platinum";}


Basically, all were telling the engine to do is if $name (module name) is equal to whatever module you define it as
AND ( || ) then return that theme ($ThemeSel) for the selected module.

Adapt above further if you require EVERY module to have different theme
BUT beware.. doing this can slow your site down
Wink

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
sylver83
Nuke Cadet
Nuke Cadet


Joined: Apr 08, 2006
Posts: 7

Location: sabac,serbia

PostPosted: Tue Jan 09, 2007 10:15 am Reply with quoteBack to top

Tnx man,i will try

_________________
SabacOnline.com ||| 4 Surf 'n fun portal
Find all posts by sylver83View user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Tue Jan 09, 2007 11:02 am Reply with quoteBack to top

Quote:
Tnx man,i will try

That man is a lady Wink

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
sylver83
Nuke Cadet
Nuke Cadet


Joined: Apr 08, 2006
Posts: 7

Location: sabac,serbia

PostPosted: Tue Jan 09, 2007 1:53 pm Reply with quoteBack to top

It work on localhost,but why u think that this will slow down site?
Find all posts by sylver83View user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
sylver83
Nuke Cadet
Nuke Cadet


Joined: Apr 08, 2006
Posts: 7

Location: sabac,serbia

PostPosted: Tue Jan 09, 2007 2:12 pm Reply with quoteBack to top

dezina wrote:
Quote:
Tnx man,i will try

That man is a lady Wink


Sorry lady Smile
Find all posts by sylver83View user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.067 Seconds - 273 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::