vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Conditional Statement Question (https://vborg.vbsupport.ru/showthread.php?t=156483)

siliconfinance 08-28-2007 08:36 PM

Conditional Statement Question
 
For donating members, I would like to display an icon in the area of the post where the user info is displayed such as name, status, posts etc. For example, I created a new donating members usergroup: UserGroup ID 28. I use the PostBit_Legacy_Template and know exactly where I need to insert the conditional to make it work, but I have yet to succeed with writing a conditional.

If I drop myself in that group, what conditional would work to display specific content in the area of my post that contains name, status, number of posts etc?

Kirk Y 08-28-2007 08:42 PM

Code:

<if condition="is_member_of($post,28)">Image Here</if>

siliconfinance 08-28-2007 09:14 PM

you rock! THank you

siliconfinance 08-30-2007 11:20 PM

Kirk, or anybody else,

How can I hyperlink the image to take someone to another page that explains what the image is?

Kirk Y 08-30-2007 11:53 PM

Code:

<a href="mypage.php"><img src="myimage.gif" border="0" /></a>

siliconfinance 08-31-2007 11:35 PM

Thank you again, you rock.

Now what if I want to single out a single user based on their id rather than using a usergroup?

BTW, I am using the usergroup one, but now I want to hand out an individual award.

One more question, do you happen to know whether there is a statement that can show an individual's number of posts in a single forum?

Dismounted 09-01-2007 09:49 AM

Code:

<if condition="$post['userid'] == 1">Image Here</if>
Where 1 is the userid.


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