Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-13-2004, 03:42 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
If you hacked the forum to prevent viewing by guests, but allowed it on the archive why bother to register when you could read the thread in the archive?
I doubt too many people would think of that option. But who knows. I think this hack could help him maybe

https://vborg.vbsupport.ru/showthrea...9&page=1&pp=15
Reply With Quote
  #12  
Old 01-13-2004, 06:18 PM
dynamite dynamite is offline
 
Join Date: Sep 2002
Location: Columbia, SC
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is what I want, but the only problem is that blocks the spiders also, and with out the spiders, there would be NO traffic. Plus I need them for adsense also.

I have been trying to play around with it all day, but I am having trouble coming up with what to add to it to make it recognize that it is the spider and allow it.

Something to the effect of:

PHP Code:
if ($bbuserinfo['userid'] == AND $guests['spider'] != $spider)) 

    
print_no_permission(); 

I have no idea what I'm really doing, so I would appreaciate it if someone could point me in the right direction here with it checking for the spiders also.
Reply With Quote
  #13  
Old 01-13-2004, 06:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dynamite
That is what I want, but the only problem is that blocks the spiders also, and with out the spiders, there would be NO traffic. Plus I need them for adsense also.

I have been trying to play around with it all day, but I am having trouble coming up with what to add to it to make it recognize that it is the spider and allow it.

Something to the effect of:

PHP Code:
if ($bbuserinfo['userid'] == AND $guests['spider'] != $spider)) 

    
print_no_permission(); 

I have no idea what I'm really doing, so I would appreaciate it if someone could point me in the right direction here with it checking for the spiders also.
that would also block spiders

anyway what it comes down to is, allow spiders and guests to view or dont, if the spiders are indexing your site your guests can search the archive OR google, so it doesnt matter. just allow both
Reply With Quote
  #14  
Old 01-13-2004, 08:31 PM
dynamite dynamite is offline
 
Join Date: Sep 2002
Location: Columbia, SC
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK... can somebody with some understanding of coding take a look at this for me. It seems to be working by allowing Google to spide but denying those who are guests from what I can tell by Who's Online. Please let me know if this seems OK to you.

PHP Code:
if ((strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot") == false) AND ($bbuserinfo['userid'] == or $bbuserinfo['usergroupid'] == 3)) 

    
print_no_permission(); 

Granted, if these seems OK, then basically I would just have to allow the other user agents for the spiders I want... right?
Reply With Quote
  #15  
Old 01-13-2004, 08:33 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dynamite
OK... can somebody with some understanding of coding take a look at this for me. It seems to be working by allowing Google to spide but denying those who are guests from what I can tell by Who's Online. Please let me know if this seems OK to you.

PHP Code:
if ((strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot") == false) AND ($bbuserinfo['userid'] == or $bbuserinfo['usergroupid'] == 3)) 

    
print_no_permission(); 

Granted, if these seems OK, then basically I would just have to allow the other user agents for the spiders I want... right?
im fairly sure that will just disallow all google spiders and anyone in usergroup 3
Reply With Quote
  #16  
Old 01-13-2004, 08:49 PM
dynamite dynamite is offline
 
Join Date: Sep 2002
Location: Columbia, SC
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what sucks not having a full understanding of coding and basically mixing and matching. Here is a screenshot of what my Who's Online looks like. As you can see Google Spidering are not getting the while the Guests are. From the looks of that it seems to be allowing the spider to do their job, but block the guests
Attached Images
File Type: gif whosonline.gif (52.6 KB, 0 views)
Reply With Quote
  #17  
Old 01-13-2004, 08:53 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

basicy what that says is

if your google bot OR in group 3 show the no permissions screen
Reply With Quote
  #18  
Old 01-13-2004, 09:00 PM
dynamite dynamite is offline
 
Join Date: Sep 2002
Location: Columbia, SC
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So basically, I need to switch it to != false that should take care of it.

What I want it to say is

if the user is NOT googlebot, AND they have no userid OR are in groupid 3, then show the no permissions page
Reply With Quote
  #19  
Old 01-13-2004, 09:00 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dynamite
So basically, I need to switch it to != false that should take care of it.

What I want it to say is

if the user is NOT googlebot, AND they have no userid OR are in groupid 3, then show the no permissions page
yes
Reply With Quote
  #20  
Old 01-13-2004, 09:24 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you are wrong Faranth.

The original code said the if it is NOT a googlebot and blah blah, show the no permissions screen.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04528 seconds
  • Memory Usage 2,287KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete