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 |
#162
|
||||
|
||||
Quote:
Copy / Paste completely REPLACE WITH / ADD BELOW |
#163
|
||||
|
||||
Hi Friend's.. Im New Here.. :nervous:
Can Someone Tell Me Clearly On Where I Put This Code: - I Know It's In /forum/forumdisplay.php What I Dont Know Is Where I Place It Exactly ? Quote:
I Also Want To Know I Have Been Reading These Posts On This Hack.. I've Donwloaded This Hack About 2 Days Ago, IS IT UP TO DATE WITH ALL THE BUGS HEALED..! Another Problem I Have Is This, I Have Followed Instructions Clearly.. One Thing Is Wrong CHECK THE ATTACHMENT: The Test Is'nt Showing.. Help Please..! :tired: :tired: :tired: |
#164
|
|||
|
|||
Your blank text problem in adminCP is bcos u have probably not added the phrase
I dont exactly understand your first problem, so cant help u there IMHO, this is one of the best hacks i have come accross, and the instructions are very clear. Are u using 3.0.3 or some older version of vBulletin? |
#165
|
||||
|
||||
Quote:
I Want To Know Where I Exactly Place That CODE (IN QUTOES). In That File.. I Am Using 3.0.3.. Also Like You Just Said I NEED TO ADD THE PHRASE. Exactly Where Do I Place It.. |
#166
|
||||
|
||||
Quote:
Yes, the instructions are up to date and this hack works flawlessly. Any problems are due because of errors done on installers end. For example, you have not installed the phrases for this hack. Do not use any code found on previous posts. Please follow instructions ... If you need "personal" help I will gladly install the hack for a $20 donation (paypal link found in instructions) |
#167
|
||||
|
||||
to add phrases you need to go into your admincp / Languages & Phrases / Phrase Manager
click ADD NEW PHRASE |
#168
|
||||
|
||||
Quote:
What Do I Put In The Following Text Box's.. Phrase Type Varname Text I'll Appreciate It.. |
#169
|
||||
|
||||
I Think I've Sorted It...
Thankyou I Will Donate.. |
#170
|
||||
|
||||
Hi,
This hack seems no more working with 3.0.3 + init.php patch (3.0.4). I can't read the messages. I got the following merror message: xxxxxxxx, you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. Am I alone ? |
#171
|
||||
|
||||
I haven't yet upgraded to 3.0.4; but, I do not see anything in the new init.php file that will prevent this hack from working.
Do you have any other hacks installed? ie. any other modifications to init.php?? Please recheck and make sure you have not missed or deleted code that you should not have. I noticed that you are an early installer of this hack ... make sure the BITFIELD is GTPCANREADCONTENT and not GTCANREADCONTENT (p missing). I recommend reinstalling this hack completely. Place close attention to the REPLACE WITH or ADD BELOW ... many people are overwriting code when instructions say ADD BELOW. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|