Make Logo block only show for logged in users

I know what file it's located  _sub_header.html

I know the code is __main_logo__ and __promo_code__

I CANNOT find where it gets picked up and is displayed.

I dont want the logo to be displayed unless you are logged in.

I have a custom login page and it's unnecessary.

Thanks for the help! 

http://www.mytikibar.com
Quote · 14 Nov 2012

7.9 or 7.1?

 

Quote · 14 Nov 2012

I will suppose you are asking about 7.0.9.

For logo go to inc/classes/BxDolTemplate.php at line 718 replace it with this

 case 'main_logo':    $sRet = isLogged() ? getMainLogo() : '';    break;

For promo block go to /tempaltes/base/script/BxBaseIndexPageView.php at line 437 put this in top of getPromoCode function

if(!isLogged()) {    return;    }

Good luck :D

 

 

so much to do....
Quote · 14 Nov 2012

CLOSE!

Your code removed what's circled in black, I need what's circled in red.

Looking at it, I need to hide div.sys_main_logo

I might do it with jquery in that file...

That will work, but it's not the right way.

I wish I knew where to make <bx_if:logged_in> code then I'd just surround it with that.  lol

This is in _sub_header.html

I only want this displayed if they are logged in.

<div class="sys_main_logo">
        <div class="sys_ml" style="width:__main_div_width__;">
            <div class="sys_ml_wrapper">
              <table width="1200" border="0" cellpadding="0">
                 <tr>
                   <td width="500">
                   <bx_injection:injection_logo_before />
                __main_logo__
                <td width="500">__promo_code__</td>
                <td><div id="gse_search_logo">
                <form name="SearchForm" method="get" action="searchKeyword.php">
                    <input type="text" class="input_main" value="Search" id="keyword" name="keyword" onclick=$(this).val("");>
                </form>
                </div></td>
                </tr>
                <bx_injection:injection_logo_after />               
                        </td>
                   </tr>
              </table>
          </div>
        </div>
        <bx_injection:banner_top />
    </div>

Thanks for the help!!!

http://www.mytikibar.com
Quote · 14 Nov 2012
 
 
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.