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

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.

Related posts:

  1. vBulletin 4: Add right or left sidebar [SOLVED]
  2. vBulletin 4: Disable plugin/mod per style [SOLVED]
  3. vBulletin: change sticky text style [SOLVED]
  4. vBulletin and forms: parameters via post or get
  5. vBulletin: How to list subforums in new line (not comma separated) [SOLVED]

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.