vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Allowing users to hide/show post counts? (https://vborg.vbsupport.ru/showthread.php?t=201114)

KingAdora 01-08-2009 10:31 PM

Allowing users to hide/show post counts?
 
Is this possible? Or a mod that can do it?

Some of my users want to see post counts, as I have them hidden for now (commented out). But some of the users don't want the postcounts shown..
The ones that post the most don't want to know/see/show how much they post I think.. ;)

So having them 'off' by default and an option for the user to turn them on would be ideal I think.

Thank you for any help on this matter :)

Lynne 01-08-2009 10:34 PM

I made a User Profile Field and have users set it to yes or no whether they want to see the post counts. Then I just put a condition around the post count in the postbit(_legacy) template based on the profile field.

Custom Profile Fields

KingAdora 01-08-2009 10:40 PM

Oh gosh that sounds SO obvious now! And so simple! Although I didn't really know about the custom profile fields bit.. Thanks so much, and a 3 minute reply! <3

--------------- Added [DATE]1231464894[/DATE] at [TIME]1231464894[/TIME] ---------------

Maybe I was too quick... It doesn't seem to work lol :D


<if condition="$post['field5']" == 1">
$vbphrase[posts]: $post[posts]
<else />
test
</if>


All I ever see is 'test'.

Even tried:
<if condition="$post['field5']" == Yes">
<if condition="$user['field5']" == 1">
<if condition="$user['field5']" == Yes">

Any ideas? :(

--------------- Added [DATE]1231465850[/DATE] at [TIME]1231465850[/TIME] ---------------

My mistake, you didn't need the quotes around field5. Thanks again!


All times are GMT. The time now is 05:15 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.01085 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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