vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adding images to post bit for each group (https://vborg.vbsupport.ru/showthread.php?t=77944)

djjeffa 03-12-2005 01:29 AM

Adding images to post bit for each group
 
I would like to make lil icons for each user group and then make them all show up in the post bit so it would show images for all the groups ther a member of.
cann any body show me the codiing to add to the post bit and i could probly take it from there
thank you.

sully02 03-12-2005 06:42 PM

Quote:

Originally Posted by djjeffa
I would like to make lil icons for each user group and then make them all show up in the post bit so it would show images for all the groups ther a member of.
cann any body show me the codiing to add to the post bit and i could probly take it from there
thank you.

I think you can do this already with user ranks.

kall 03-12-2005 07:13 PM

Look for Anh Tuan Cool's chack 'Staff icon in postbit'.

Moncal 03-12-2005 07:15 PM

Quote:

Originally Posted by sully02
I think you can do this already with user ranks.

You can, you would just have to create a usergroup rank icon for all possible combinations of usergroups tha a member can be in.

djjeffa 03-12-2005 08:50 PM

Quote:

Originally Posted by kall
Look for Anh Tuan Cool's chack 'Staff icon in postbit'.

I already installed that but that only added a image for all the staff not the rest of the groups

ericgtr 03-12-2005 10:42 PM

All you have to do is setup a condition based on whatever group they are in and add it to your postbit or postbit_legacy template where you want it to appear under their avatar some place.
PHP Code:

<if condition="is_member_of($post, X)"// <--- change X to the group number
/path/to/image
</if> 


djjeffa 03-12-2005 11:21 PM

Quote:

Originally Posted by ericgtr
All you have to do is setup a condition based on whatever group they are in and add it to your postbit or postbit_legacy template where you want it to appear under their avatar some place.
PHP Code:

<if condition="is_member_of($post, X)"// <--- change X to the group number
/path/to/image
</if> 


thanks for your help
I couldent get it to work So i had to make it like this

Code:

<if condition="is_member_of($post, X)"> $post[image name]
</if>

but im not good with this so I wouldent have goten it to work with out your help :)

ericgtr 03-12-2005 11:28 PM

I always use a full url path for those images, you can actually put any html you want in there. Also, you can add as many of those statements as you want if you want more images, text etc. based on user groups. :)

Stifmeister2 04-22-2006 08:43 PM

Quote:

Originally Posted by ericgtr
I always use a full url path for those images, you can actually put any html you want in there. Also, you can add as many of those statements as you want if you want more images, text etc. based on user groups. :)

Thx dude. :) I've been looking for this for a while.


All times are GMT. The time now is 08:56 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.01646 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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