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?

WichitaRacing 12-03-2003 11:51 AM

Quote:

Originally Posted by Faranth
should work just fine does it?

Nope. I get the error message that I attached above.

If it matters, I'm on beta 6.

Zachery 12-03-2003 02:08 PM

Quote:

Originally Posted by WichitaRacing
Nope. I get the error message that I attached above.

If it matters, I'm on beta 6.

mmm it might, but i dont think so.....

i only have beta 7 instaltions where i work so i couldnt tell you

WichitaRacing 12-03-2003 03:13 PM

Quote:

Originally Posted by Faranth
mmm it might, but i dont think so.....

i only have beta 7 instaltions where i work so i couldnt tell you

I'm going straight to gamma when it comes out, so I'll try it then (hopefully in the next couple days?).

WichitaRacing 12-14-2003 05:27 AM

I used this on my gamma installation and believe it is working now.

zajako 02-04-2004 09:30 PM

thanks, this was useful as it is one of the few things that shows up when searching is_member_of

T3MEDIA 01-23-2005 10:42 PM

Quote:

Originally Posted by Zachery
should work just fine does it?

any updates on this?


All times are GMT. The time now is 07:39 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.01149 seconds
  • Memory Usage 1,751KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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