The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
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 |
#72
|
|||
|
|||
![]()
Hmmm, I can't see caching being a huge issue, I know I myself never bother looking at cached pages and don't imagine a huge percentage of other users do either unless they're totally determined to access information only available in 1 place.
As for the if statement, I'm not entirely sure how I'd go about that without some kind of example, my PHP knowledge is quite limited. Cheers, Robert |
#73
|
|||
|
|||
![]()
I tried changing
PHP Code:
PHP Code:
Cheers, Robert |
#74
|
||||
|
||||
![]()
I'm not sure why it wouldn't ... but try using the html entity of @ which is @
Another thing ... if you are going to bypass GTPCANREADCONTENT for search engines you should only allow it within the ARCHIVES. FYI I don't recommend this as it is easy to circumvent. |
#75
|
||||
|
||||
![]()
Where can I get the instructions for 3.01?
|
#76
|
|||
|
|||
![]() Quote:
Cheers, Robert |
#77
|
||||
|
||||
![]() Quote:
|
#78
|
||||
|
||||
![]()
Yea, I don't think it will do anything. But, if the "modification" works on the other hack it will work with this hack.
Are you sure inktomi did not 'index' the showthread page? I recommend waiting for a few weeks to really "see" if the search engines are able to index showthread. Without actually testing your modification I cannot 'see' what is wrong -- since, I do NOT think this modification is "safe" - I cannot be of much help to you. However, I do wish you luck with your small modification. Quote:
|
#79
|
|||
|
|||
![]()
Just a small question, i am needing a hack to disallow people from viewing certain threads in a forum, not dependant on usergroup as they span across several usergroups and all will have certain threads they won't be allowed to see, so if i add a secondary usergroup to them and exclude this one, will it exclude them from seeing the thread (including admins and for the purposes of the game it is for a superadmin (myself, that is))
|
#80
|
|||
|
|||
![]()
Just curious:
I have about 16 usergroups and over thirty individual forums. Although I have the hack installed for a while now, I am still running into situations where I missed a usergroup permission to allow them to see thread content in a forum they are supposed to see. What I need is a query to set all users to be able to see all content in all forums, and then from there I will go and set the permissions. |
#81
|
||||
|
||||
![]() Quote:
I believe there is a "Private Thread" hack |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|