Announcement

Collapse
No announcement yet.

Login/Register redirect

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login/Register redirect

    We are using vBulletin for forums in our site. Registration/login is handled by custom handlers (not vBulletin). We have single-sign on (we also use WordPress) so that when a user registers, they are given a vBulletin account and when they log-in, they are automatically logged in to vBulletin too.

    If a user is not logged in and goes to our forum page, they see the attached message. We would like instead to send them to our regular registration/login page and then after they login or register, redirect them back to the forum home page.

    Which template(s) need to be edited for us to do this and can you please suggest a way to accomplish this redirect?

    Thanks in advance.

  • #2
    Are you trying to change the register link in vBulletin? You can change that in the navbar template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    Code:
    <!-- nav buttons bar -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    <tr align="center">
    	<if condition="$show['member']">
    		<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    	</if>
    	<if condition="$show['registerbutton']">
    		<td class="vbmenu_control"><a href="[color=red]register.php$session[sessionurl_q][/color]" rel="nofollow">$vbphrase[register]</a></td>
    	</if>
    	$template_hook[navbar_buttons_left]
    	<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    	<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
    	<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    	<if condition="$show['popups']">		
    		<if condition="$show['searchbuttons']">

    Comment


    • #3
      We are not just trying to change the link. We want a full redirect to take place if the user comes to the forums and gets a normal must login or register screen. We've taken our all register/login links native to vBulletin. The attached is our version (we skinned vBulletin to match our site, which is why it looks a little different).

      Ross
      Attached Files

      Comment


      • #4
        Hello,

        Check out our site where we did custom integration of vbulletin similar to what you are talking about.

        Go to www.thedallaspulse.com and click on "FORUMS".

        What we have done is made it so the general public can read the forums, but if you want to post, it redirects you to our custom registration page.

        Is this what you are after?

        Comment


        • #5
          Originally posted by idealancer View Post
          We want a full redirect to take place if the user comes to the forums and gets a normal must login or register screen.
          I don't know of an easy way to do that. That is a more extensive modification.

          Comment


          • #6
            Yes. At the moment, we are in a closed beta, so forums are open only to beta users. In a few weeks, well launch and will follow a path similar to yours - general public will be able to read but only registered users will be able to post. So, we are trying to redirect to a custom registration page, just like you. Can you please point us to the correct template(s) to do this? Is it a simple URL redirect?

            Originally posted by wildondallas View Post
            Hello,

            Check out our site where we did custom integration of vbulletin similar to what you are talking about.

            Go to www.thedallaspulse.com and click on "FORUMS".

            What we have done is made it so the general public can read the forums, but if you want to post, it redirects you to our custom registration page.

            Is this what you are after?

            Comment


            • #7
              Jake - maybe I was a little unclear. The redirect would take place if users need to post (they are required to be registered members to post).


              Originally posted by Jake Bunce View Post
              I don't know of an easy way to do that. That is a more extensive modification.

              Comment


              • #8
                Change "Unregistered/Not Logged in" groups permission to "all no"

                When they come to the website they will have to login or register

                Example: cricdownloads.com

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X