1
rgauci
Theme changer
  • 2009/2/12 13:08

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I have installed themechanger v2 (also v2.6) on the latest version of XOOPS and although it did install properly, it is not recognising any themes.......in version of XOOPS 2.18.1 it did work perfectly.

Can anyone help me out as I need to use this module urgently.
Be Set FREE!

2
ghia
Re: Theme changer
  • 2009/2/13 0:53

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


See this.

3
rgauci
Re: Theme changer
  • 2009/2/13 13:48

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Quote:
You can try this version of defacer: http://www.xuups.com/defacer.zip rename hxxp to http please. It does the same but please, read the readme file first.


I did try this module which comes form trabis its called defacer. Also here it does work in the admin side but not in the front end. If someone can solve this problem with themechanger for XOOPS it would be a great help to changing themes from one module to another.
Be Set FREE!

4
Burning
Re: Theme changer
  • 2009/2/13 14:01

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi

You could change mainfile.php like this

After
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
$ModuleDirname pathinfodirname$_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;

}

?>
Still learning CSS and... english

5
rgauci
Re: Theme changer
  • 2009/2/13 14:23

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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

Be Set FREE!

6
rgauci
Re: Theme changer
  • 2009/2/13 19:17

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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
Be Set FREE!

7
Burning
Re: Theme changer
  • 2009/2/13 19:31

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


You have to modify two informations:

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

- = 'theme-name-1'; --> folder name of theme you want to use
Still learning CSS and... english

8
rgauci
Re: Theme changer
  • 2009/2/13 20:06

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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.
Be Set FREE!

Login

Who's Online

240 user(s) are online (199 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits