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 07-06-2016, 05:09 PM
MarwanAshrafz MarwanAshrafz is offline
 
Join Date: Jul 2016
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adding banner instead of logo (DeFraction theme)

Hello,

I am using vBulletin 4.2.3 with Defraction theme (forum link: http://oefserver.com/forum/). I wanted to add this banner http://i.imgur.com/B8ZqCLt.png instead of the logo, it should be centered and added to the header. I am not really a html/css expert so I'd appreciate it if you guys guide me how to do that, thank you!

EDIT: just noticed I posted in the wrong section, please move it!
Reply With Quote
  #2  
Old 07-06-2016, 05:18 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Best thing to do would be to ask PureVB since they made your style.

The CSS used to edit the default style might break that style.
Reply With Quote
  #3  
Old 07-06-2016, 05:37 PM
MarwanAshrafz MarwanAshrafz is offline
 
Join Date: Jul 2016
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProSportsForums View Post
Best thing to do would be to ask PureVB since they made your style.

The CSS used to edit the default style might break that style.
Cant you just help me? I am willing to provide any template/css you guys ask for!
Reply With Quote
  #4  
Old 07-06-2016, 06:25 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you not want to go to the developer of the theme?

Is it because they charge $29.95 for logo installation?
Reply With Quote
  #5  
Old 07-06-2016, 07:09 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm looks like their logo is on the left with the login on right... You could see what div class is doing that background bar, then simply try to replace the background url in the css with your new one. and make the current logo a clickable (blank transparent .png image file) image that way you can still click the logo in a sense and go to forumhome.

Probably a few different ways you could go about this but I'd simply figure out what area does that background image, replace it with the banner and replace the logo with the transparent image. I can't recall but PureVB may use a plguin with his styles, some vendors do and some don't but what I'm hinting at is, if yuou can't find it in the css templates or an external css file they've included it could be in a custom stylevar setting.
Reply With Quote
  #6  
Old 07-06-2016, 09:22 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Hmm looks like their logo is on the left with the login on right... You could see what div class is doing that background bar, then simply try to replace the background url in the css with your new one. and make the current logo a clickable (blank transparent .png image file) image that way you can still click the logo in a sense and go to forumhome.

Probably a few different ways you could go about this but I'd simply figure out what area does that background image, replace it with the banner and replace the logo with the transparent image. I can't recall but PureVB may use a plguin with his styles, some vendors do and some don't but what I'm hinting at is, if yuou can't find it in the css templates or an external css file they've included it could be in a custom stylevar setting.
Yes, that would be the logical manner of resolving the issue, however I want to know why the member is reluctant to go to the developer of the theme. That would be the most logical solution unless the member has a reason for not so doing.
Reply With Quote
  #7  
Old 07-06-2016, 09:55 PM
MarwanAshrafz MarwanAshrafz is offline
 
Join Date: Jul 2016
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not want to pay for the logo installation as I might be able to do it myself.

Anyway,

I played with the additional.css and its somehow better now, I only want to center the banner but I cant do it.

My CSS:
http://pastebin.com/CqDTRVmj

How it looks like:


I only played in those;

Code:
.logo {
	float:{vb:stylevar center};
	height:198px;
	padding-{vb:stylevar right}:1178px;
}
Code:
.headerBanner {
	position:fixed;
	top:198px;
	{vb:stylevar right}:1178px;
}
Reply With Quote
Благодарность от:
TheLastSuperman
  #8  
Old 07-06-2016, 09:57 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try this:

.logo-image {
clear:both;
display:block;
float:none;
text-align:center;
padding-top: 20px;
}

Not responsible if it breaks the style.
Reply With Quote
  #9  
Old 07-06-2016, 10:04 PM
MarwanAshrafz MarwanAshrafz is offline
 
Join Date: Jul 2016
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats how it looks like now;
http://prntscr.com/bpqfsv
Reply With Quote
  #10  
Old 07-06-2016, 10:38 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding:

max-width: 100%;

above the closing }
Reply With Quote
Благодарность от:
TheLastSuperman
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 04:02 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.05182 seconds
  • Memory Usage 2,266KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (2)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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete