Firefox PHP

Indentifying Blog

Posted by Cobnut 
Indentifying Blog
March 01, 2007 06:14AM
My site is coming on nicely thanks to this forum but I'm stuck on one almost trivial bit...

I've written code to handle my top menu such that it highlights the page/section the user is in to make navigation easier. This is done by using $_SERVER['SCRIPT_NAME'] and other bits and pieces and it works just fine (surprisingly) except...

I can't differentiate between the forum 'proper' and the blog. I've got a link to the blog from the menu which is 'blah/link.php?8' but of course to script_name that's just 'link.php' and link.php is used in the forum itself. What I need to do is pick up that '8' that's identifying the 'blog' topic but I can't work out where to find it.

Can anyone offer any help or suggestions? I presume there's a variable picking up that topic identifier...

Jon
Re: Indentifying Blog
March 01, 2007 06:28AM
[ch2.php.net]

---
-=[ Panu ]=-
Re: Indentifying Blog
March 01, 2007 07:05AM
Thanks Panu, a speedy, if short reply :)

What I've done is check for $_GET[8] being set, was that what you had in mind?

Jon
Re: Indentifying Blog
March 01, 2007 08:02AM
link.php is not a phorum script, but maybe you only gave it that name as an example? If you need it from Phorum code, then the 8 can be found in $PHORUM["forum_id"] (or $GLOBALS["PHORUM"]["forum_id"] if you need to access it from within a variable).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login