The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Allow Group to Read Titles / Not Content Details »» | |||||||||||||||||||||||||||
Allow Group to Read Titles / Not Content
Developer Last Online: Nov 2022
Tested and working in 3.0.3 - 3.0.7
This hack will enable you to DISABLE SHOWTHREAD according to USERGROUP.This will allow all your members to view titles and topic counts found within a section. Think of it as "window shopping". Your members will be able to read all topics from the forumdisplay.php page but, will not be allowed to read it's content unless they have permission The edits below will prevent anyone from viewing the contents of a post from within showthread, printthread, showpost, and archives. This feature can be used on a per USERGROUP and /or per FORUM basis. You, as the admin, will have complete control. You will need to modify:
MOD VERSION 1.05
Allow User To View And Post Into Their Own Threads: If you want to allow users to view and post their own threads and have access to them ... use this code in showthread, printhread, and showpost.php: Code:
// ================================================= \\ // == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ] if (!($forumperms & GTPCANREADCONTENT)AND ($thread['postuserid'] != $bbuserinfo['userid'])) { eval(print_standard_error('gtp_cannot_read')); } // == [ 00-00-2004 - GTP END ] // ================================================= \\ [hr=blue]4[/hr] Disable Thread Preview To disable thread previews on forums that user cannot read content do the following edits: FIND in functions/forumdisplay.php: Code:
// format thread preview if there is one if ($ignore["$thread[postuserid]"]) { $thread['preview'] = ''; } else if (isset($thread['preview']) AND $vboptions['threadpreview'] > 0) { $thread['preview'] = strip_quotes($thread['preview']); $thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vboptions['threadpreview'])); } Code:
// ================================================= \\ // == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ] $forumperms = fetch_permissions($foruminfo['forumid']); // format thread preview if there is one if ($ignore["$thread[postuserid]"] OR !($forumperms & GTPCANREADCONTENT)) { $thread['preview'] = ''; } else if (isset($thread['preview']) AND $vboptions['threadpreview'] > 0) { $thread['preview'] = strip_quotes($thread['preview']); $thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vboptions['threadpreview'])); } // == [ 00-00-2004 - GTP END ] // ================================================= \\ Example Of How Hack Works: I have a forum with (sub-forums) ... however, one of the sub-forums is private (for PREMIUM members only). Here's how the settings would look like. In USERGROUP MANAGER (this is a global setting) set "Group can read content?: UNREGISTERED - YES REGISTERED - YES PREMIUM - YES The global setting will be transferred to all forums; but, we have a sub-forum that is only for PREMIUM MEMBERS so... In FORUM PERMISSIONS MANAGER set private forum to: UNREGISTERED - NO REGISTERED - NO PREMIUM - YES Show Your Support
|
Comments |
#182
|
|||
|
|||
EDIT: problems solved...
|
#183
|
|||
|
|||
ok i searched through most of these post and didnt see my issue so maybe i just did something wrong, but my only issue I can seem to find right now is when you click the number link ie in the top right of the post it has what number post that is, my members, even me as an adminstrator, get the warning message saying you need to be a premium member in order to view the post...
for instance, if you view (it works): http://board.accordtuner.com/showthread.php?t=18756 now, that was the first post, so there is a "#1" on the top right of that post, but if you click that or try to link someone to just that post you get the error message (doesnt work): http://board.accordtuner.com/showpos...97&postcount=1 did i do something wrong? anyone have any ideas? Thanks!!! |
#184
|
||||
|
||||
Quote:
If so, recheck your showpost file and make sure you copy/paste everything as found in instructions. In the showpost are IT SAYS TO "BELOW ADD". You'll probably have to check your printhread file also. |
#185
|
|||
|
|||
that was exactly it, in my rush today i overwrote it instead of added below, thank you!!
|
#186
|
||||
|
||||
Is it working with 3.0.3 ?
|
#187
|
||||
|
||||
yes, it works ... some commas may be on different lines -- other than that, it's all the same
|
#188
|
|||
|
|||
Just had this installed on a vBulletin 3.06 site ... works like a champ! And if you are busy like me ... you can't beat a $20 donation to have it installed for you!!!!!!!
|
#189
|
||||
|
||||
Quote:
|
#190
|
||||
|
||||
I have been wanting exactly this for so long.... I have a premium recipe forum and without guests being able to drool over the tiles, it just doesn't work as it should, this will solve everything!!! can't wait to try it !!! but I have some "other issues" to resolve first.... THANKS SO MUCH FOR SHARING THIS.
|
#191
|
||||
|
||||
I meant to ask you - does this allow users to enter and edit closed threads in the premium forums even if they are not premium members? and can't see the rest of the threads in that same forum?
I might like to offer that, since the recipes in the one forum I refer to are the creations of my members.... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|