vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vBulletin redirect after login (https://vborg.vbsupport.ru/showthread.php?t=254495)

hpuiu 12-01-2010 04:25 AM

vBulletin redirect after login
 
Hi,

Facts:
- main site on www.DOMAIN.com
- vBulletin installed on forum.DOMAIN.com
- vBulletin authentication integrated in main site (no problems here)

Question:
How can I redirect user to some URL from the www subdomain upon authentication?

Extra info:
I am already using the extra "url" field in the login form, but it only works for URLs relative to forum root (i.e. I can set it to "forum.php?...", but if I set it to "http://some_domain/" it is ignored and user is redirected to forum home after authentication).
The URL to redirect to is dynamic, so modifying templates to hard code it is not a solution.

Thanks,
Puiu

hpuiu 12-02-2010 04:26 PM

Found the answer myself: just created a plugin attached to "login_redirect" hook
and modify the $vbulletin->url value to the desired URL ("url" field in POST in my case),
don't forget to escape/check the value in the "url" field you get from the login form ;)

Jungi 12-13-2010 01:11 PM

Hi hpuiu.

Could you give me that addon please? I'm searching for exactly that one.
The old one can't be downloaded and the german version is not supported by vb4.

Best regards

borbole 12-13-2010 06:53 PM

Quote:

Originally Posted by Jungi (Post 2133248)
Hi hpuiu.

Could you give me that addon please? I'm searching for exactly that one.
The old one can't be downloaded and the german version is not supported by vb4.

Best regards

Try my plugin.

https://vborg.vbsupport.ru/showthread.php?t=235203

Jungi 12-14-2010 05:04 AM

I'll give it a try borbole. Weired that I didn't find this one oO
Thank you :)

//edit
Just tested it.
Works perfectly :) Thank you

borbole 12-14-2010 12:23 PM

Quote:

Originally Posted by Jungi (Post 2133634)
I'll give it a try borbole. Weired that I didn't find this one oO
Thank you :)

//edit
Just tested it.
Works perfectly :) Thank you

You are welcome :)


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01108 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete