The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Ah, it works like a charm! You are the man, and I appreciate all your help!
Quote:
|
#12
|
||||
|
||||
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. |
#13
|
||||
|
||||
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(); } 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(); } (no difference, just "nicer") |
#14
|
||||
|
||||
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 |
#15
|
||||
|
||||
D'oh, of course.
You're welcome. |
#16
|
|||
|
|||
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. |
#17
|
||||
|
||||
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. |
#18
|
|||
|
|||
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. |
#19
|
||||
|
||||
Quote:
|
#20
|
||||
|
||||
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!!) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|