PDA

View Full Version : Cannot see thread title?


s.sami
08-04-2011, 08:04 AM
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...

https://vborg.vbsupport.ru/external/2011/08/75.jpg

is this possible ?

s.sami
08-04-2011, 09:48 AM
Can somebody help me ?

--------------- Added 1312459208 at 1312459208 ---------------

Please somebody help me really urgent.. If you dont understand please ask i can explane again..

Lynne
08-04-2011, 05:40 PM
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
<vb:if condition="is_member_of($bbuserinfo, x,y,z)">show whole template contents
<vb:else />
show other message
</vb:if>

s.sami
08-04-2011, 06:19 PM
thanks for your reply can you show me how can i do ?

<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-->&nbsp;</if>
<span style="white-space:nowrap">
</if>

<a href="showthread.php?$session[sessionurl]goto=newpost&amp;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&amp;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>

thanks a lot

--------------- Added 1312486556 at 1312486556 ---------------

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
http://i53.tinypic.com/xojh49.jpg

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

Lynne
08-05-2011, 03:50 PM
Did you try just putting your condition around the full code there like I suggested?

<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>

s.sami
08-05-2011, 07:17 PM
can you show me on my forumhome_lastpostby template i really dont understand where should i put?

Lynne
08-06-2011, 01:58 AM
Put this line at the top of the template (with x, y, z changed for your condition):
<vb:if condition="is_member_of($bbuserinfo, x,y,z)">
Then put this at the bottom of the template:
<vb:else />
<div class="smallfont" align="$stylevar[right]">
You cannot see this title<br />Private
</div>
</vb:if>
You may need to modify the condition since it isn't clear to me exactly what your condition is supposed to be.

s.sami
08-06-2011, 04:45 AM
please check :S

https://vborg.vbsupport.ru/external/2011/08/73.jpg