vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Style-specific user rank badges? (https://vborg.vbsupport.ru/showthread.php?t=262477)

DevOne5555 04-22-2011 11:59 PM

Style-specific user rank badges?
 
My board uses 2 different skins. We've made our own user rank badges, but we'd like them to be consistent with the skins we use. Is there a way, perhaps using a variable, that we could have it so the badges are set by CSS (instead of having to specify file links in the adminCP)? In other words, to have different user rank images for each skin?

Lynne 04-23-2011 02:22 AM

You could use Replacement Variables - Replacement Variable Manager

DevOne5555 04-24-2011 05:38 PM

Lynne,

I found the variable for user rank badges, which is {vb:raw post.rank}, however I'm unsure of what to do now. What do I replace {vb:raw post.rank} with? The paths for the images used by {vb:raw post.rank} are set under the Ranks pane of the admincp, however I want to use a different set of images at a different location for each vb skin. I've made folders for the rank images under the directories for each of my skins (CSS is being served from the filesystem instead of php). Is there a way to make a replacement variable that points to a directory instead of a filename? The way it's set right now in the ranks panel of admincp it links to individual files (i.e. images/filename.png).

Lynne 04-24-2011 09:16 PM

You write teh Replacement variable to replace the images.

For example, in the rank manager, you call the image "rank1.gif". So, in style 2, you want the ranks in the folder /style1 and it's still called rank1.gif. So, You write the replacement to replace "rank1.gif" with "style1/rank1.gif"

DevOne5555 04-25-2011 06:18 PM

Lynne thanks so much. Looks like I overcomplicated things for myself. A simple replacement variable to change the filepath did the trick. Looks great :)


All times are GMT. The time now is 12:53 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.00992 seconds
  • Memory Usage 1,713KB
  • 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
  • (5)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