vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Redirect after Login (https://vborg.vbsupport.ru/showthread.php?t=156992)

marcossalazar 09-13-2007 10:11 PM

Great Hack. The only thing I would suggest is that you modify is so that the "Thank you for logging in" redirect page still displays. Right now it disappears with the hack installed (even if you don't have anything in the box that tells the forum where to redirect the user to). I had to take off the hack in order to get that back. It would be a nice transition onto a new page instead of a quick and abrupt redirect. Think that would be a possibility?

Thanks,

Marcos

ragtek 09-26-2007 07:45 PM

hi
just wanted to say, that i'm sorry, that it takes so long to update this...
got many pm's where people asked when i'm going to make this

at moment there are so many things on my to-do list that i sorted by priority
and because this add-on is working, the priority is not so high.

darkman 01-03-2008 02:19 PM

Looks good - thanks :)

apiasto 01-03-2008 03:35 PM

can this be modyfied for only zero posters to redirect them to certain place,thnx

princeedward 01-19-2008 03:59 PM

thanks for this... ;)

chatzworld 01-19-2008 04:40 PM

errrrrrrrrrrm where do i set this cant find any option?

ragtek 01-19-2008 06:16 PM

By the general options

Tomo123 01-19-2008 09:38 PM

awesome exactly what I've been looking for :)

Thanks

ragtek 01-19-2008 11:10 PM

than click install to show it;)

Pete C 01-20-2008 11:31 AM

Whilst I appreciate the convenience of importing this as a product, it appears to redirect all members (even admins) when they log in.

Since it is a relatively simple matter to write a plugin that only affects specific usergroups - or indeed a series of plugins that can redirect different usergroups to different places, I'm wondering how this hack offers further benefit?

For example, I use the following to redirect banned users to a page telling them they're banned:

Code:

Product: vBulletin

Hook Location: login_redirect

Title: Banned user redirect

Plugin PHP Code:

if (!($vbulletin->GPC['logintype'] === 'cplogin' OR $vbulletin->GPC['logintype'] === 'modcplogin'))
{
  if (is_member_of($vbulletin->userinfo, 8))
  {
        $vbulletin->url = "http://www.my site/banned/banned.htm";
  }
}

The text in red can be varied according to the usergroup / usergroup ID# / desired destination. Should it be required to redirect multiple usergroups to the same place, simply enter the usergroup ID's seperated by a comma.

This further example would send registered users to a forum of your choice:

Code:

Product: vBulletin

Hook Location: login_redirect

Title: Registered user redirect

Plugin PHP Code:

if (!($vbulletin->GPC['logintype'] === 'cplogin' OR $vbulletin->GPC['logintype'] === 'modcplogin'))
{
  if (is_member_of($vbulletin->userinfo, 2))
  {
        $vbulletin->url = "http://www.my site/forumdisplay.php?f=6";
  }
}

I don't wish to sound rude, but as yet I do not see the benefit of a product that simply redirects everyone, irrespective of their usergroup. If I'm missing some additional benefits here, I'd be grateful if someone would explain what they may be?


All times are GMT. The time now is 02:10 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.01194 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete