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 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:


All times are GMT. The time now is 02:59 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.00999 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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