The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
In v2 I cant seem to change the url that people are redirected to after registering. Can some one point me to the line(s) that need changed.
To explain further I want to send them to a differnt url then the default one they are sent to after they register. Thanks -Brian |
#2
|
|||
|
|||
I'm looking for the same thing. Also when members login. I want it to redirect them to the page they came from, not just the forum.
|
#3
|
|||
|
|||
i'm looking for the same thing when users enter their username/pass they go to another URL not the index.php
thanks |
#4
|
|||
|
|||
I am willing to pay some one a token fee via paypal to do this. It is just a matter of editing a few lines in member.php however I dont have the time to do it on v2, but did on v1.
I dont need anything pretty in the cp, just the lines and what to change code wize. -Brian |
#5
|
|||
|
|||
Where are you wanting this page to link to.. where they came from.. the forums index page... ?
Just curious.. cause I will try to see if I can find the code to change for ya... don't need paid or anything.. just curious to see this myself |
#6
|
|||
|
|||
To an external url.
Here is what I did in v1 Code:
if ($coppauser==1) { $action="coppaform"; } else { if ($verifyemail==1) { eval("echo standardredirect(\$bbtitle,\"".gettemplate("error_registeremail")."\",\"http://www.linkhere.com/\");"); } else { if ($moderatenewmembers==1) { eval("echo standarderror(\$bbtitle,\"".gettemplate("error_moderateuser")."\");"); } else { eval("echo standardredirect(\$bbtitle,\"".gettemplate("redirect_registerthanks")."\",\"index.php\");"); } } } } Thanks for looking into this !! |
#7
|
|||
|
|||
At a quick glance at the register.php file.. here is what I see.. Well without posting the whole user if statement.. I will just add the part around where *I think* it needs changed.
PHP Code:
I think in that if statement you can change that $url value to whatever you want. $url = "http://www.somethingsomewhere.com"; or change the other values that have index.php on that page. I could be wrong.. I will take a look at this here in a bit. Tell me what you think on this. |
#8
|
|||
|
|||
I was just wondering if anyone had a chance to check this out.
-Brian |
#9
|
|||
|
|||
By the way for the person whom wanted it to redirect them to the page they came from they can simple use for a link javascript:history.go(-2) (replacing 2 with the number of pages it should take them back.
This is an easy way to do it but not the best way.. -Brian |
#10
|
|||
|
|||
I have not had a chance to try this out myself, I might this weekend.. but did you try out what I posted.. changing that part?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|