![]() |
Hide all but first post for usergroup
1 Attachment(s)
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. |
|
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. :( |
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).
|
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)"> Now to work on tweeking it even more. |
All times are GMT. The time now is 03:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|