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 04-07-2014, 03:02 AM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.

Reply With Quote
  #2  
Old 04-07-2014, 07:49 AM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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.
Reply With Quote
Благодарность от:
K!nG
  #3  
Old 04-07-2014, 02:07 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. That did the magic Appreciate your quick help on this one
Reply With Quote
  #4  
Old 04-12-2014, 07:29 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-15-2014, 12:02 AM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me on this one ??

Thanks.
Reply With Quote
  #6  
Old 04-15-2014, 08:57 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Благодарность от:
K!nG
  #7  
Old 04-15-2014, 02:34 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks that worked.
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 07:15 PM.


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.07515 seconds
  • Memory Usage 2,236KB
  • 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
  • (3)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete