Indentifying Blog
Posted by Cobnut
|
Indentifying Blog March 01, 2007 06:14AM |
Registered: 18 years ago Posts: 5 |
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
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 |
Registered: 24 years ago Posts: 1,076 |
|
Re: Indentifying Blog March 01, 2007 07:05AM |
Registered: 18 years ago Posts: 5 |
|
March 01, 2007 08:02AM |
Admin Registered: 21 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.