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 |
#52
|
|||
|
|||
Trying to install this hack but can't find the following:
PHP Code:
|
#53
|
||||
|
||||
Please read the instructions and past post carefully...
As of June 23rd adminfunctions_forums is 207 lines unmodified. FIND: Code:
print_yes_no_row($vbphrase['can_rate_threads'] Code:
// ================================================= \\ // == [ ALLOW GROUP TO READ TITLES - GTP BEGIN ] print_yes_no_row($vbphrase['can_read_content'], 'forumpermission[gtcanreadcontent]', $forumpermission['gtcanreadcontent'], $extra); // == [ 07-01-2004 - GTP END ] // ================================================= \\ |
#54
|
|||
|
|||
Quote:
|
#55
|
||||
|
||||
Instructions have been updated for vB 3.01
enjoy NOTE: This is only an "instructions update" - if you already have this hack installed do not worry. |
#56
|
|||
|
|||
Great Hack,
i use VB 3.0.3 and istalled this hack. sience I can?t read any Postings. I set in Usergroup "ADMIN" "Can read Contet" to Yes and also in the Forum permission. But if I click a Thread i can?t show it. Now i can?t show any threads in my Forum Can you help me ? |
#57
|
|||
|
|||
Hello, nobody can halp me ?
|
#58
|
|||
|
|||
I have install this hack ... there is no group can enter any forum i try to go to the Mang Group and i modify them and i go to Forums pormiss and still the same there is no group even the admin
Thankyou |
#59
|
|||
|
|||
Hello ?
Plz. help. I must install this hack or my forum can´t go online :´( |
#60
|
|||
|
|||
I have the same Probelm. I placed all groups to "yes can read" and also the forum rights to but nobody can the Threads read.
I used this hack in VB 3.0.1 without Problems but in 3.0.3 it will not work. |
#61
|
||||
|
||||
sorry, guys -- just got back from a hard-drive crash.
Things I have to do before I post a new version: 1. I have to download 3.03 (downloading now) 2. I have to compare new files with my current files. Once I have this complete I will update the instructions. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|