vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Disallow guests to view threads, must register first (https://vborg.vbsupport.ru/showthread.php?t=59859)

Wolffman 06-14-2004 04:42 AM

Nevermind. It works perfect now that I figured it out.

Onkel_Tom 06-15-2004 11:28 AM

Hi,
makes it sense to expand the spider and bot line to other names like
Code:

if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|googlebot)#si", $_SERVER['HTTP_USER_AGENT']))
???

Onkel_Tom 06-15-2004 12:48 PM

If you are using vbindex just change the following to prevent showing the preview on mouse over threadtitle of lastest threads for unregistered people.

find in Template vbindex_latestthreadbit :
PHP Code:

<a href="$vboptions[bburl]/showthread$ext?$session[sessionurl]threadid=$thread[threadid]title="$thread[preview]"

and replace it with:
PHP Code:

<a href="$vboptions[bburl]/showthread$ext?$session[sessionurl]threadid=$thread[threadid]<if condition="$show['member']">title="$thread[preview]"</if>> 


Raitsa 06-16-2004 01:53 PM

I am feeling really stupid cos i cant get this hack to work: my postcount remains at 0 at all forums. I am using another (finnish) language at my site here , but that cant be causing it, can it?

Any ideas?

Using VB 3.01

RonH. 06-16-2004 03:58 PM

Nice hack! I hope this has the intended effect that I desire to have happen, to decrease lurking as unregistered and convert (at least spme of) them to registered users on my small board. Thanks.

Streetjob 06-18-2004 12:19 AM

BUMP. So where are the smart hackers? I still have not received an answer to my question. How do I make sure MSN has access to my archives as well? And if you want to throw in Jeeves or any other good ones please go ahead!

Thanks!

Onkel_Tom 06-18-2004 09:15 AM

Hi Streetjob,
I use the hack with the line I wrote few postings before
Code:

if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|googlebot)#si", $_SERVER['HTTP_USER_AGENT']))
now since 3 days and the site was visited from several spiders and bots right now. Just have a look at the attached .jpg to see that MSN has access to the Archive and also to the forum.

Onkel_Tom 06-18-2004 10:00 AM

Another question to all,
Is it possible to show unregistered guest a message which show that they have to register to read threads when they are in the archive ?
At the moment the archive shows a blank screen for the guest.

any idea to fix this ?

Onkel_Tom 06-18-2004 10:33 AM

Okay, i fixed it with this change.

find in /archive/index.php:
PHP Code:


     
print_no_permission(); 


replace it with:
PHP Code:


      echo 
"<center><font face=verdana, arial, helvetica size=3>You are not allowed to view posts in $vboptions[bbtitle] until you will <a href=\"$vboptions[bburl]/register.php?\">register</a> as member.</font></center>\n<hr />\n";
     
    
print_no_permission(); 



Streetjob 06-18-2004 12:32 PM

Quote:

Originally Posted by Onkel_Tom
Hi Streetjob,
I use the hack with the line I wrote few postings before
Code:

if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|googlebot)#si", $_SERVER['HTTP_USER_AGENT']))
now since 3 days and the site was visited from several spiders and bots right now. Just have a look at the attached .jpg to see that MSN has access to the Archive and also to the forum.

Wow! Thanks Tom! I did see your previous post but it didn't seem like you were 100% sure. And since these are hacks I don't want to run the risk of doing something bad to my site. Anyway, thanks again and i'll give this a try!


All times are GMT. The time now is 02:24 AM.

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.01253 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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