vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Rank Stacks? (https://vborg.vbsupport.ru/showthread.php?t=247775)

Trasion 08-02-2010 01:54 AM

Rank Stacks?
 
I want each user to be able to have multiple ranks, and have them all display in the postbit (they're images). For testing purposes, I gave myself 3 ranks. They all stack on top of eachother though. I'd like them to be side-by-side. How can this be done?

DataHero 08-02-2010 05:50 AM

Side-by-side as in horizontally? If so, I've been trying to get the same result, but no avail. However, I do think I've figured out how this could be fixed. Basically, I made two ranks and checked my postbit, and it stacked vertically as usually. I looked up on the source, and it seems that it automatically adds a break line (<br />) after each rank.

So I went to the postbit template and searched for the rank line, which would be:
HTML Code:

<if condition="$post['rank']">$post[rank]</if>
Seems that the break line isn't there, so I'm assuming it's somewhere in $post[rank]. If that's the case, does anyone know how to edit that particular bit / where I can find that variable?

Trasion 08-02-2010 12:41 PM

I'd be willing to pay for someone to help me fix this (along with a few other slight issues).

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

DataHero, I found it!

It must be done via FTP. Go to includes/functions_ranks.php, and search for this:

Code:

if (!empty($userrank) AND $rank['s'])
                        {
                                $userrank .= '<br />';

Remove the <br /> and it'll be great. It will take a while to change though for some reason.

DataHero 08-02-2010 05:32 PM

Ah, excelllent! Seems we learn something as time passes by, haha. Thanks for the information! :)

James Birkett 08-02-2010 06:30 PM

It probably takes a while due to your cache but congratulations on finding it out!


All times are GMT. The time now is 03:03 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.01020 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_html_printable
  • (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