vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Redirect Unregistered Users to Register page in X seconds {more members proven!} (https://vborg.vbsupport.ru/showthread.php?t=203853)

DanTHEGREAT 01-31-2009 10:00 PM

Redirect Unregistered Users to Register page in X seconds {more members proven!}
 
1 Attachment(s)
Redirect Unregistered Users to Register page in X seconds
v.2.00

What does this template mod do?
Basically, this will increase registration rates by letting your guests view the forum posts, threads, etc for X amount of seconds until they get redirected to the registration page. I use this on my forum is works great! It has increased the registrations by a long shot. The key to this is that most users who join vBulletin forums cannot find the register link sometimes and often are confused. With this, they immediately get sent there and register!

How do I install this modification?
Installing is the simple part. Here we go:

simple steps into installing!

Go to admin cp>style manager>all style options>place in your header.......
Code:

<if condition="$bbuserinfo['usergroupid'] == 1" AND "THIS_SCRIPT != 'register'">
<meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforum.com/register.php">
</if>

Replace X with how many seconds you want the unregistered to view your board.
Replace "yourforum" with your site name.

Press Save.

Next, go into your FTPs and replace your register.php with the one below.

You are all finished :D.

I will not be giving support to people who do not mark as installed and I do not accept help pms.

Thanks!


History:

March 1st - Initial Release
Introduction to experiment

April 19th - Register.php Addition
- Fixed Refreshing While in Registration
Thanks AllOutVB

sebil 02-01-2009 08:04 PM

I liked the concept..
But there is a problem

I m loged with my username and password but after 10 seconds itz going to the register page
and showing this message

Quote:

vBulletin Message
Our records show that you have already registered under the name of MalluDreams. If you have lost your password, click here. If you would like to modify your profile, click here.
It would be so great if it only happenes to guests

F0xy 02-01-2009 08:58 PM

Quote:

Originally Posted by sebil (Post 1731272)
I liked the concept..
But there is a problem

I m loged with my username and password but after 10 seconds itz going to the register page
and showing this message



It would be so great if it only happenes to guests

this will work:
Code:

<if condition="$show['guest']">
<meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforum.com/register.php">
</if>




surely this would effect googlebots on your site? and you said it was proven but I don't see any proof?

Phaedrus 02-01-2009 10:29 PM

It's because the script uses the Userid of 1 rather than the Usergroup of 1...

Change the script to:

Code:

<if condition="$bbuserinfo['usergroupid'] == 1">
<meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforumurl.com/register.php">
</if>


Phaedrus 02-01-2009 10:54 PM

Quote:

Originally Posted by F0xy (Post 1731325)
this will work:
Code:

<if condition="$show['guest']">
<meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforum.com/register.php">
</if>




surely this would effect googlebots on your site? and you said it was proven but I don't see any proof?

Yes, this would work also.

Phaedrus 02-01-2009 11:17 PM

Quote:

Originally Posted by sebil (Post 1731272)
I liked the concept..
But there is a problem

I m loged with my username and password but after 10 seconds itz going to the register page
and showing this message



It would be so great if it only happenes to guests

Another suggestion. Give your users enough time to log in before it is redirected. Some hunt-and-peckers are going to take longer than 10 seconds.

Trip 02-01-2009 11:35 PM

Looks like a great idea. I'm also curious if this will affect how your forum is "spidered". Don't quite follow the relationship between Userid of 1 rather than the Usergroup of 1.

TheInsaneManiac 02-02-2009 02:02 AM

Quote:

Originally Posted by Trip (Post 1731433)
Looks like a great idea. I'm also curious if this will affect how your forum is "spidered". Don't quite follow the relationship between Userid of 1 rather than the Usergroup of 1.

Google doesn't follow meta tags.

tafreeh 02-02-2009 05:50 AM

does is show a warning or message like " you are being redirect to register page..."

Stubbed 02-02-2009 04:53 PM

No.

Pretty poorly coded IMHO, if it wasn't for the input of the other people in this thread it wouldn't even work.

This will just annoy guest users more than anything.

DanTHEGREAT 02-02-2009 06:26 PM

Quote:

Originally Posted by Phaedrus (Post 1731380)
It's because the script uses the Userid of 1 rather than the Usergroup of 1...

Change the script to:

Code:

<if condition="$bbuserinfo['usergroupid'] == 1">
<meta HTTP-EQUIV="REFRESH" content="X; url=http://www.yourforumurl.com/register.php">
</if>


Thanks wrote my code wrong.
Quote:

Originally Posted by Stubbed (Post 1732103)
No.

Pretty poorly coded IMHO, if it wasn't for the input of the other people in this thread it wouldn't even work.

This will just annoy guest users more than anything.

I respect your opinion.

guys, if you give your guests enough time, you can implement this real easy. I made it wait every five minutes. It works great.

I will update a newer version soon with better coding.

TheInsaneManiac 02-02-2009 06:33 PM

Quote:

Originally Posted by DanTHEGREAT (Post 1732201)
Thanks wrote my code wrong.


I respect your opinion.

guys, if you give your guests enough time, you can implement this real easy. I made it wait every five minutes. It works great.

I will update a newer version soon with better coding.

The problem with that is who remains on a page for five minutes? The counter will refresh after the page changes.

dreads 02-02-2009 06:57 PM

Google does follow meta tags -_-
they dont follow javascript lol

I am going to release my own hold up

thea1masta 02-03-2009 07:58 PM

thank you. i was able to install this very quickly with no problems. Very good idea.

medusa1 02-08-2009 03:46 PM

a other good solution without automatic redirect is disable the search for guests and add the follow code to your header where your navbar is located

Code:

<if condition="$bbuserinfo['usergroupid'] == 1">


                        <td id="navbar_search" width="50" height="55"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_search.gif" width="50" height="55" border="0" alt=""/></a>

</if>

now they can see the searchbutton but he open the registerpage early or later they will register to be able use the searchfunktion

ckusmez 02-08-2009 08:41 PM

Affects Google Bots ?

Phaedrus 02-08-2009 10:38 PM

One thing to keep in mind. If you don't allow enough time, they will be unable to register as they will be redirected back to the start of the register page every X seconds (whatever you select).

luan7749 02-10-2009 01:47 AM

How about SpiderBot ( google, yahoo ) ? Will They redirect ? I don't want so !

ForumsMods 02-10-2009 01:54 AM

Yes, they will be redirected.

luan7749 02-11-2009 06:49 PM

Quote:

Originally Posted by Gasper (Post 1739293)
Yes, they will be redirected.

This's bad :eek:

itsheinz 02-18-2009 07:59 AM

its working with me ..nice one

Tommy8x 02-18-2009 08:52 AM

No need for me

MarkFoster 03-09-2009 11:13 PM

Hmm... Some of my guests take lots of time on the register page, I don't want them to keep getting redirected.

alloutvb 03-26-2009 07:19 PM

For everyone thats having the issue with it refreshing on the register.php page this is a simple fix that will allow your members to register without it booting them off, please add the following into your register.php file

Code:

//Added by AllOutVB so that we can redirect to register page without redirecting the register page
if(strpos($_SERVER["REQUEST_URI"], 'register.php') !== false){
        $is_register_page = 1;
}


uprentiss 04-09-2009 03:55 AM

where is the register php at

i think this idea is genius

but it keeps refreshin on register page

so could u explain exactly what i need to do to make this work proper please?

uprentiss 04-09-2009 04:07 AM

and a guest toldf me even after he registered it kept refrshing n bring him to the page

uprentiss 04-09-2009 02:36 PM

someone pleassee help

uprentiss 04-12-2009 08:54 PM

or not '''

lmmfao

solidstate 04-13-2009 12:41 PM

nice concept man.

jgruberman 04-13-2009 01:46 PM

Hey people.... before bashing on this guy for releasing this... keep something in mind:

This is BASIC HTML CODE! All he did was put it all together with the correct vbcode in it. This isn't a "crappy mod" that he built... it's just a simple solution that automatically redirects someone to a different page similar to when you go to a webpage and it says "We are closed, you are being redirected to our new site" or something like that.

Don't bash on the guy for just throwing some HTML in that might help out others.

TheLastSuperman 04-13-2009 02:30 PM

Quote:

Originally Posted by jgruberman (Post 1790205)
Hey people.... before bashing on this guy for releasing this... keep something in mind:

This is BASIC HTML CODE! All he did was put it all together with the correct vbcode in it. This isn't a "crappy mod" that he built... it's just a simple solution that automatically redirects someone to a different page similar to when you go to a webpage and it says "We are closed, you are being redirected to our new site" or something like that.

Don't bash on the guy for just throwing some HTML in that might help out others.

BINGO :D

DanTHEGREAT 04-19-2009 07:00 PM

Updated to version 1.30!

uprentiss 04-20-2009 03:58 AM

well i think it is genius

uprentiss 04-20-2009 04:03 AM

but dan, it is still refreshing when there tryin to register in mid registration it refreshes n takes it back to the front of registration

nomoreturn 04-20-2009 04:33 AM

installed on 3.8.2 and works great thanks

DanTHEGREAT 04-20-2009 10:23 PM

Quote:

Originally Posted by uprentiss (Post 1794928)
but dan, it is still refreshing when there tryin to register in mid registration it refreshes n takes it back to the front of registration


What version of vbulletin are you using?

uprentiss 04-29-2009 03:05 AM

3.8.1

as i was sayin dont let there complaining stop you

i think this is a great add-on n very much appreciate it

saifullah7 04-30-2009 03:34 AM

Hi,

I have set up this script and like it. I had to modify to tell it that it was not yourdomain.com/register.php but yourdomain.com/forums/register.php and then it started working fine.

However, after my users get to the registration page (the one where they have to put their username, password, email, etc.), its still refreshing there. Is there any way i can tell it to not do that (besides just giving the user more time to register). If i just give them more time, it defeats the purpose of the script.

uprentiss 05-04-2009 08:02 PM

Quote:

Originally Posted by saifullah7 (Post 1801612)
Hi,

I have set up this script and like it. I had to modify to tell it that it was not yourdomain.com/register.php but yourdomain.com/forums/register.php and then it started working fine.

However, after my users get to the registration page (the one where they have to put their username, password, email, etc.), its still refreshing there. Is there any way i can tell it to not do that (besides just giving the user more time to register). If i just give them more time, it defeats the purpose of the script.


thats my problem

kent_lkc 06-18-2009 10:51 PM

not working in 3.8.3, ie 8.


All times are GMT. The time now is 05:23 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.01285 seconds
  • Memory Usage 1,828KB
  • 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
  • (7)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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