Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2011, 07:10 AM
troykp troykp is offline
 
Join Date: Feb 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I make this postbit alteration?

Hello,

I'm looking to add a background image to my postbit, as shown here (the black background):



Which HTML adjustments would I need to make in order to do this?

Much appreciated!

Edit: I tried adding a table to my postbit legacy and it merely disrupted the post area. I'm stumped.
Reply With Quote
  #2  
Old 02-22-2011, 04:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried adding it to stylevar "postbit_userinfo_background"?
Reply With Quote
  #3  
Old 02-23-2011, 08:01 AM
troykp troykp is offline
 
Join Date: Feb 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the response Lynne.

I tried that and I'm still having difficulties with the image; whilst I can now get an image in the background, it doesn't really work too well due to the different sizes of people's postbit user info panels.

Example: I have a favourite teams user profile field. It displays at the bottom of my postbit as images (very similar to the screenshot above). Some people use this field, some don't. As a result, they have different size postbits, which causes the background image to either be A) too short, or B) too long, and get cut off at the bottom.

The site in the screenshot I posted seem to have got round this error. Any ideas how?
Reply With Quote
  #4  
Old 02-23-2011, 04:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post a link for us to see what you've done and the problems you see?
Reply With Quote
  #5  
Old 02-23-2011, 08:56 PM
troykp troykp is offline
 
Join Date: Feb 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



^ As you can see, the results are vastly different. The first image cuts off short of the country flag, and sports teams, whilst the other comfortably contains it all. Avatar height, and the use/non-use of the favourite teams field means that I have different size postbits.

(ignore the odd looking images against the black background, I just put the black there to highlight what I mean)

The other forum I'm looking to follow the example of doesn't have that problem.
Reply With Quote
  #6  
Old 02-23-2011, 10:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's really hard to tell what is going on without actual links. A link to the original site that has this working and a link to your site where it isn't working would allow us to see what is wrong.
Reply With Quote
  #7  
Old 02-23-2011, 10:29 PM
troykp troykp is offline
 
Join Date: Feb 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.wrestlingsmarks.com/ < - my site (although I've taken the background away so that the forum can still be used easily. All I'd done was add my image to postbit_userinfo_background).

http://wrestlingclique.com/ < - the site where they have this working properly.

Thanks for your assistance with this Lynne.
Reply With Quote
  #8  
Old 02-23-2011, 10:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That site actually does some other changes. They have one div for the whole userinfo. Then inside that, a top image, then a div with all the text userinfo text and a background image is used here repeated in the y direction, then a bottom image. So, that is how they get it to expand to any size. So, you would need to modify your postbit_legacy template in order to achieve what they have done.
HTML Code:
<div class="userinfo">
<top image centered>
<div class="newclass"> all stuff from div class userinfo now put into here </div>
<bottom image centered>
</div>
and then have a background image for .newclass
Reply With Quote
  #9  
Old 02-23-2011, 11:51 PM
troykp troykp is offline
 
Join Date: Feb 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for finding that out Lynne.

I'm very nearly there, there's just one final question I have; how do I assign a background to .newclass? I'm not entirely sure how these <div> wrappers work!

Thanks again.
Reply With Quote
  #10  
Old 02-24-2011, 12:23 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by troykp View Post
Thank you for finding that out Lynne.

I'm very nearly there, there's just one final question I have; how do I assign a background to .newclass? I'm not entirely sure how these <div> wrappers work!

Thanks again.
Hmm to keep it within the example given...

Code:
<div class="newclass">
Code
Code
Code
</div>
So to use that and have it know what the css does you need to add this to additional.css i.e.

Code:
.newclass {
background: #000000 url(images/myimage.png) no-repeat;
}
Now be sure to change the #000000 to the value for the background color you want and change the image location to reflect the image you uploaded or want to use and yes you can use http://www.site.com/thierimage.png) instead of image/ etc.

OR you could use this w/o assigning a color:

Code:
.newclass {
background-image: url(images/myimage.png);
background-repeat: no-repeat;
}
Something along those lines... basically your making up definitions that contain how something is styled, you make/paste the definitions in additional.css because the site runs it last out of all the css templates this way your code knows how it's styled follow?

.

Edit: also have you seen these simple mods?

https://vborg.vbsupport.ru/showthread.php?t=229487
https://vborg.vbsupport.ru/showthread.php?t=235041
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04544 seconds
  • Memory Usage 2,256KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete