Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2001, 12:45 AM
auto auto is offline
 
Join Date: Nov 2001
Location: Los Angeles, CA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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,
Reply With Quote
  #2  
Old 05-25-2001, 06:34 AM
The Snake
Guest
 
Posts: n/a
Default

just set guest permissions in Control Panel
Reply With Quote
  #3  
Old 05-25-2001, 01:02 PM
auto auto is offline
 
Join Date: Nov 2001
Location: Los Angeles, CA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um.... nope
That would block out the whole message board, not just the actual threads.
Reply With Quote
  #4  
Old 05-25-2001, 04:20 PM
The Snake
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 05-25-2001, 07:28 PM
auto auto is offline
 
Join Date: Nov 2001
Location: Los Angeles, CA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-26-2001, 06:02 AM
The Snake
Guest
 
Posts: n/a
Default

I give up then, sorry
Reply With Quote
  #7  
Old 05-26-2001, 06:56 AM
JamesUS's Avatar
JamesUS JamesUS is offline
 
Join Date: Oct 2001
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 05-26-2001, 03:55 PM
auto auto is offline
 
Join Date: Nov 2001
Location: Los Angeles, CA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 05-27-2001, 03:47 PM
auto auto is offline
 
Join Date: Nov 2001
Location: Los Angeles, CA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody?
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 05:34 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.04210 seconds
  • Memory Usage 2,231KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete