vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Small image in postbit for only one usergroup. How do I do it? (https://vborg.vbsupport.ru/showthread.php?t=145360)

KipLarson 04-20-2007 06:05 PM

Small image in postbit for only one usergroup. How do I do it?
 
Small image in postbit for only one usergroup. How do I do it?

I have a premium usergroup that I want to thank for showing their support by subscribing to the site by placing a little image in the postbit for them.

What is the easiest way to do this? Their usergroup number is 15. Is this the correct way to do it?:

Code:

<if condition="!is_member_of($bbuserinfo, 15) ">
Or is it supposed to be something else?

Thanks in advance.

Brad 04-20-2007 09:03 PM

Use this;

HTML Code:

<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
       
        <!-- User is in the correct group, so show the image -->
        <img src="http://www.example.com/path/to/your/image.gif" alt="some image" />
</if>


KipLarson 04-20-2007 11:26 PM

Oh ok. Thanks.

By the way, does a "!" mean "not"? Because if that's the case, I could probably just use the code I had above (as long as I took out the "!" symbol).

I'm just wondering. (although I'll probably just use the code you posted).

Nudda 04-21-2007 03:45 AM

user ranks is the easier way to do this

admin cp --> user ranks

KipLarson 04-21-2007 02:24 PM

Hmmm, I hadn't thought of that.

You're basically saying to just go into the user ranks in the admin cp and give an image to the usergroup I desire and I can just forget about dealing with if conditionals in the postbit?

The only problem I see that having is that I wouldn't be able to place the image in the right location of the postbit (right above the "online" button)

Semere79 04-21-2007 03:59 PM

Quote:

Originally Posted by Brad (Post 1232222)
Use this;

HTML Code:

<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
       
        <!-- User is in the correct group, so show the image -->
        <img src="http://www.example.com/path/to/your/image.gif" alt="some image" />
</if>


What would be the seperator to this if I wanted to allow multipule users to see certain thing but they are in different groups? Like 15,17,22,45 or whatever?

KipLarson 05-01-2007 01:40 AM

Code:

<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
        <!-- User is in the correct group, so show the image -->
        <img src="http://www.gamingvidz.com/forum/gamingvidz/misc/premium.jpg" alt="Premium Member" width="204" height="28" border="0" />
</if>

This doesn't work :(

Code:

<if condition="is_member_of($bbuserinfo, 15) ">
<a href="http://www.gamingvidz.com/forum/payments.php" target="_blank"><img src="http://www.gamingvidz.com/forum/gamingvidz/misc/premium.jpg" ph" alt="GV Premium Member" border="0" /></a>
</if>

This doesn't work either? Any ideas on how to fix this besides user ranks? I don't want to use those.

Please help.


All times are GMT. The time now is 08:34 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.00987 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_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