vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Reorder rank images? (https://vborg.vbsupport.ru/showthread.php?t=161256)

apokphp 10-27-2007 04:50 PM

Reorder rank images?
 
1 Attachment(s)
How can I reorder rank images that display in the postbit?

If a member belongs to two or more usergroups that use different rank images, it is problematic aesthetically.

For example, as admin, I'd like an admin rank image. I am also a part of our community's Film Club, which also has a different rank image. However, the admin rank image should always be at the top. Instead, the Film Club rank image is dominant.

See attached image.

Please help. How can I reorder these rank images?

POSSIBLE SOLUTION

If rank images cannot be reordered...how can I display the Film Club icon in the postbit, based on the usergroup? Perhaps just put it elsewhere in the postbit like under the avatar (that would be ideal IMO). I know how to do this via the user fields, but I don't know how to do it using usergroups.

This is how I did it for the user fields:

PHP Code:

<div align="left">
<if 
condition="$post[field6] != ''"><div>
                     <
img src="images/relig/$post[field6].gif" title="$post[field6]align="center">
                </if>

<if 
condition="$post[field7] != ''">
                    <
img src="images/gender/$post[field7].gif" title="$post[field7]align="center">
                </
div></if><br

As a result, it displays the member's religious affiliation icon as well as gender.

apokphp 10-28-2007 05:12 PM

*bump*

deezelpope 10-28-2007 05:24 PM

<i>How about posting your postbit code here, so we can take a look at it?</i>

apokphp 11-01-2007 02:00 AM

....I did that in the first post...

--------------- Added [DATE]1193941657[/DATE] at [TIME]1193941657[/TIME] ---------------

Found the answer at vb.com...



<if condition="is_member_of($post, %USERGROUPID%)">


Change %USERGROUPID% to the usergroup you want to search for. If you want the same image for multiple usergroups, you can list them separated by commas.


All times are GMT. The time now is 07:27 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.00993 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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