vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add text in postbit_userinfo based on usergroup? (https://vborg.vbsupport.ru/showthread.php?t=58949)

WichitaRacing 12-02-2003 12:22 AM

How to add text in postbit_userinfo based on usergroup?
 
Somebody over on vB.com suggested that I try some code along the lines of :

<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">whateverIwanttowrite</if>

I'm need to know the exact code that I would use for this, and if I need to do anything else.

What I'm doing, is adding members who donate to a secondary usergroup. I want "donating member" or something like that to be in their info.

Koutaru 12-02-2003 02:27 AM

If you're using vB2 right now I suggest you use Logician's conditionals hack

WichitaRacing 12-02-2003 06:51 PM

Quote:

Originally Posted by Koutaru
If you're using vB2 right now I suggest you use Logician's conditionals hack

vB3 for me. Will those hacks not work w/ 3? Where do I find them?

assassingod 12-02-2003 06:54 PM

Just to note, no vB2 hacks will work with vB3. Also, if you want to show text for a certain usergroup, you would use in your template:

Code:

<if condition="$bbuserinfo[usergroupid]==xx">
some text
<else />
text for noone in that usergroup
</if>


WichitaRacing 12-02-2003 09:42 PM

Quote:

Originally Posted by assassingod
Just to note, no vB2 hacks will work with vB3. Also, if you want to show text for a certain usergroup, you would use in your template:

Code:

<if condition="$bbuserinfo[usergroupid]==xx">
some text
<else />
text for noone in that usergroup
</if>


Hmm, I guess that doesn't work for "additional usergroups." I've added on called "Donating Members," but this code isn't making the text appear for users that have this checked as an additional usergroup. :(

Zachery 12-02-2003 09:50 PM

Quote:

Originally Posted by WichitaRacing
Hmm, I guess that doesn't work for "additional usergroups." I've added on called "Donating Members," but this code isn't making the text appear for users that have this checked as an additional usergroup. :(

yes it does. i told you how to check for that over at vb.com :D

<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">Supporting Member</if>

WichitaRacing 12-03-2003 01:51 AM

1 Attachment(s)
Quote:

Originally Posted by Faranth
yes it does. i told you how to check for that over at vb.com :D

<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">Supporting Member</if>

:(

Zachery 12-03-2003 01:54 AM

Quote:

Originally Posted by WichitaRacing
:(

wheres that second part from?


is_member_of should work perfectly. it was designed to do just what im telling you

WichitaRacing 12-03-2003 01:57 AM

Quote:

Originally Posted by Faranth
wheres that second part from?

That's what it told me when I tried to save the template after adding the following:
Code:

<if condition="is_member_of($post, 14)">Supporting Member</if>
14 is the id, from the usergroup manager, of my "Donating Members" usergroup.

Zachery 12-03-2003 02:10 AM

should work just fine does it?


All times are GMT. The time now is 07:36 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.01053 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_quote_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