Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default sidebox problem...

    I am attempting to "create" a sidebox by editing a mod designed for the header. I have it showing up but my new side box auto fill with the content of whatever sidebox is above it and prints the desired content below the box.

    I haven't been able to figure this one out

    store is here

    Any help is greatly appreciated, thx

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: sidebox problem...

    Why don't you use blank sidebox mod instead the one for the header??

  3. #3
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: sidebox problem...

    You should arrange the code in a sidebox form. You can't just take a block of code that has a 700px width and drop it in a sidebox and expect it to rearrange itself. This is just an example but you should arrange the code based on a proper sidebox logic.

  4. #4
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: sidebox problem...

    Quote Originally Posted by keneso View Post
    Why don't you use blank sidebox mod instead the one for the header??
    I will give it a try using the blank as my template. The mod I am trying to get to the sidebox is this one - product finder

    Quote Originally Posted by CoolCarPartsOnline View Post
    You should arrange the code in a sidebox form. You can't just take a block of code that has a 700px width and drop it in a sidebox and expect it to rearrange itself. This is just an example but you should arrange the code based on a proper sidebox logic.
    This is where I get lost....
    I am not using any of the orig css for the product finder, so I was hoping the width wouldn't be an issue.

  5. #5
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: sidebox problem...

    being a newbie to php coding I have ask "one of those" questions...

    for the content of the sidebox I want to use php,
    so I would take this line of php code (for example):
    echo "<li>";
    and make it:
    $content .= 'echo "<li>"';
    or
    $content .= 'echo "<li>";';

    thx

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

    Default Re: sidebox problem...

    To add <li> to the output content variable, you would use

    $content .= '<li>';

    echo "<li>"; outputs the <li> to the page immediately, which is bad if the code hasn't sent the HTML <head> info yet.
    Last edited by gjh42; 24 Jan 2011 at 09:08 PM.

  7. #7
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: sidebox problem...

    Quote Originally Posted by gjh42 View Post
    To add <li> to the output content variable, you would use

    $content .= '<li>';

    echo "<li>"; outputs the <li> to the page immediately, which is bad if the code hasn't sent the HTML <head> info yet.
    ok, good to know, thx

 

 

Similar Threads

  1. Sidebox problem
    By jolotull in forum Addon Sideboxes
    Replies: 11
    Last Post: 8 May 2011, 01:32 AM
  2. sidebox problem !
    By alhakeem2001 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Dec 2009, 07:47 PM
  3. sidebox problem...
    By irascible in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Nov 2006, 07:35 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