Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Theme changer
by rgauci on 2009/2/13 20:06:14

Thats what I did BUT I made a little mistake that I did not copy the brachet }

so now this WORKS GREAT

Burning your the man!! This is a very useful piece of code for those who want to change a theme every time they click on the module.
Re: Theme changer
by Burning on 2009/2/13 19:31:43

You have to modify two informations:

- case 'news'; --> folder name of your modules

- = 'theme-name-1'; --> folder name of theme you want to use
Re: Theme changer
by rgauci on 2009/2/13 19:17:07

no luck

I just copied and pasted as you said and ofcourse changed the names of the news with the corresponding modules. Is there some code missing I am not a php expert
Re: Theme changer
by rgauci on 2009/2/13 14:23:49

thanks Burning
I will surely give it a try.....
will let you know

Re: Theme changer
by Burning on 2009/2/13 14:01:28

hi

You could change mainfile.php like this

After
le="color: #000000"><?php include( XOOPS_TRUST_PATH . '/modules/protector/include/precheck.inc.php' ) ; if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') { include XOOPS_ROOT_PATH."/include/common.php"; include( XOOPS_TRUST_PATH . '/modules/protector/include/postcheck.inc.php' ) ; } }


... add these lines
le="color: #000000"><?php $ModuleDirname = pathinfo( dirname( $_SERVER["SCRIPT_FILENAME"] ) ); switch($ModuleDirname['basename']) { case 'news'; $xoopsConfig['theme_set'] = 'theme-name-1'; break; case 'ressources'; $xoopsConfig['theme_set'] = 'theme-name-2'; break; case 'mylinks'; $xoopsConfig['theme_set'] = 'theme-name-3'; break; case 'myalbum'; $xoopsConfig['theme_set'] = 'theme-name-4'; break; case 'mydownloads'; $xoopsConfig['theme_set'] = 'theme-name-5'; break; case 'liaise'; $xoopsConfig['theme_set'] = 'theme-name-6'; break; case 'tellafriend'; $xoopsConfig['theme_set'] = 'theme-name-7'; break; } ?>

Who's Online

167 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits