vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $userinfo[posts] conditional does not work (https://vborg.vbsupport.ru/showthread.php?t=105776)

Andy 01-20-2006 01:45 AM

$userinfo[posts] conditional does not work
 
Some members would not like to display the large number of posts they have. So what I would like to do is show something like "Total Posts: >1000" to those that have more then 1000 posts.

In the MEMBERINFO template I found the area that displays the Total Posts and proceeded to add this conditional in front of it.

<if condition="$userinfo[posts] <= 1000">

but this does not work.

Code:

<if condition="$userinfo[posts] <= 1000">
 <tr>
 <td>
  $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
 </td>
 </tr>
</if>


Steve Moore 01-20-2006 02:12 AM

try: $bbuserinfo[posts] or $bbuserinfo['posts']

Andy 01-20-2006 04:10 AM

Hi Steve,

I tried both of those and it still does not work.

Steve Moore 01-20-2006 05:21 AM

Trying moving your '=' like so
Code:

= <

Andy 01-20-2006 05:43 AM

That gives me this error message...

"The following error occurred when attempting to evaluate this template:" etc...

calorie 01-20-2006 06:05 AM

Andy, your conditional in post1 worked fine on my 3.5.3 board. Are you looking at the same style corresponding to the MEMBERINFO template you are editing?

Andy 01-20-2006 02:26 PM

Thank you calorie, I appreciate you checking this for me.

I'm still running vBulletin Version 3.5.0 Release Candidate 2, perhaps that is the problem and I need to upgrade.

Reeve of shinra 01-20-2006 05:45 PM

Deffinitely need to upgrade.

Andy 01-22-2006 12:00 AM

Quote:

Originally Posted by calorie
Andy, your conditional in post1 worked fine on my 3.5.3 board. Are you looking at the same style corresponding to the MEMBERINFO template you are editing?

I just updated to 3.5.3 and it still does not work. Would you be si kind as to double check this for me.


All times are GMT. The time now is 11:25 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.01064 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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