Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    That code is missing all of the boilerplate that makes it a fully functioning ZC sidebox. Get the Blank Sidebox mod from Free Addons, and put your code inside that per its directions.

    You don't have the <?php
    $content = 'your HTML';
    ?>

    as the tutorial says.
    Last edited by gjh42; 18 May 2011 at 06:58 PM.

  2. #12
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    Also, I know it doesn't appear to be a part of cover_sidebox, but If I turn it off in layout boxes controller, it all goes away.

  3. #13
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    blank sidebox! Got it.

    Thanks again...

    Matt

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    The reason for your initial problem, the header appearing below the content, would be because the HTML you posted was being output immediately, before the container tpl_ file output the rest of the box (including heading). This should be fixed if you add the PHP around the HTML as I (and the tutorial)mentioned.

  5. #15
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    oops. Oversight.
    I can't get the code to work properly... can you see what I'm missing???

    PHP Code:
    <?php
    $content 
    '<div class="snavIssue">
                <img style="border-width:0px;" src="images/PHG/snavIssueTop.gif" alt="On Stands Now" id="ctl00_ctl00_templateBody_imgSNavTop"><div class="snavIssueCopy">
                
        <a target="_blank" title="Subscribe Today!" href="http://w1.buysub.com/online/PHG/website"><img border="0" style="border-width:0px;" src="images/PHG/btnVertSubscribe.gif" alt="Subscribe Today!" class="btnSubscribe" id="ctl00_ctl00_templateBody_ucSubscribe_imgBtnVertSubscribe"></a>
        <img style="border-width:0px;" src="images/PHG/PHG0611_Cover0_ch.jpg" class="cover" id="ctl00_ctl00_templateBody_ucSubscribe_Image1">
        
    <br style="clear: both;">
                <div style="margin-top: 12px;" class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a target="_blank" href="http://w1.buysub.com/online/PHG/website">Subscribe Today!</a></span></div>
                <div class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/global/toc/">Whats Inside</a></span></div>
                <div class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/archive/">Article Archives</a></span></div>
                <div class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/global/contact/">Letters to the Editor</a></span></div>
                </div>
            </div>' 
    ;
    ?>

  6. #16
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    PHP Code:
    <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, 'snavIssueOn' )" class="snavIssueOff"><span 
    Lines like this are causing a problem. The single quote ' tells PHP that you are done with text to send to the browser, and what follows is something in PHP. That is wrong, and you are not getting correct functioning. If you need to use single quotes inside a text string, you need to escape them with a backslash \ . This will work:
    PHP Code:
    <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, \'snavIssueOn\' )" class="snavIssueOff"><span 

  7. #17
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    AArgh...
    Forgot about that. Thank you. Worked perfectly.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Custom Sidebox Wiki - Minor Yet Annoying Issue
    By mrbojangles in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jun 2013, 06:05 PM
  2. re; removing custom Sidebox heading font
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 Dec 2011, 04:45 PM
  3. Problems with heading & IE/FF issue
    By bellaandsofie in forum Basic Configuration
    Replies: 8
    Last Post: 29 Apr 2009, 10:11 PM
  4. product listing heading issue in IE
    By tmiller in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Oct 2007, 03:45 PM
  5. product listing heading issue
    By iano in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2006, 06:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg