Quantcast
Channel: Lecciones Prácticas » vBulletin
Viewing all articles
Browse latest Browse all 10

vBulletin: change the redirect or the url in the login process

$
0
0

There is a common thing for vBulletin users to want to customize the login box.

This can be done by Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar (Note for spanish users: Buscar Plantillas de navegación entre las plantillas, y dentro de ella, navbar)

By default, vBulletin’s login forms redirect you back to the page you were viewing. You can define your own redirection URL by adding this hidden field to the login form:

<input type="hidden" name="url" value="REDIRECTION URL HERE" />

The code is inserted like follows (pay attention to last lines):

                 <!-- login form -->
 
                 <!-- BLABLABLA a lot of html code here ... -->
 
		<input type="hidden" name="vb_login_md5password_utf" />
		<input type="hidden" name="url" value="REDIRECTION URL HERE" />
		</form>
		<!-- / login form -->

Notice you can also change the validation URL (for instance if you are having issues with non-www and www url’s, etc).

Rather than doing fancy-custom .htaccess to change URL from non-www to www you should change your vbulletin Forum URL following these steps:

- Close your board from the AdminCP
- Change the Forum URL to the new URL
AdminCP -> vBulletin Options -> Site Name / URL / Contact Details -> Forum URL
- Reset Cookie Path & Domain to default values:
AdminCP -> vBulletin Options -> Cookies and HTTP Header Options

Next Move all the files to the new directory on your server, and re-open board.


Viewing all articles
Browse latest Browse all 10

Trending Articles