vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Footer BackGround image (https://vborg.vbsupport.ru/showthread.php?t=324349)

mobster46 02-02-2017 03:40 PM

Footer BackGround image
 
https://vborg.vbsupport.ru/external/2017/02/21.png

My footer looks very faint.

https://vborg.vbsupport.ru/external/2017/02/22.png

How do I add a background like this?

MarkFL 02-02-2017 04:04 PM

To have it show up in all styles, you could create a plugin hooked at "parse_templates" with the following code:

PHP Code:

$template_hook['headinclude_css'] .= '<style>.below_body {background: url(image url) no-repeat center;}</style>'

Replace "image url" with the URL of the image you want to use. :)

mobster46 02-02-2017 04:23 PM

Quote:

Originally Posted by MarkFL (Post 2581678)
To have it show up in all styles, you could create a plugin hooked at "parse_templates" with the following code:

PHP Code:

$template_hook['headinclude_css'] .= '<style>.below_body {background: url(image url) no-repeat center;}</style>'

Replace "image url" with the URL of the image you want to use. :)

I could not do it because I could not understand. How can I add backgrounds only to text?(Not plugin)

MarkFL 02-02-2017 04:32 PM

If you would rather, you can add the class selector to your "additional.css" template, but you would have to do this for each style. If this is what you would prefer, then add this to the "additional.css" template (in each style you want to affect):

HTML Code:

.below_body {
        background: url(image url) no-repeat center;
}

Replace "image url" with the URL of the image you want to use. :)

mobster46 02-02-2017 04:38 PM

Quote:

Originally Posted by MarkFL (Post 2581686)
If you would rather, you can add the class selector to your "additional.css" template, but you would have to do this for each style. If this is what you would prefer, then add this to the "additional.css" template (in each style you want to affect):

HTML Code:

.below_body {
        background: url(image url) no-repeat center;
}

Replace "image url" with the URL of the image you want to use. :)

https://vborg.vbsupport.ru/external/2017/02/18.png

Thank you for your help (my english is very bad So ı use translator)

MarkFL 02-02-2017 04:41 PM

Please post a link to your site so I can inspect the DOM and see what class selector your need on your site. :)

mobster46 02-02-2017 04:45 PM

Quote:

Originally Posted by MarkFL (Post 2581689)
Please post a link to your site so I can inspect the DOM and see what class selector your need on your site. :)

travian.forumkeyfim.com

MarkFL 02-02-2017 04:52 PM

Quote:

Originally Posted by mobster46 (Post 2581690)
travian.forumkeyfim.com

Okay, we are accessing the correct class, change the selector to:

HTML Code:

.below_body {
        background: url(images/vb4green/header1.png) repeat center;
}


mobster46 02-02-2017 04:56 PM

Quote:

Originally Posted by MarkFL (Post 2581691)
Okay, we are accessing the correct class, change the selector to:

HTML Code:

.below_body {
        background: url(images/vb4green/header1.png) repeat center;
}


Thanks

It was not as good as I wanted. But it's pretty good for the old look. Do you have a better suggestion?

Also how do I remove some posts / links there?(I partially removed some of them now.)

MarkFL 02-02-2017 05:13 PM

Quote:

Originally Posted by mobster46 (Post 2581692)
Thanks

It was not as good as I wanted. But it's pretty good for the old look. Do you have a better suggestion?

My suggestion would be to use a taller image, or perhaps just a background color or gradient.

Quote:

Originally Posted by mobster46 (Post 2581692)
Also how do I remove some posts / links there?

What posts/links?


All times are GMT. The time now is 01:34 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.02106 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete