vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding banner instead of logo (DeFraction theme) (https://vborg.vbsupport.ru/showthread.php?t=322993)

MarwanAshrafz 07-06-2016 05:09 PM

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!

In Omnibus 07-06-2016 05:18 PM

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.

MarwanAshrafz 07-06-2016 05:37 PM

Quote:

Originally Posted by ProSportsForums (Post 2572893)
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!

In Omnibus 07-06-2016 06:25 PM

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

Is it because they charge $29.95 for logo installation?

TheLastSuperman 07-06-2016 07:09 PM

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.

In Omnibus 07-06-2016 09:22 PM

Quote:

Originally Posted by TheLastSuperman (Post 2572901)
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.

MarwanAshrafz 07-06-2016 09:55 PM

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;
}


In Omnibus 07-06-2016 09:57 PM

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.

MarwanAshrafz 07-06-2016 10:04 PM

Thats how it looks like now;
http://prntscr.com/bpqfsv

In Omnibus 07-06-2016 10:38 PM

Try adding:

max-width: 100%;

above the closing }


All times are GMT. The time now is 03:35 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.00977 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)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