31
Wilco
Re: Changing Theme Hack
  • 2004/5/19 20:24

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Pffff, That's the solution. Thanks a lot.
I hope I will learn this one day...
Again: THANX

32
Mithrandir
Re: Changing Theme Hack


Happy to help

33
Wilco
Re: Changing Theme Hack
  • 2004/5/20 19:07

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


In addition I want only some storytopics appear when selecting a theme.

I tried in modules/news/index.php:
Quote:
if (isset($HTTP_GET_VARS['theme_set'])) {
$xoopsOption['theme_set'] = intval($HTTP_GET_VARS['theme_set']);
} else {
$xoopsOption['theme_set'] = Infonet;
}

switch($xoopsOption['theme_set']) {
case 'Bredervoort': //if it is topic with id 21
$xoopsConfig['storytopic'] = '21';
break;
case 'Commujon': //if it is topic with id 11
$xoopsConfig['storytopic] = '11';
break;
case 'Kionda': //if
$xoopsConfig['storytopic'] = '15';
break;
case 'Nieuw Veldzicht': //if it is topic with id 11
$xoopsConfig['storytopic'] = '13';
break;
case 'Valkenheide': //if it is topic with id 11
$xoopsConfig['storytopic'] = '10';
break;
}


I guess I was a little to optimistic. Do I have to put the code in another file? Does the code make any sense?

I need help with this...

Login

Who's Online

339 user(s) are online (242 user(s) are browsing Support Forums)


Members: 0


Guests: 339


more...

Donat-O-Meter

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

Latest GitHub Commits