phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

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 primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Redirect if clicked a certain Category Heading


 
Search this topic... | Search Knowledge Base (KB)... | Search Box
Register or Login to Post    Index » Knowledge Base (KB)  Previous TopicPrint TopicNext Topic
Author Message
spclub
Board Member



Joined: 06 Nov 2009

Posts: 12
Location: Manchester


flag
PostPosted: 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: 509
Location: Hanover


flag
PostPosted: Thu Jan 14, 2010 8:36 am 
Post subject: Re: Redirect if clicked a certain Category Heading

There is a mod working in a similar way:
http://www.oxpus.de/downloads.php?view=detail&df_id=229
Back to top
Display posts from previous:   
Register or Login to Post    Index » Knowledge Base (KB)  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0282 seconds using 15 queries. (SQL 0.0021 Parse 0.0009 Other 0.0252)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo