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);
}
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
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
sylver83 Nuke Cadet
Joined: Apr 08, 2006
Posts: 7
Location: sabac,serbia
Posted:
Tue Jan 09, 2007 10:15 am
Tnx man,i will try
_________________ SabacOnline.com ||| 4 Surf 'n fun portal
dezina Support Mod
Joined: Jun 09, 2003
Posts: 1713
Location: England
Posted:
Tue Jan 09, 2007 11:02 am
Quote:
Tnx man,i will try
That man is a lady
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
sylver83 Nuke Cadet
Joined: Apr 08, 2006
Posts: 7
Location: sabac,serbia
Posted:
Tue Jan 09, 2007 1:53 pm
It work on localhost,but why u think that this will slow down site?
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