vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Image in the postbit for admin (https://vborg.vbsupport.ru/showthread.php?t=189468)

Hamednet 08-29-2008 01:26 PM

Image in the postbit for admin
 
Hi Dears ,

show up Small image in postbit for only several special usergroups, besides User Rank

How do I do it?

Thanks in advance. https://vborg.vbsupport.ru/

Lynne 08-29-2008 01:56 PM

You need to modify your postbit(_legacy) and put a condition in there where you want the image to be.

HTML Code:

<if condition="is_member_of($bbuseinfo,5)">
image for admins
<else />
  <if condition="is_member_of($bbuseinfo,6)">
  image for supermods
  <else />
    <if condition="is_member_of($bbuseinfo,7)">
    image for moderators
    </if>
  </if>
</if>


MoT3rror 08-30-2008 03:37 AM

Quote:

Originally Posted by Lynne (Post 1609906)
You need to modify your postbit(_legacy) and put a condition in there where you want the image to be.

HTML Code:

<if condition="is_member_of($bbuseinfo,5)">
image for admins
<else />
  <if condition="is_member_of($bbuseinfo,6)">
  image for supermods
  <else />
    <if condition="is_member_of($bbuseinfo,7)">
    image for moderators
    </if>
  </if>
</if>


I believe it is $post and not $bbuserinfo for the information of the user that made that post.

Opserty 08-30-2008 08:31 AM

Code:

<if condition="is_member_of($post,5)">
image for admins
<else />
  <if condition="is_member_of($post,6)">
  image for supermods
  <else />
    <if condition="is_member_of($post,7)">
    image for moderators
    </if>
  </if>
</if>

:p

wwolf27 08-30-2008 09:00 AM

I have an image...where I do put it after I do the above postbit(_legacy) so the image will show on my board..SORRY!!! Thank you..I NEEDED THIS!!!

Lynne 08-30-2008 03:55 PM

Quote:

Originally Posted by MoT3rror (Post 1610357)
I believe it is $post and not $bbuserinfo for the information of the user that made that post.

Not only that, but I spelled bbuserinfo wrong! :erm:

Quote:

Originally Posted by wwolf27 (Post 1610486)
I have an image...where I do put it after I do the above postbit(_legacy) so the image will show on my board..SORRY!!! Thank you..I NEEDED THIS!!!

Upload it to your site using ftp and note the path to wherever you put it cuz you will use that path when writing the <img> tag.

Dismounted 08-31-2008 05:41 AM

Nested conditionals aren't really needed - just adds to the complexity.
Code:

<if condition="is_member_of($post,5)">
image for admins
</if>
<if condition="is_member_of($post,6)">
image for supermods
</if>
<if condition="is_member_of($post,7)">
image for moderators
</if>


Hamednet 08-31-2008 10:13 AM

Thanks dears for your helps :)

wwolf27 09-02-2008 12:42 PM

Quote:

Originally Posted by Hamednet (Post 1611080)
Thanks dears for your helps :)

AGREE!!! Thank you.

wwolf27 09-29-2008 09:50 PM

I am having issues with this I guess you could say...I have the image I want to use...and I have the url to it but I am unsure of how to write "img" tags inorder for it to work can someone please show the newb how this is done


All times are GMT. The time now is 08:42 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.01093 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)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