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 09-09-2001, 05:54 PM
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Location: somewhere you're not
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, it works like a charm! You are the man, and I appreciate all your help!

Quote:
(also remove that file)
Oops...I hadn't even thought about that. Thanks for letting me know!
Reply With Quote
  #12  
Old 09-10-2001, 11:41 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way this could be set up on a forum by forum basis? I only have a handful of forums that guests are not allowed to read. The rest are open to lurkers in order to lure in new members.

I know, I am a royal pain I guess I just like to do things the hard way.

Amy

p.s. Firefly you have been cranking out some darn good stuff lately. Thank you for your efforts.
Reply With Quote
  #13  
Old 09-11-2001, 12:04 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks amykhar.

To do it per forum, undo all changes you (might) did to showthread.php.

Now, add what's in red (in showthread.php):
Code:
$forum=getforuminfo($thread['forumid']);

if ($bbuserinfo[userid]==0 and ($thread['forumid']!=1 or $thread['forumid']!=2 or $thread['forumid']!=3 or $thread['forumid']!=4)) {
  show_nopermission();
}
Note: appears twice, add in both places.
This will prevent all guests from viewing threads in forums 1, 2, 3 and 4.

LanciaStratos, undo all changes.
Add what's in red:
Code:
$forum=getforuminfo($thread['forumid']);

if ($bbuserinfo[userid]==0) {
  show_nopermission();
}
Same note, do it twice.
(no difference, just "nicer")
Reply With Quote
  #14  
Old 09-12-2001, 01:53 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One small oops firefly

$thread['forumid']!=1 should be $thread['forumid']==1

(and for the other forums as well).

It works like a charm though. Thank you.

See it in action:

http://www.eaforums.com/forumdisplay.php?forumid=28


Amy
Reply With Quote
  #15  
Old 09-12-2001, 02:01 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

D'oh, of course.
You're welcome.
Reply With Quote
  #16  
Old 09-12-2001, 02:54 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ability to ban certain user groups from certain forums is already integrated in to vBulletin.

Within the Admin Panel there is a Groups are Permissions section, click the "modify forums" part and you can edit access permission for certain user groups within certain forums. Which includes stopping them from reading posts within certain forums.
Reply With Quote
  #17  
Old 09-12-2001, 03:16 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but
[QUOTE]Originally posted by LanciaStratos
I know that there is a similar option in the AdminCP that prevents guests from "viewing other's topics", but it makes each forum appear blank, as if there were no topics at all.
Reply With Quote
  #18  
Old 09-12-2001, 07:18 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simply remove
if (!$getperms[canviewothers]) {
$limitothers="AND postuserid='$bbuserinfo[userid]'";
}

from forumdisplay.php
around line 276.

There is something similar to that in viewthread.php so settings Can View Others to NO will allow them to view a list of threads but not the thread itself.

I already removed those 3 lines from my board as it was an annoyance.
Reply With Quote
  #19  
Old 09-12-2001, 11:51 PM
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Location: somewhere you're not
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by PPN
simply remove
if (!$getperms[canviewothers]) {
$limitothers="AND postuserid='$bbuserinfo[userid]'";
}

from forumdisplay.php
around line 276.

There is something similar to that in viewthread.php so settings Can View Others to NO will allow them to view a list of threads but not the thread itself.

I already removed those 3 lines from my board as it was an annoyance.
Ah, that also works very well!
Reply With Quote
  #20  
Old 11-04-2001, 07:22 PM
NYI Fan's Avatar
NYI Fan NYI Fan is offline
 
Join Date: Oct 2001
Location: Long Island, NY
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all

I had Firefly's tweak working perfectly in 2.0.3, but now in 2.2.0 no go
The fix may be obvious, but I can't seem to get it working again...

any help would be most appreciated!

(I think i goofed and posted this in the wrong place - if so can a mod please move it to correct forum for me? Sorry!!)
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 04:08 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.06299 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
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_code
  • (2)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
  • (2)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete