Results 1 to 9 of 9
-
10th Feb 2011, 05:01 PM #1OPMember
Redirect to Login Page
Ok, when anyone who is not registered who is not logged in, when they click on any of the forums, instead of hiding threads to them from that section, I want them to be redirected to the login page.....
Any ways to do this or any mods?D@rekills4 Reviewed by D@rekills4 on . Redirect to Login Page Ok, when anyone who is not registered who is not logged in, when they click on any of the forums, instead of hiding threads to them from that section, I want them to be redirected to the login page..... Any ways to do this or any mods? Rating: 5
-
10th Feb 2011, 05:37 PM #2Member
for vb3**
Go to admin cp>style manager>all style options>place in your header Code:
Code:<if condition="$bbuserinfo['usergroupid'] == 1"> <meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforum*********register.php"> </if>
Replace "yourforum" with your site name.
Press save and all done!
for vb4**
Code:<vb:if condition="THIS_SCRIPT != 'register'" AND condition="$bbuserinfo['userid'] == 0"> <meta HTTP-EQUIV="REFRESH" content="15; url=http://yoursite.com/register.php"> </vb:if>
go
-
10th Feb 2011, 06:17 PM #3OPMember
Thanks for the help mate
-
10th Feb 2011, 06:19 PM #4MemberWebsite's:
ZilleJulle.com PornBoxIt.com TheCavernForum.com TheFlix.net
-
10th Feb 2011, 06:40 PM #5MemberWebsite's:
reddit.comI dont know anything about SMF, but look into the template system, search for "register" (that means only guests will be able to see it) and thake the code from there..
Lets say for example it can be something like <ifguest><a href="register.php>Register</a></ifguest>
Just take that code and modify it like:
Code:<ifguest><meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforum*********register.php"></ifguest>
Although this does not what OP requested, it just refreshes the page after X second, works on any html page.I design free logos. click here.
-
10th Feb 2011, 06:50 PM #6MemberWebsite's:
reddit.comNow to the OP's request:
Open the template forumhome_forumbit_level1_nopost
find:
Code:<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
Code:<if condition="$bbuserinfo['usergroupid'] == 1"><a href="register.php">$forum[title]</a></if><if condition="$bbuserinfo['usergroupid'] == 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a></if>
(I know, it's messy using all the usergroup id's, but i don't remember the short code off my head.)
edit. yeah, now that i think of it, a simple "else" would do the job!I design free logos. click here.
-
11th Feb 2011, 04:04 AM #7OPMember
-
11th Feb 2011, 12:36 PM #8MemberWebsite's:
reddit.comMy solution does what you ask for. It just does it on every forum.
You can add another <if condition... to limit the forum id's, but it will become a little more complicated.I design free logos. click here.
-
12th Feb 2011, 05:03 AM #9OPMember
NA.....
That would just make it complicated.....
Anyone else?
EDIT: My bad, I think J have figured it out.....
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to redirect 404 page to date?
By dr2015 in forum General DiscussionReplies: 5Last Post: 29th Oct 2012, 09:49 PM -
How to make redirect page in wp?
By flippy07 in forum WordpressReplies: 4Last Post: 18th Jul 2012, 08:52 PM -
Guest cant open forums... and redirect to Login page?
By ThumperTM in forum phpBBReplies: 4Last Post: 3rd Nov 2011, 11:08 PM -
Redirect to Login Page to SMF
By PBI NetWork in forum Web Application/Script SupportReplies: 0Last Post: 10th Feb 2011, 06:23 PM -
Redirect to another html page
By cybertuga in forum Technical Help Desk SupportReplies: 5Last Post: 3rd Jan 2010, 05:54 PM
themaCreator - create posts from...
Version 3.07 released. Open older version (or...