![]() |
Hide Printable View Link in threads and Printable View Page for certain usergroups
1 Attachment(s)
Hi all, it's a simple template mod, i was searching for that and don't find for VB4, if it existed, would appreciate a mod that eliminated, sorry for my English.
This simple mod allow you hide print link of Threads tools and hide print page for guests or certain groups. AdminCP -> Styles & Templates -> Search in Template -> Search for Text -> printthread SHOWTHREAD Template Search for: Code:
<li><a href="printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}<vb:if condition="$perpage">&pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&page={vb:raw pagenumber}</vb:if>" accesskey="3" Replace to: Code:
<li><vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)"><a href="printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}<vb:if condition="$perpage">&pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&page={vb:raw pagenumber}</vb:if>" accesskey="3" printthread Template Search for: Code:
</vb:if> Replace to: Code:
</vb:if> If you want more usergroups can see print link in thread and print page, add usergroup id in conditional code: Code:
is_member_of($bbuserinfo, 2,5,6,7,25,26,29) If you want some usergroup can't see print link and print page, don't put his id or remove his id at this condicional code. |
thanks .. marked as installed ..
|
Quote:
Greetings. |
All times are GMT. The time now is 10:50 AM. |
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:
|