1
nightr
How to change menu images in different modules?
  • 2004/12/8 8:18

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Hi
I've change the theme.html the way I like it. Everything is fine... But now I need, to change the color of menu buttons when the user enters different modules. For example on main page the button "NEWS" is grey. When a user clicks it and enters the News area (my.com/modules/news/), I want the menu button "news" to change from grey to blue. Do I need to place some script in the main theme.html instead of the button_image? I mean some sort of code, like "if $module='news', load image '1.jpg'; if $module='articles', load '2.jpg'. Or some sort of... Can you advice me on that problem? Pleeease. I need to do that till evening or my a$$ will get busted.

2
nightr
Re: How to change menu images in different modules?
  • 2004/12/8 16:27

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


O c'mon! At least give a hint wich variable holds the module name?

3
jmass
Re: How to change menu images in different modules?
  • 2004/12/8 16:48

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


It ain't personal... I just don't know.

4
nightr
Re: How to change menu images in different modules?
  • 2004/12/9 17:03

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Ok, now i've got a piece of code:

if ($_SERVER["PHP_SELF"]=="/modules/news/index.php")
{echo ('');}
else {
echo ('');}


This code is looking at what url am I and loade the adequate picture. But now how do I insert this code into the default.html?

Login

Who's Online

293 user(s) are online (220 user(s) are browsing Support Forums)


Members: 1


Guests: 292


Harald0123,

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