
Welcome to all phpBB2 Refugees! This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are launching the site now in order to start building a community and a support network. Our second goal is to create a phpBB2 MOD Author and Styles area. Right now we're still considering our options for those areas of the board, so it's a great time to provide your input. |
|
| Author |
Message |
spclub Board Member

Joined: 06 Nov 2009
Posts: 4 Location: Manchester

|
Posted: Thu Jan 14, 2010 12:59 am Post subject: Redirect if clicked a certain Category Heading |
|
|
Is it possible to redirect a visitor to another page if they clicked a certain Category Heading on the board.
http://www.oneparentfamily.org.uk/index.php?c=11
DJ Forum (shown here next to the red line)This is a hidden group only seen for DJs and needs to have a different page heading
when this Category is clicked.
Image link
clicking other cat_id's would not redirect them.
/index.php?c=12
/index.php?c=13
/index.php?c=14
/index.php?c=15
........etc.
cat_id c=11 is only visible to a group of members that we only want this group to see a different heading to all the other groups/members.
Is this possible?
I think I am nearly there but need a little help....
This script below is clickable on the c=11 category but does not
redirect as it should....anyone any ideas?
//
//start dj forum redirect
//
if($viewcat == 11)
{
redirect(append_sid("http://www.opfradio.com/djforum"));
}
//
//end
//
Hope this is in the right topic - KB
sorry if its not!
SORTED.........
For anyone who needs this script phpbb2
This is how it works on our site.
//
//start dj forum redirect
//
if($viewcat == 11)
{
header( 'Location: http://www.opfradio.com/djforum' );
exit();
}
//
//end
//
Hope this adds to your Knowledge Base |
|
| Back to top |
|
 |
Holger Board Member

Joined: 19 Jan 2009
 Posts: 393 Location: Hanover

|
|
| Back to top |
|
 |
|
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.1343 seconds using 12 queries. (SQL 0.0036 Parse 0.1219 Other 0.0088) |
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com
|
|