vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   User Tags per Row (https://vborg.vbsupport.ru/showthread.php?t=260501)

x_Coffee_x 03-17-2011 05:12 PM

No idea what you just said. All I have for my ranks are;

That .class25 stuff you told me to put in Additional CSS.
and the HTML code I provided. Here's more pics.. No float tag or clear tags.

https://vborg.vbsupport.ru/external/2011/03/17.png <-- Rank Manager (if I listed all it would be too big)

https://vborg.vbsupport.ru/external/2011/03/18.png <-- Toon Rank (when on edit mode)

Basically, like I said, the HTML code is
<div class="class25"><img src="myimagelink"></div>

I don't know what you said about another big div.. a walkthrough would be nice ><

Lynne 03-17-2011 08:02 PM

If you need someone to actually code this for you, then you should probably post in the Paid Requests forum. All I can really do is give you pointers and tell you how I would go about it. I'm not going to actually do the work for you.

clear and float are tags that would be in your CSS. If you use firebug, you can see what CSS is being applied to your images. I am suggesting that perhaps there is some being applied and you need to get rid of it, but that is something you would have to look into since images don't tell us what CSS is being used.

x_Coffee_x 03-17-2011 08:47 PM

All I need is pointers, but I just don't get how to do it.
I set class33 to be 100% width. I went into the Postbit template and added <div class="class33">$post[rank]</div>
Then I kept the ranks HTML at <div class="class25"><img src="myimagelink"></div>
class25 = 25%.

On firebug, I can't find where it says where they're floating or not.. I went into firebug, and selected a rank with it on a post. What am I doing wrong?

Lynne 03-17-2011 09:03 PM

In your postbit is where your ranks are spit out. It is there that you need to set the .rank tag that spans 100% (or however many pixels) to contain your row. Then, in the ranks themselves, you would have the div/span like you are using. A different div class based on how may tags per row. I think you may have to set those to be display:inline-block also (since the rank class is set to be display:block by default).

Make sure you don't make them stackable since that puts a <br> tags between them.

x_Coffee_x 03-17-2011 09:19 PM

Where can I find display:block so I can change it to display:inline-block?
The ranks aren't set to stack.
Also, I have set the .class25 and .class 33 to {width:110px;} and {width:440px;} (One rank is 110px long but x4 is 440px) and even changed it back to 25% and 100% but nothing changed. I think I am doing something wrong. :/

Lynne 03-17-2011 10:52 PM

You need to change the display in the .class that you are using for the ranks. For example:

HTML Code:

.class50 {width:50%; display: inline-block;}
.class33 {width:33%; display: inline-block;}
.class25 {width:25%; display: inline-block;}


x_Coffee_x 03-18-2011 12:01 AM

Thanks. I did this (as also stated in PM) which I replied to, but I will also reply here.
This seems to be working, but it recognizes the 4 ranks.. but it isn't making a new line for these other 2. Look here.
https://vborg.vbsupport.ru/external/2011/03/14.png

It isn't dropping the other 2 to another line.

Lynne 03-18-2011 04:20 AM

You need to set the width of the outer div/span for the rank to be only large enough to contain the ranks you are putting into it. If you set it to 100% and then put things in it that are set to 25%, then you will only get four in a row before it flows to the next line.

x_Coffee_x 03-18-2011 01:03 PM

Hi.. How to set outer DIV?
I don't know how to go about making a div, and just learned what these classes were when you told me rofl.

Lynne 03-18-2011 04:15 PM

In the postbit is this:
HTML Code:

                        <span class="rank">{vb:raw post.rank}</span>
That is where the ranks get spit out. So, you need to set that class to a width.
HTML Code:

.postbit .userinfo .rank {    width: 100%;}


All times are GMT. The time now is 03:35 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.02293 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete