+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member/Coder/Designer nay27uk is on a distinguished road nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    848
    Blog Entries
    1

    Default Categories select boxes

    Hi all. how do I go about making the space between the catergories select boxes smaller when choosing categories to sell in.
    I have altered the values of code bellow in select_category.php but the space between the first and second box is still like a mile long. Altering the values marked in red bellow makes absolutly no differance.
    So what and in what file determins the space between the two boxes. I want the gap between the two boxes to be no more than like a couple pixels.

    $boxes = count($boxarray);
    for ($i = 0; $i < $boxes; $i++)
    {
    $template->assign_block_vars('boxes', array(
    'B_NOWLINE' => (($i % 2 == 0) && ($i > 0)),
    'I' => $i,
    'PERCENT' => ($boxes == 1) ? 100 : ($boxes == 2) ? 50 : 30
    ));
    foreach ($boxarray[$i] as $k => $v)
    {
    $template->assign_block_vars('boxes.cats', array(
    'K' => $k,
    'CATNAME' => $v,
    'SELECTED' => (isset($POST['cat' . $i]) && $POST['cat' . $i] == $k) ? ' selected' : ''
    ));
    }
    }
    Last edited by nay27uk; 23-01-2010 at 01:21 PM.

  2. #2
    Senior Member/Coder/Designer nay27uk is on a distinguished road nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    848
    Blog Entries
    1

    Default

    sorry renlok you may wish to move this to the themes support section

  3. #3
    Senior Member/Coder/Designer nay27uk is on a distinguished road nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    848
    Blog Entries
    1

    Talking

    Ok I managed after about an hour and half to do what I wanted

    Attachment 537

    Attachment 538

    Attachment 539
    Last edited by nay27uk; 23-01-2010 at 02:57 PM.

  4. #4

    Default

    Dear Nay27uk,
    Thanks for spending 1.5 hours to fix that problem. I would like to know what you have changed on select_category.php? I need to follow for my website whatever you did
    Best Regards,
    Selcuk

  5. #5
    Senior Member/Coder/Designer nay27uk is on a distinguished road nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    848
    Blog Entries
    1

    Default

    I ended up compleatly re designing the template file adding and removing tables ect if you download one of my themes they all have this done so you can just copy and past the code.

    In select_category.tpl my code looks like this

    <div align="center"><br>
    <table border="0" cellspacing="0" cellpadding="3" class="datacell1">
    <tr>
    <!-- BEGIN boxes -->
    <td><select name="cat{boxes.I}" class="box" size="15" onClick="SubmitBoxes({boxes.I})" style="width:230px;"><!-- BEGIN cats --><option value="{boxes.cats.K}" {boxes.cats.SELECTED}>{boxes.cats.CATNAME}</option><!-- END cats --></select></td>
    <!-- IF boxes.B_NOWLINE -->
    <td>&nbsp;</td>
    <!-- ENDIF -->
    <!-- END boxes -->
    </tr>
    </table>
    Last edited by nay27uk; 07-02-2010 at 12:18 AM.

  6. #6

    Default

    It worked very well. Thank you much nay27uk

    selcuk

  7. #7
    Senior Member/Coder/Designer nay27uk is on a distinguished road nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    848
    Blog Entries
    1

    Default

    no problem my friend

Bookmarks

Posting Permissions

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