vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User Rank Multiple Image Help (https://vborg.vbsupport.ru/showthread.php?t=89076)

Soholaunch 05-03-2004 04:27 PM

User Rank Multiple Image Help
 
I am trying to make it so that I can use 2 images for a user rank, but am unsure how. This is what I would like the rank to look like.
http://cam.soholaunch.com/images/Guru-ss.gif
The /sohoadmin picture is the picture currently displayed with that usergroup, but I would also like to add the Guru picture which is seen on the right side to display how it is shown in the above picture. Could someone help me out with how to do this?

Tony G 05-04-2004 06:50 AM

I think you could just create a new user field, disable it's change through the User CP and just use the ACP's profile options to add the URL of the image. Then put the variable in the postbit.

I'll get back to you on this.. I'm not sure if you can turn newly created profile fields off so people can't change them in the User CP. Just in a bit of a rush here. One of the other mods could answer you on this.

Soholaunch 05-04-2004 01:32 PM

I got a similar response from someone in the vbulletin.org chat room, but unfortunatley he was short on time and I didn't get a very good explanation on how to accomplish this.

After I add a new user field how do I disable it, and how do I add it to the post bit?

=/ Still kinda new here.

Tony G 05-05-2004 04:18 AM

Okay, here's how to do it.

When creating the new field, make sure you don't allow it to be edited in the User CP (Edit profile) and hide it from users.

Now, take note of the field number of the newly created profile field.

Now open postbit/postbit_legacy (whatever your setting is) and add where you want it:

<if condition="$post['fieldX']"><img src="$post[fieldX]" alt="" /></if>

Now, replace X with the field number of your newly created field. Next, go into the profile and where you see the field for your new profile field, add the URL of the image. Should work. Not tested.

(You can also do this with stylevars to make your life easier, so if you want that, just reply saying so)


All times are GMT. The time now is 11:06 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.01407 seconds
  • Memory Usage 1,709KB
  • 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)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