vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   usergroup title in postbit (https://vborg.vbsupport.ru/showthread.php?t=89007)

sabret00the 04-23-2004 12:21 PM

usergroup title in postbit
 
i thought it would've been as easy as this

HTML Code:

<if condition="$post['usergroupid'] != '2' OR $post['usergroupid'] != '4' OR $post['usergroupid'] != '10' OR $post['usergroupid'] != '11'"><div class="smallfont">$post[usergrouptitle]</div></if>
i was wrong, so i'm wondering how do i do it?

i would like it to update dynamically so that if i edit the usergroup name i don't have to edit the templates.

sabret00the 04-23-2004 04:20 PM

*bump*

Zachery 04-23-2004 04:48 PM

I think you have a few too many or's with !='s Im not a php wiz, but if one of thoughs comes out true it stops... or somthing

Try one at a time?

<if condition==" X " > </if>

Like that instead of a huge or

sabret00the 04-23-2004 04:55 PM

but how do i get it to echo out the usergroup title?

Zachery 04-23-2004 04:57 PM

does $post[usergrouptitle] echo out anything at all?

sabret00the 04-23-2004 05:57 PM

not in the slightest.

Zachery 04-23-2004 06:00 PM

Well theres where your problem lies, im going to take a stab at it isnt in the $post varible. :)

sabret00the 04-23-2004 06:01 PM

that's why i came here for help :o :(

as the only way i could think of, of acheiving this is via conditionals to say

If = X then do Y but i want the user group titles updated dynamically :(

Zachery 04-23-2004 06:14 PM

You mean the user title?

sabret00the 04-23-2004 06:37 PM

nope the usergrouptitle

Administrator
Moderator
Super Moderator
etc, etc, etc


All times are GMT. The time now is 08:49 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.01485 seconds
  • Memory Usage 1,723KB
  • 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