The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Redirect users from forumhome based on profile field values. Ex. female=female forums
Redirect users from forumhome based on their profile field values. Ones such as male/female so that male would be directed to the mens fitness section thread/custom page and female= female fitness thread/custom page.
This would be great for us who want to customize our forums and make it organized and to the point instead of throwing everyone to domin.com/index.php or the same forumhome. |
#2
|
||||
|
||||
Try making a new plugin in forumhome_start
Put this in it: PHP Code:
|
#3
|
||||
|
||||
Quote:
Please excuse me for being a noob, but here is where I am lost Code:
userinfo['usergroupid'] == 'x'){ what would the code look like? and also suppose the member want to browse the other sections forum>>fitness>>male if she wishes to. I am scared that by going to forum it will not allow them to enter and will redirect them. Is this the case? Thank You |
#4
|
||||
|
||||
That code only affects the forum main page.
Here's the code for the profile field. New plugin in forumhome_start PHP Code:
|
#5
|
||||
|
||||
Thank you so much!!! works like a charm.
Just one more thing to ask you gio~logist. How do I make it so that it only occurs once during login. Because right now If i have general discussion on the forum home it will redirect them back as soon as they enter forum home. would this be possible to do just once or somewhere so that once they login first thing they get redirected to is their primary forums, but they can go back to forum home and the redirect will should not work again. Thanks |
#6
|
||||
|
||||
Hm. The only way i can think of doing that will require a new query and table in the database. I can't think of any simple way to do that off the top.
|
#7
|
||||
|
||||
Quote:
Thank you for getting us here though. If you have time to help us do that, we will be forever thankful for your help. That will get us up and running. If you do not have time, that's ok. I guess we can work with what you have posted. Thanks again:up: |
#8
|
||||
|
||||
Yea, it may be to much for now. However, if i have a sec i will let you know.
|
#9
|
||||
|
||||
Quote:
I have actually posted for help here and on TAZ forums. You were very helpful and fast. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|