vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   background problem? (https://vborg.vbsupport.ru/showthread.php?t=90274)

Dark Aura 01-06-2005 05:35 PM

background problem?
 
Hey,

I have added a background image to my forums and its fine, however when you get on to viewing a thread the background image repeats it's self over and over at the beginning of each persons post, how do I stop this from happening?

If you want to see what I mean look here - http://www.silent-imperfection.net/e...ges/Image1.jpg

Jolten 01-07-2005 06:34 AM

What's the CSS you're using for the background? Looks like you just need to add some repeat conditionals to control the way it repeats -- similar to background { #000000 url(path to image/image.jpg) norepeat top left; }

Dark Aura 01-08-2005 06:05 PM

Yeah that seems to work for the index and the forums when they are displayed but when you open a thread, at the beginning of every persons post the bk repeats over and over like in the picture i posted...I can't seem to fix this :$.

gbboy 03-07-2005 07:27 AM

1 Attachment(s)
I seem to also be having the exact same problems with my new style. The postbit seems to repeat the .page bg even with the addition of the no-repeat top entries. Its really quite irritating. I've looked throughout the entire postbit and threadbit templates but cant seem to find a hint of the error nor a .page reference on those pages. Any help with this would be greatly appreciated.

Heres a preview of the problem:

gbboy 03-11-2005 04:07 AM

I've managed to fix this little problem.

The source of the problem is the template file called spacer_open. It has the class page in it which causes the multiple bg repeats. To fix it, create a .page2 set in the css. Transfer everything into that except the picture. Make sure you edit the spacer_open template classes to page2. Then go to your header, find the spacer_open tag at the bottom and replace it with something like this:

Code:

<!-- spacer_open included by gbboy (pgamers.org) -->
<!-- open content container -->
<if condition="$show['old_explorer']">
        <table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center"><tr><td class="page2" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
<else />
        <div align="center">
                <div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
                        <div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
</if>
<!-- end spacer_open -->

Hope that helps anyone else with the same problem :)


All times are GMT. The time now is 03:43 AM.

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.01497 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete