vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Thread / Post Count - How To Hide It ? (https://vborg.vbsupport.ru/showthread.php?t=198256)

IIAnDoII 12-07-2008 06:23 PM

Thread / Post Count - How To Hide It ?
 
How do i hide the thread / post count on the main forum page.

I dont want members to view how many threads / post there is in one of my sections

http://e.imagehost.org/0555/Untitled-1.jpg

Lynne 12-07-2008 06:54 PM

Here's a post on how to move those columns around. Just delete them instead - How To Change The Ordering Of The 'Last Post', 'Threads', And 'Posts' columns

IIAnDoII 12-07-2008 07:07 PM

thanks but i dont want to delete them i just want to hide it on mt VIP section i have sin it on many forums just dont know how to do it

ssslippy 12-07-2008 07:17 PM

That is in the vboptions u can prevent people from seeing post count in a private forum.

Lynne 12-07-2008 07:21 PM

Just put a condition around the content in the columns then.

HTML Code:

<if condition="is_member_of($bbuserinfo, x,y)">
<!-- content only shown to members of usergroupid x or y -->
$thread[views]
<else />
-
</if>


IIAnDoII 12-07-2008 07:55 PM

ok thanks for the tip lads will give it a shot now

IIAnDoII 12-13-2008 09:12 PM

Lynne i couldent get this to work im not to good with codes can you tell me what template to add this to and were abouts

thanks

Lynne 12-13-2008 09:32 PM

I don't know which templates. In order for you to figure out which templates, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

Also, don't forget to change x,y to the usergroupids you wich to be able to see the thread views.

Dismounted 12-14-2008 04:58 AM

One of the forumhome_forumbit_* templates (possibly level1_post).

IIAnDoII 12-14-2008 12:34 PM

ok im probably realy anoying you all now but...

in the forumhome_forumbit_level1_post i found

<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>

which am pritty sure that i need to add the condition before it

<if condition="is_member_of($bbuserinfo, 6,7,5,11,10 )">
<!-- content only shown to members of usergroupid 6,7,5,11,10 -->
$forum[threadcount]
$forum[replycount]
<else />
-
</if>

is that correct and sorry to be a pain lads

Thanks for all the help


All times are GMT. The time now is 12:50 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
  • Page Generation 0.01086 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete