The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hide all but first post for usergroup
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. |
#2
|
|||
|
|||
|
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
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).
|
#5
|
||||
|
||||
You've only gone and cracked it Lynne!
Here is what it finally took to get it to work if anyone else is interested. Code:
<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> Now to work on tweeking it even more. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|