1
tuknui
Re: Changing the site LOGO by page changes...
  • 2006/8/17 3:11

  • tuknui

  • Just popping in

  • Posts: 1

  • Since: 2006/8/17


Following is the procedure how to made a banner change.
What I did may not a good idea for made a banner
change under different category using the same module.

When you create the category there have an 'id' or
'storytopic' which you can use as checking parameter.
The disadvantage of this idea is when you add more topic
or category you have to modify the file to add more items
too. It's much better if it under database and auto related
to the topic id.

1. Create PHP file for check environment variable

if ($HTTP_GET_VARS['storytopic'] == 1) {
$xoopsTpl->assign('xoops_imageurl','logo1.jpg');
}

if ($HTTP_GET_VARS['storytopic'] == 2) {
$xoopsTpl->assign('xoops_imageurl','logo2.jpg');
}

2. Include the above file in the header.php

Then you can related variable $xoops_imageurl to
file 'theme.html' under themes folder.


Cheer




TopTop



Login

Who's Online

275 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 275


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