The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi everyvone
i want to ask a question, for example when i close forum permissions of the usergroup they cannot see all of lastpost info but i need to do like this just hide thread title and writer... ![]() is this possible ? |
|
#2
|
|||
|
|||
|
Can somebody help me ?
--------------- Added [DATE]1312459208[/DATE] at [TIME]1312459208[/TIME] --------------- Please somebody help me really urgent.. If you dont understand please ask i can explane again.. |
|
#3
|
||||
|
||||
|
I would guess you could put a condition in the template to show the regular thread title to certain usergroups and not to others. The template is forumhome_lastpostby and the condition could be based on the usergroup? So
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, x,y,z)">show whole template contents <vb:else /> show other message </vb:if> |
|
#4
|
|||
|
|||
|
thanks for your reply can you show me how can i do ?
Code:
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div>
<span style="white-space:nowrap">
<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
<if condition="$lastpostinfo['prefix']">
$lastpostinfo[prefix]
</span><if condition="is_browser('safari')"><!--bug#24775--> </if>
<span style="white-space:nowrap">
</if>
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a></span>
</div>
<div style="white-space:nowrap<if condition="is_browser('ie', 6)">; float:$stylevar[left]</if>">
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
</div>
<br />
<div align="$stylevar[right]" style="white-space:nowrap">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</div>
<else />
<div class="smallfont" align="$stylevar[right]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</if>
--------------- Added [DATE]1312486556[/DATE] at [TIME]1312486556[/TIME] --------------- for example your usergroup is close for this category but your id is open so how can i do ? my mean is if your id and user group is close this category? category seen like this ![]() but i want only hide thread title and writer... thread title: You cannot see this thread title writer:Private like this i hope you can help me |
|
#5
|
||||
|
||||
|
Did you try just putting your condition around the full code there like I suggested?
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, x,y,z)"> show whole template code you posted above <vb:else /> <div class="smallfont" align="$stylevar[right]"> You cannot see this title<br />Private </div> </vb:if> |
|
#6
|
|||
|
|||
|
can you show me on my forumhome_lastpostby template i really dont understand where should i put?
|
|
#7
|
||||
|
||||
|
Put this line at the top of the template (with x, y, z changed for your condition):
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, x,y,z)">
HTML Code:
<vb:else /> <div class="smallfont" align="$stylevar[right]"> You cannot see this title<br />Private </div> </vb:if> |
|
#8
|
|||
|
|||
|
please check :S
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|