Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Jan 2011, 16:25
Tyraunt Tyraunt is offline
 
Join Date: Dec 2010
If 'Guest' or 'Newbie' then redirect

Hello,

I want to redirect a specific forum if a 'Guest' or 'Newbie' views it unless they are promoted to the usergroup which will be able to view this forum. Thanks
Reply With Quote
  #2  
Old 27 Jan 2011, 17:27
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Originally Posted by Tyraunt View Post
Hello,

I want to redirect a specific forum if a 'Guest' or 'Newbie' views it unless they are promoted to the usergroup which will be able to view this forum. Thanks
Try this:

Go to your Plugin Manager at your Acp and create a new plugin. For the hook location choose:

forumdisplay_start

Then for the php code add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Then replace1,2,3 with the id of the forums where you want to resdirect the guests when viewing the redirect forums.

Also, replace


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


with the actual url of where you want to redirect your guests when viewing those particular forums.


To do the same if the guests will view the latest post at those particular forums, add the exact php code for the the showthread_start hook location as well. (create a new plugin).

Hope it helps.
__________________
My mods.

Last edited by borbole; 27 Jan 2011 at 17:34.
Reply With Quote
  #3  
Old 28 Jan 2011, 18:55
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Did the above suggestion work for you Tyraunt?
__________________
My mods.
Reply With Quote
  #4  
Old 24 Feb 2011, 19:11
Tyraunt Tyraunt is offline
 
Join Date: Dec 2010
Sorry for the late reply, no it didn't work but the syntax code is 3.0 and not 4.0.
Reply With Quote
  #5  
Old 26 Feb 2011, 14:37
Tyraunt Tyraunt is offline
 
Join Date: Dec 2010
Bump!
Reply With Quote
  #6  
Old 26 Feb 2011, 16:45
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
What do you mean the syntax code is 3.0 and not 4.0? It looks just fine to me for 3.x or 4.x (php is php in either version). Did you actually try the code or did you just assume it wouldn't work?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 26 Feb 2011, 17:46
instanticity instanticity is offline
 
Join Date: Jan 2011
How would I do this for the entire forum page?
Reply With Quote
  #8  
Old 26 Feb 2011, 17:58
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by instanticity View Post
How would I do this for the entire forum page?
Do what exactly? You need to be much more specific and actually since it sounds like you are not asking for the same thing, you should start your own thread being specific with what you want.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 26 Feb 2011, 18:38
instanticity instanticity is offline
 
Join Date: Jan 2011
I want to redirect guests to a non-VB landing page as opposed to showing them the error log ni page. Forum is open to members only. I did start a new thread, but ran across this thread which sounds very similar to what I want to achieve. Most place get angry when you start a new thread about a topic already being discussed, redirecting guests.
Reply With Quote
  #10  
Old 26 Feb 2011, 19:19
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
If you have the exact same issue as in this thread, then the answer is exactly the same.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:26.

Layout Options | Width: Wide Color: