1
dplittle
Best Way To Make Banners Dynamic
  • 2004/9/20 20:56

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


I've been modifying the look of our XOOPS install and have now gotten to a place where I need to have some PHP code in the banner. It appears that this won't work so I'm wondering if anyone has suggestions on the best way to do what we need.

We are using XOOPS as an Employee Portal so I am customizing the header. I want the header to always have a couple links to places all employees need. I decided to make a custom banner since it would work regardless of the theme and I wouldn't have to worry about reapplying the modification if I update the themes (or make the modification in multiple themes). This worked great until I figured I needed to have some dynamic properties.

One of the links needs to change depending on if the employee is accessing the site from behind the router or from the "outside world." Here is the code I'd like to have in the banner...

Quote:












if ($_SERVER['REMOTE_ADDR'] == "{internal ip address}")
{
print 'Order Entry';
}
else
{
print 'Remote Order Entry';
}
?>

Webmail



The PHP isn't working. Any suggestions? Will I have to resort to changing the theme.html and converting everything to Javascript?

Thanks for any guidance.

David

2
Mithrandir
Re: Best Way To Make Banners Dynamic

Or use a custom PHP block?

3
dplittle
Re: Best Way To Make Banners Dynamic
  • 2004/9/20 22:11

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Sheez! Why didn't I think of that!

That is exactly what I needed! And it's even more flexible!

Thanks

David

Login

Who's Online

263 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 263


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