Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Background Image Surrounding Whole Postbit Details »»
Background Image Surrounding Whole Postbit
Version: 1.00, by TCE Killa TCE Killa is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.x Rating:
Released: 02-05-2008 Last Update: Never Installs: 13
Template Edits
 
No support by the author.

This will work on any versions of VB 3.6...

If you use and like, please press install.

Description: This gives users the option in their profile to select a background image of their choice to show up in their postbit.

Note: This could mess up the text/font in the postbit so I do advise you to add a border around the text/font in the postbit legacy or postbit templates.

Simply find this code in either postbit or postbit legacy (depending which one you use):

PHP Code:
$template_hook[postbit_userinfo_right_after_posts
And replace it with this code:

PHP Code:
<div style="border: 1px solid #000000; background-color: #FFFFFF; margin-bottom: 3px; padding: 3px;" width="100%">
$template_hook[postbit_userinfo_right_after_posts]
</
div
The border is set at 1 pixels and a black border (#000000) with a white background (#FFFFFF)... You can change any of that to suit your standards.

If you don't want the border to cover all of the text, simply add <div style="border: 1px solid #000000; background-color: #FFFFFF; margin-bottom: 3px; padding: 3px;" width="100%"> before each postbit text. (Example: you will add it before $post[usertitle] etc...) adding the </div> tags after. This will add an individual border around each postbit text/font.

Right now, lets get started.

First thing to do is create a new Profile Field through the Admin Control Panel.

Single Line Text Box

Title: Post Area Background

Description: Here you can add a background image for your post area (where your avatar is displayed) in posts. Just simply put in the address for your image for a cool looking post area of your choice. (Example: http://www.example.com/example.jpg)

The rest is up to you.

Now go to your postbit or postbit legacy template and find:

PHP Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"
Replace with:

PHP Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px" style="background-image: url($post[fieldXX]);"
Just replace the XX in the fieldXX with your Post Area Background field and you're done:up:, thats it. Hope you like and please click install if you use, thanks.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-08-2008, 09:16 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man, glad you like it.
Reply With Quote
  #13  
Old 02-08-2008, 09:34 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will post the modified version of this if its alright with tce

what i did was made it so there are 3 spots you can have images

and then made the tables transparent at about a 75% oqupency

here is a live demo of what i did

http://stillfallinentertainment.com/vB-Forums/showthread.php?t=2130


that should give you a idea of what i did and if tce says its ok ill post my version of it
Reply With Quote
  #14  
Old 02-08-2008, 10:13 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah sure, you can post it, I'll like to see this.
Reply With Quote
  #15  
Old 02-08-2008, 10:39 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok im going to start a new thread for this one then cause its kinda a few mods in one to get it to work right

ill post a link in here for it as soon as i get it up
Reply With Quote
  #16  
Old 02-08-2008, 11:02 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kk thanks, make sure you credit me and this thread in your thread.
Reply With Quote
  #17  
Old 02-08-2008, 11:06 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooh ya i will for sure man

ill probally post it up tomarrow cause im having a few problems with my server right now

im just working the bugs out right now tring not to reset it cause i hate having downtime

but as soon as i get that shit all done then ill post it up

should be posted no later then 7pm eastern time on saturday
Reply With Quote
  #18  
Old 02-09-2008, 02:08 PM
bazzup bazzup is offline
 
Join Date: Dec 2006
Location: Liverpool
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MiahBeSmokin420 View Post
ooh ya i will for sure man

ill probally post it up tomarrow cause im having a few problems with my server right now

im just working the bugs out right now tring not to reset it cause i hate having downtime

but as soon as i get that shit all done then ill post it up

should be posted no later then 7pm eastern time on saturday
looks good especially against that black background.


I have a problem with mine the images have decided to stop showing and i dont know why?


*edit they show in internet explorer but not in firefox
Reply With Quote
  #19  
Old 02-09-2008, 07:01 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could be a number of things

1 thing that i noticed and i cant realy figuer out it this:

for some reason when i make the custom field hidden so it dont show up on the profile page it just dont show up at all on the site

which i realy find weird cause i have other things that are the same way hidden and shit but they still show up on the site

im accually looking for a new way to do all this thats another reason why its taking me a lil whilee to post the way i did it

i would rather have it perfect and possiable be a xml product to upload rather then have template changes

but wee will see i will have my version posted here soon one way or the other it will be posted tonight

but ya the problem with firfox is..... idk i use firefox and it works find for it
just try making sure you didnt make it a hidden feild thats the only thing i can think of

that or maybe your <div> tags are not suppored in FF idk what kind you used

but anyways ima get back to getting my version of this released and ill be back here soon

yalk to yall then
Reply With Quote
  #20  
Old 02-09-2008, 09:20 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here ya go my version is posted

LINK TO THREAD
Reply With Quote
  #21  
Old 02-10-2008, 03:56 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man.
Reply With Quote
Reply

Thread Tools

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 07:42 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.04495 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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