vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Condition Statement (https://vborg.vbsupport.ru/showthread.php?t=194370)

ade_dnb 10-23-2008 06:47 PM

Condition Statement
 
Quote:

<if condition="is_member_of($bbuserinfo, array(5, 6, 7, 9, 11))">
<if condition="in_array($forumid, array(6,7,8,9,61,63,64,46,47,62,60,48))">
<td class="alt1" align="center"><if condition="$threadinfo['threaduserid'] == $bbuserinfo['userid']"><a href="bumpthread.php?t=$thread[threadid]"><img src="images/misc/bump.gif"</img></a><else />&nbsp;</if></td></if></if>
Can somebody tell me what im doing wrong with this piece of code?

What im trying to do is show a link with an image to thread owners that are to the usergroups listed (the first condition) in the forums listed (the second condition). The first piece works fine. Its when I add <if condition="$threadinfo['threaduserid'] == $bbuserinfo['userid']"> it doesn't work. Is $threadinfo['threaduserid'] not a valid conditional?

I am trying to use this in the threadbit template.

Lynne 10-23-2008 07:31 PM

threaduserid is not one of the columns in the thread table. postuserid is in the table though, so maybe that will work.

ade_dnb 10-25-2008 07:25 PM

Thank you for your help. Using postuserid worked fine and now it all works how I wanted it to.


All times are GMT. The time now is 01:15 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.01215 seconds
  • Memory Usage 1,711KB
  • 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_quote_printable
  • (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