vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Cannot see thread title? (https://vborg.vbsupport.ru/showthread.php?t=267938)

s.sami 08-04-2011 08:04 AM

Cannot see thread title?
 
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 [DATE]1312459208[/DATE] at [TIME]1312459208[/TIME] ---------------

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
HTML Code:

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

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-->&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 [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
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?

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>


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):
HTML Code:

<vb:if condition="is_member_of($bbuserinfo, x,y,z)">
Then put this at the bottom of the template:
HTML Code:

<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


All times are GMT. The time now is 04:03 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
  • Page Generation 0.00980 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete