Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
tiling background image behind posts Details »»
tiling background image behind posts
Version: 1.00, by ChaosBurnt ChaosBurnt is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 10-28-2008 Last Update: Never Installs: 8
Template Edits
Re-useable Code  
No support by the author.

Put a tiling background image behind posts in showthread.

I know it's a pretty small mod but I have seen it asked a fair bit here and on vB.com so I figure maybe one or two folk might find this helpful.

Create your tiling image.
Name it posttile.jpg
upload posttile.jpg to your skins misc folder
.

Attached is a nice christmassy example you could use for default skins:

Add the following to your skins Additional CSS Definitions (changing your_skins_name_here to your skins name!):

For Default vB Skin:

Code:
.posttiler {
   background-color: #F7F7F7;
   background-image:    url(images/misc/posttile.jpg);
   background-repeat:   repeat;
   background-position: top center;
}
For Custom Skins (location of misc folder may differ!)

Code:
.posttiler {
   background-color: #F7F7F7;
   background-image:    url(images/your_skins_name_here/misc/posttile.jpg);
   background-repeat:   repeat;
   background-position: top center;
}
save


Open:

postbit

Find:

Code:
<tr>
	<if condition="$show['moderated']">
	<td class="alt2" id="td_post_$post[postid]">
	<else />
	<td class="alt1" id="td_post_$post[postid]">
	</if>	
	<!-- message, attachments, sig -->

		$template_hook[postbit_messagearea_start]

		<if condition="$show['messageicon'] OR $post['title']">

In-line Find:

Code:
alt1

Replace with:

Code:
posttiler
save file

Show Your Support

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

Comments
  #2  
Old 10-29-2008, 07:44 AM
ChaosBurnt's Avatar
ChaosBurnt ChaosBurnt is offline
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Minor typo corrected, background-color changed from 000000 to F7F7F7, plus demo image added.

Some confusion has arisen regarding the misc image folder, I have altered the instructions above to make things a little clearer for those not so sure. Please keep in mind that some Custom skins locate the images in other places, you'll need to alter the URL to the posttile.jpg to better suit where your Skins images folder is housed. I can't post instructions for every single possible variant you understand.
Reply With Quote
  #3  
Old 10-29-2008, 07:53 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it.

I would use this for the xmas period.

To revert it back just delete everything out?
Reply With Quote
  #4  
Old 10-29-2008, 07:57 AM
ChaosBurnt's Avatar
ChaosBurnt ChaosBurnt is offline
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RobbieZ View Post
I like it.

I would use this for the xmas period.

To revert it back just delete everything out?
Yup, just undo the changes made and you're back to normal
Reply With Quote
  #5  
Old 10-29-2008, 11:42 AM
Audax666 Audax666 is offline
 
Join Date: Jun 2008
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

nice idea!.
Would it be much work changing the code to make it possible to use different background images in different categories?
Something like that:
<if cat_id==1>...bg1.gif
<if cat_id==2>...bg2.gif
....
Sorry im not a coder!
Reply With Quote
  #6  
Old 10-29-2008, 04:42 PM
abouahmed's Avatar
abouahmed abouahmed is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work bra

thanks
Reply With Quote
  #7  
Old 10-30-2008, 03:29 AM
icemann's Avatar
icemann icemann is offline
 
Join Date: Sep 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ChaosBurnt. :up:
Reply With Quote
  #8  
Old 10-30-2008, 09:30 AM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Audax666 View Post
Hi,

nice idea!.
Would it be much work changing the code to make it possible to use different background images in different categories?
Something like that:
<if cat_id==1>...bg1.gif
<if cat_id==2>...bg2.gif
....
Sorry im not a coder!
Or lets say, each user group got different background!

tagged, waiting to install.
Reply With Quote
  #9  
Old 10-30-2008, 02:59 PM
ChaosBurnt's Avatar
ChaosBurnt ChaosBurnt is offline
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Audax666 View Post
Hi,

nice idea!.
Would it be much work changing the code to make it possible to use different background images in different categories?
Something like that:
<if cat_id==1>...bg1.gif
<if cat_id==2>...bg2.gif
....
Sorry im not a coder!
To be honest, this was just something I needed for our Coven, then I noticed it had been asked about so I figured I'd post it here if anyone wanted it. I had no plans on making it anything more than it is as this is all I needed at the time, but if anyone has any methods to improve upon this then they are more than welcome to chip-in by posting their ideas here as my coding skills are not as strong as I should like them to be.
Reply With Quote
  #10  
Old 10-30-2008, 04:43 PM
Audax666 Audax666 is offline
 
Join Date: Jun 2008
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, ok I understand, but thanks for your reply!
Maybe I find someone or anybody else can modify your idea.
Basicly I like the idea!
Thanks to you...
Reply With Quote
Reply


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 12:30 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.04310 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_code
  • (3)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
  • (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
  • (9)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_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