Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2017, 03:40 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Footer BackGround image



My footer looks very faint.



How do I add a background like this?
Reply With Quote
  #2  
Old 02-02-2017, 04:04 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-02-2017, 04:23 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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)
Reply With Quote
  #4  
Old 02-02-2017, 04:32 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-02-2017, 04:38 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.


Thank you for your help (my english is very bad So ı use translator)
Reply With Quote
  #6  
Old 02-02-2017, 04:41 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please post a link to your site so I can inspect the DOM and see what class selector your need on your site.
Reply With Quote
  #7  
Old 02-02-2017, 04:45 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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
Reply With Quote
  #8  
Old 02-02-2017, 04:52 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mobster46 View Post
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;
}
Reply With Quote
  #9  
Old 02-02-2017, 04:56 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.)
Reply With Quote
  #10  
Old 02-02-2017, 05:13 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mobster46 View Post
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 View Post
Also how do I remove some posts / links there?
What posts/links?
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 09:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06888 seconds
  • Memory Usage 2,265KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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