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)

koon 04-26-2004 04:35 PM

Quote:

Originally Posted by tenbucks
I think I've come across an unwanted side effect.
The archives can be read by guests when this hack is installed.

Was looking at online.php today and saw a guest reading away.


Yes! I have just noticed this too and thought it was just a problem with Vbulletin itself until I cam across your discovery and after testing your right.

Is there any chance of this getting fixed or a work around?

webtam 05-22-2004 11:32 AM

Is there a simple way to just make it show a ? or - when the postcount is zero?

Vega 05-25-2004 04:18 PM

Awesome! Thx!

supernet 06-01-2004 12:37 PM

Hi. When i browse into archive/index.php i get a blank white page.

If i understood correctly, i insert right after this code:

$title .= ' - ' . $foruminfo['title'];
}
else
{
$do = 'index';
}


This code:

if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']))
{
print_no_permission();
}


What might have gone wrong? :ermm:

Gary King 06-02-2004 01:02 PM

Are you logged in?

supernet 06-02-2004 01:15 PM

Ooops! I fill silly! :speechless:

Loged in, and its ok. Thanks Gary

magmaink 06-02-2004 01:50 PM

is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?

Gary King 06-03-2004 12:05 PM

Quote:

Originally Posted by magmaink
is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?

Use this at the top of your files, changing the forum/ to match your site:
PHP Code:

<?php

// require the vBulletin sessions
chdir('forum/');
require_once(
'global.php');

// check if user is a guest
if (!$bbuserinfo['userid'])
{
    
// tell them they have to register first
    
print_no_permission();
}

?>


Wolffman 06-12-2004 04:49 AM

For the showthread.php edit, instead of the normal text, my file says:

PHP Code:

globalize($_REQUEST, array(
    
'perpage' => INT,
    
'pagenumber' => INT,
    
'highlight' => STR,
    
'goto'
)); 

I put the added text under that ^, and it didn't work.

Any help is appreciated. Thanks.

Streetjob 06-13-2004 11:23 AM

Hi all!

This seems to still block the MSN spider. I want him to be able to browse my site with his friends. How can I do this?

Thank you


All times are GMT. The time now is 12:35 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.01194 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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