31
Wilco
Re: Changing Theme Hack
  • 2004/5/17 20:37

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Anyone any time to help me figuring that out?



32
Wilco
Re: Is XOOPS used for business applications?
  • 2004/5/15 7:26

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


It's two years later after you asked for business sites as reference, so I guess you don't need it anymore. Nevertheless look at this dutch Business site



33
Wilco
Re: Changing Theme Hack
  • 2004/5/11 22:30

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Thanx GIJOE, Thats nice! But,.... I want not (only) the theme changing when changing from module but I want to change the theme when changing the newstopic(category)





34
Wilco
Re: Changing Theme Hack
  • 2004/5/9 20:04

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


I'll keep struggling with the problem. It really does not work for me. There must be something that I don't know. Something what for you guys is very logical. I guess you know I am a newbie. So maybe you can do a suggestion ? Can anyone help me?

BTW: I'll like Mithrandir's solution the most, however I am really also looking for a solution where the newtopic changes when you choose another theme through the theme navigator.



35
Wilco
Re: Changing Theme Hack
  • 2004/5/6 12:37

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


You're right, nothing changes is not quite right. The theme changes but the news category related to the theme didn't.

Let me try to describe what I did:

I edited the file index.php in the /modules/news directory as described before. I saved it and uploaded it. Then I updated the news module. After that I changed theme from default (Infonet) to Bredervoort. So when I navigate to theme Bredervoort the theme changes, not the news category.



36
Wilco
Re: Changing Theme Hack
  • 2004/5/6 6:35

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Yes, I meant the index.php ...
Ok I changed to $xoopsOption['theme_set'] = "Infonet";

Unfortunaly it still does not work for me. Did I put the rest of suggested code at the right spot?



37
Wilco
Re: Changing Theme Hack
  • 2004/5/5 21:03

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


I feel dumb!
Jack's solution does work but I can only give one topic id, so no matter what, when I navigate through the theme changing block, I always see the news related with the defined topic id.

Mithrandir's solution is a problem for me.... Let me put the suggested code here related to the rest of the code...
I put the code in de /modules/news/index.html file


Quote:

include '../../mainfile.php';
$xoopsOption['template_main'] = 'news_index.php';
$xoopsOption['theme_set'] = 'what do i put here?';
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';

switch($xoopsOption['storytopic']) {
case '21': //if it is topic with id 21
$xoopsConfig['theme_set'] = "Bredervoort";
break;

case '22': //if it is topic with id 22
$xoopsConfig['theme_set'] = "Commujon";
break;
}

if (isset($HTTP_GET_VARS['storytopic'])) {
$xoopsOption['storytopic'] = intval($HTTP_GET_VARS['storytopic']);
} else {
$xoopsOption['storytopic'] = 0;
}
etc...........


I updated the newsmodule and nothing changed with the displayed news topics when I navigate through the theme changing block.

As I said: I feel dumb



38
Wilco
Re: Changing Theme Hack
  • 2004/5/5 19:37

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Mithrandir,
I edited the file directly and didn't realise I should update the system module WHAAAH

I tried your solution before and there also nothing happened. Now I can try both again and choose the one that best fit.

About JackJ's suggestion: I still do not see how changing to theme B the newscategory changes to news topic 1 and changing to theme C the newscategory changes to news topic 2 and so on...



39
Wilco
Re: Changing Theme Hack
  • 2004/5/5 17:59

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


JackJ,

However you tried your suggestion, it didn't work for me. I don't know why, nothing happened after I edit system_block_themes.html.
Besides that I wonder if your solution is the right one. I don't see how the suggested code can bind a theme to a newstopic-category. Is there something that I don't get?



40
Wilco
Re: Changing Theme Hack
  • 2004/5/1 14:09

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Great, I appreciate youre responses... I'll try it and let you know.




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

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


Members: 0


Guests: 234


more...

Donat-O-Meter

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

Latest GitHub Commits