Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2010, 06:11 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with background

I have created quite a few custom pages, but I've got a problem.

This is what I use:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
</head>
<body>
$header
$navbar

$footer
</body>
</html>

I need to know how I can add something like "#dbe9df url(images/mainbg.png)" to the page. I need to know how to add a page background. Can anybody give me a code for this? (For use in template (Style settings is not an option as the image should only be placed on a few pages))
Reply With Quote
  #2  
Old 08-04-2010, 07:27 AM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think I'm understanding your point fully, but you basically want assign a certain background image to a certain page, yes? If so, you could add an image class or ID (if a different one in each page) in $header or wherever you want, using CSS.

e.g., in $header:
HTML Code:
<img src="spacer.gif" class="whateverClass" alt="" />
OR
<img src="spacer.gif" id="whateverID" alt="" />

<!-- CSS in a different file, but using HTML BBCode anyway -->
img.whateverClass { 
background-image:url(pathtoimage);
background-repeat:none;
}
OR
img#whateverClass {
background-image:url(pathtoimage);
background-repeat:none;
}
But again, I don't think I understood your point correctly.
Reply With Quote
  #3  
Old 08-09-2010, 12:24 AM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this.

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
</head>
<body style="background:#dbe9df url(images/mainbg.png);">
$header
$navbar

$footer
</body>
</html>
also depending on the image you might wanna make the image repeat you can do this by doing any of the following.
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-x;">
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-y;">
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat;">
Reply With Quote
  #4  
Old 08-09-2010, 11:57 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellbomb View Post
Try this.

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
</head>
<body style="background:#dbe9df url(images/mainbg.png);">
$header
$navbar

$footer
</body>
</html>
also depending on the image you might wanna make the image repeat you can do this by doing any of the following.
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-x;">
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat-y;">
Code:
<body style="background:#dbe9df url(images/mainbg.png) repeat;">
I need something like this, but I do not need to change the body background but the page background.
Reply With Quote
  #5  
Old 08-09-2010, 02:46 PM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the MainCSS, in the style manager search for "Page Background" and make your changes there... HTH
Reply With Quote
  #6  
Old 08-09-2010, 04:11 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbplusme View Post
Check the MainCSS, in the style manager search for "Page Background" and make your changes there... HTH
You don't seem to understand, the settings I have are settings I want to keep, what I want to do is add a different CSS to specific pages.
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 07:39 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.04063 seconds
  • Memory Usage 2,216KB
  • Queries Executed 11 (?)
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
  • (8)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete