View Full Version : Hide all but first post for usergroup
Davey-UK
07-12-2013, 03:25 PM
Hello all.
I am looking for a mod that hides all but the first post to a specific usergroup in a specific category of the forum.
See screenshot & thanks in advance. By the way, i am not too bothered about the search engine side of it, as it will only be implemended on a small section of the forum.
Stefan118
07-12-2013, 09:39 PM
You could try limited guest viewing.
https://vborg.vbsupport.ru/showthread.php?t=231352
Davey-UK
07-21-2013, 03:49 PM
Ive already tried that, but doesnt fit my needs unfortunately.
I just need to hide thread content after the initial post, unless in a certain usergroup. Even if it means hacking into a default template, that would be fine for now. :(
Lynne
07-21-2013, 10:49 PM
You could put a condition around the template (postbit or postbit_legacy, whichever you are using) and say "if !( (is_member_of($bbuserinfo,x) AND $thread[forumid] == y) AND ($post[postcount] != 1) )" (not totally sure that is correct, but you can play with the logic of it).
Davey-UK
07-22-2013, 07:31 AM
You've only gone and cracked it Lynne!
Here is what it finally took to get it to work if anyone else is interested.
<vb:if condition="in_array($thread['forumid'], array(1,2,3)) AND ($post[postcount] != 1) AND !is_member_of($bbuserinfo, 1,2,3,4,5)">
Show a block message
<vb:else />
Show the full post
</vb:if>
You're a diamond, thankyou. :up:
Now to work on tweeking it even more.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.