vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Postbit questions (vb 4.2.1) (https://vborg.vbsupport.ru/showthread.php?t=303243)

SPEEDKILLZ 10-11-2013 12:41 AM

Postbit questions (vb 4.2.1)
 
Right now my rep bars are located above my avatar and centered. I would like them to be right below my avatar and to the left. Where would i go to find this code and any info on what and where to add would be great

Digital Jedi 10-11-2013 12:51 AM

That would be in your postbit_legacy template. Look for this block of code (NOTE: Might look a little different, since my vB4 is slightly older.)

Code:

                        <vb:if condition="$show['reputation']">
                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
                        </vb:if>

                        <vb:if condition="$show['avatar']">
                        <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                                <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        </a>
                        </vb:if>

The code in red is your rep code. The code in blue is your avatar code. Just switch places. :)

As far as aligning left goes, that should be it's alignment by default. But you might be using a skin that has different CSS. See if the original designer can clue you in to where he/she coded it to center.

SPEEDKILLZ 10-11-2013 02:00 AM

1 Attachment(s)
Ok i got it on the bottom but now it is touching the avatar

SPEEDKILLZ 10-11-2013 03:39 PM

anymore advise?

Digital Jedi 10-11-2013 04:25 PM

You can alter the spacing with CSS, but you might want to check with your skin designer to see how his or her code is affecting that area. For instance, you could add padding to that area using CSS code in the template, but the designer could have his own CSS that would override that. And CSS can be named anything, so you'd want to check with him to find out what the correct class names are and where they are affecting things.

SPEEDKILLZ 10-11-2013 09:15 PM

Quote:

Originally Posted by Digital Jedi (Post 2452258)
You can alter the spacing with CSS, but you might want to check with your skin designer to see how his or her code is affecting that area. For instance, you could add padding to that area using CSS code in the template, but the designer could have his own CSS that would override that. And CSS can be named anything, so you'd want to check with him to find out what the correct class names are and where they are affecting things.

It is a pure vb skin. I wouldnt even know who to contact. I did it once before on this same skin but it was 4.1.5 and that was a year ago lol

Digital Jedi 10-11-2013 11:36 PM

Quote:

Originally Posted by SPEEDKILLZ (Post 2452344)
It is a pure vb skin. I wouldnt even know who to contact. I did it once before on this same skin but it was 4.1.5 and that was a year ago lol

Are you sure? It doesn't look anything like the default vB 4 skin. Certainly text is not centered by default in that area. you can add style="width:100%; text-align:left !important" to <span> tag. But I can't guarantee that will work without actually looking at the style on the backend.

ozzy47 10-11-2013 11:40 PM

No DJ, PurevB is a company that sells styles.

Digital Jedi 10-11-2013 11:43 PM

Quote:

Originally Posted by ozzy47 (Post 2452422)
No DJ, PurevB is a company that sells styles.

If I said "I knew that. I was just testing you". Would you believe me? :erm:

ozzy47 10-11-2013 11:50 PM

Of course I would. :)


All times are GMT. The time now is 09:15 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.01052 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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