vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Multiple logos/move logo to right (https://vborg.vbsupport.ru/showthread.php?t=310266)

K!nG 04-07-2014 03:02 AM

Multiple logos/move logo to right
 
Hi everyone,

I am using a custom theme. So what i want to do is i would like to have 2 logo's at the top and i want them to show in a way as one all the way to the right side of the header (where we usually have login etc) and one where usual vb logo appears.

My login info is in navbar so i have blank area at the top. Can anyone please help me as where and what changes do i have to make to get this done. I don't have issues in terms how to put the left side one as it's usual one, but how can i have 2 logos and how can i move one all the way to the right side.

Please see screenshot of the header area and trust me i have been trying to search this from past 1 week and i couldn't find a way to do it. Found a lot of threads e.g move logo to right, but none of them seemed to be working for me.

https://vborg.vbsupport.ru/external/2014/04/41.png

bzcomputers 04-07-2014 07:49 AM

Quote:

Originally Posted by K!nG (Post 2491867)
Hi everyone,

I am using a custom theme. So what i want to do is i would like to have 2 logo's at the top and i want them to show in a way as one all the way to the right side of the header (where we usually have login etc) and one where usual vb logo appears.

My login info is in navbar so i have blank area at the top. Can anyone please help me as where and what changes do i have to make to get this done. I don't have issues in terms how to put the left side one as it's usual one, but how can i have 2 logos and how can i move one all the way to the right side.

Please see screenshot of the header area and trust me i have been trying to search this from past 1 week and i couldn't find a way to do it. Found a lot of threads e.g move logo to right, but none of them seemed to be working for me.

https://vborg.vbsupport.ru/external/2014/04/41.png


Try something like this...

add this to additional.css template:
Code:

div#customlogoleft {
      margin-left: 10px;
      float: left;
}
div#customlogoright {
      margin-right: 10px;
      float: right;       
}


Then surround your logos in the header template with this code:
Code:

<div>
    <div id="customlogoleft">
        <img src="PATH TO LEFT LOGO" alt="HOVER TEXT">
    </div>
    <div id="customlogoright">
        <img src="PATH TO RIGHT LOGO" alt="HOVER TEXT">
    </div>
</div>

then just adjust/customize the css as needed.

K!nG 04-07-2014 02:07 PM

Thanks. That did the magic :) Appreciate your quick help on this one :)

K!nG 04-12-2014 07:29 PM

Hi bzcomputers & everyone else,

Everything was working fine with above codes and today only thing i did was changed my domain name. Once everything was done i noticed a weird thing which i can't figure out.

When i go on site it shows right side banner in the middle of the header and once i log in or any user logs in then it shows on the right side of the header where i wanted it to be and where it should be.

Problem is when you log out or visit site banner doesn't show at the right place. Can anyone help me in fixing this issue please ???

Here is the link to my site with a test user id and password.

Vist Here

username: test user
password : testing@123

Thanks.

K!nG 04-15-2014 12:02 AM

Can anyone help me on this one ??

Thanks.

Seven Skins 04-15-2014 08:57 AM

Do this yaar:

Find and remove this:
HTML Code:

<div>
    <div id="customlogoright">
      <a href="http://www.urduzouq.com"> <img src="images/styles/Creative/style/logo.png"></a>
    </div>
</div>


Find:
HTML Code:

<div class="bannerBox ">

</div>

Replace:
HTML Code:

<div class="bannerBox ">
    <div style="float:right; margin-right: -12px;">
      <a href="http://www.urduzouq.com"> <img src="images/styles/Creative/style/logo.png"></a>
    </div>
</div>


K!nG 04-15-2014 02:34 PM

Thanks that worked.


All times are GMT. The time now is 07:16 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.01208 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete