How make Top Banner show at right side of logo

Hi, i try to put some random holiday banner side of my logo... so i decide to use the banner tools of dolphin... but i dont know why i cant put the banner side of the logo... its always appear under the logo.. so i dont want to take 2 separate line but on the same..

 

i change some code in the sub_header file to put the <bx_injection:banner_top /> just after the __main logo__

 

<div class="sys_main_logo" style="min-width:__main_div_width__;">
        <div class="sys_ml" style="width:__main_div_width__;">
            <div class="sys_ml_wrapper bx-def-padding-sec">
                <bx_injection:injection_logo_before />
                __main_logo__ <bx_injection:banner_top />
                <bx_injection:injection_logo_after />
            </div>
        </div>

 

but it dont work :(

www.semb-saq.net

Quote · 15 May 2014

Undo that.

Don't use the built in banner system when you need control of where something appears. It's not very good at it.

Do something like this in _sub_header.html

    <div class="sys_main_logo" style="min-width:__main_div_width__;">
        <div class="sys_ml" style="width:__main_div_width__;">
            <div class="sys_ml_wrapper bx-def-padding-sec">
                <bx_injection:injection_logo_before />
                <div>
                    <div style="margin-left: 0px; float: left;">__main_logo__</div>
                    <div style="margin-left: 40px; float: left;"><img src="http://www.semb-saq.net/habs.gif"></div>
                    <div class="clear_both"></div>
                </div>
                <bx_injection:injection_logo_after />
            </div>
        </div>
        <bx_injection:banner_top />
    </div>


The red section is where __main_logo__ was. This places it and your banner in a set of floated divs so they will be next to each other.

https://www.deanbassett.com
Quote · 15 May 2014

yes i know i can do it that way but i want a random banner show... depend the season or holiday...  you know like google did on their website...

 

thx

Quote · 15 May 2014

You don't have many options.

You can use the banner system but choose the left position and specify a hshift and yshift

hshift and yshift is the horizontal and vertical position specified in pixels where the banner appears.

But that is not ideal either as that position is absolute by the browser width so it's position will not be the same when the browser is resized.

The only other option is to do it in php by modifying the code that returns the logo to do both the logo and the banner. That is modifying the function genSiteLogo() in templates\base\scripts\BxBaseFunctions.php

With php you can do things differently based on the date.

https://www.deanbassett.com
Quote · 15 May 2014

well after a lot of research i found this

 

http://wowmotty.blogspot.ca/2010/07/todaysimage-v10.html

 

this is exactly what i wanted... so I include the code beside the logo link in the sub_header file and its working fine

 

thx for the help

Quote · 15 May 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.