vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   messing around with permissions (https://vborg.vbsupport.ru/showthread.php?t=18029)

auto 05-25-2001 12:45 AM

This is not really a hack, so I won't put it in the requests forum.

My site has been eating up a lot of bandwidth as it keeps growing. Right now its over 20 gigs per month and site is not even 6 months old :)
I have no problem with my members eating up bandwidth, but Guests... um NO :D
So here's my idea:

Allow Guests to view
Forum home- http://64.21.152.50/vbulletin/index.php ,
the forum structure- e.g. http://64.21.152.50/vbulletin/forumd...s=&forumid=714 ,
and thread titles- e.g. http://64.21.152.50/vbulletin/forumd...s=&forumid=666 ,
BUT not the threads themselves- e.g. http://64.21.152.50/vbulletin/showth...&threadid=2591

How can this be accomplished?

thanks,

The Snake 05-25-2001 06:34 AM

just set guest permissions in Control Panel

auto 05-25-2001 01:02 PM

Um.... nope :)
That would block out the whole message board, not just the actual threads.

The Snake 05-25-2001 04:20 PM

Go to Usergroups and Permissions - Modify and look for the following:
Quote:

Viewing Permissions
Can view board Yes No
Can view members info (including other's profiles and members list) Yes No
Can view others' threads Yes No
now if you set the first to Yes and the 3rd to No, and also don't allow them to post threads let them view the whole forum, except the content of the thread.

auto 05-25-2001 07:28 PM

I've already tried that, and if you do that, it says "No posts in the last 1000 days," instead I want it to say that you have to login to view the posts.

The Snake 05-26-2001 06:02 AM

I give up then, sorry :rolleyes:

JamesUS 05-26-2001 06:56 AM

In showthread.php, find this line:
PHP Code:

require("global.php"); 

Underneath it, put this:
PHP Code:

if (!$bbuserinfo[userid]) {
   
error_nopermission();


Not tested but should be fine :)

auto 05-26-2001 03:55 PM

James, when I did that, when I was logged in nothing changed, but when I logged out and tried viewing a thread it gave me this error:

Fatal error: Call to undefined function: error_nopermission() in /home/bokkie/public_html/vbulletin/showthread.php on line 12

So something is wrong :(

auto 05-27-2001 03:47 PM

anybody?:(


All times are GMT. The time now is 02:32 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.01136 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete