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' : ''
));
}
}
+ Reply to Thread
Results 1 to 7 of 7
Thread: Categories select boxes
-
23-01-2010 01:12 PM #1
Categories select boxes
Last edited by nay27uk; 23-01-2010 at 01:21 PM.
-
23-01-2010 01:19 PM #2
sorry renlok you may wish to move this to the themes support section
-
23-01-2010 02:50 PM #3
Ok I managed after about an hour and half to do what I wanted

Attachment 537
Attachment 538
Attachment 539Last edited by nay27uk; 23-01-2010 at 02:57 PM.
-
06-02-2010 09:37 PM #4Member/Coder
- Join Date
- Jan 2010
- Location
- istanbul
- Posts
- 33
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
-
07-02-2010 12:14 AM #5
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> </td>
<!-- ENDIF -->
<!-- END boxes -->
</tr>
</table>Last edited by nay27uk; 07-02-2010 at 12:18 AM.
-
07-02-2010 08:51 AM #6Member/Coder
- Join Date
- Jan 2010
- Location
- istanbul
- Posts
- 33
It worked very well. Thank you much nay27uk

selcuk
-
07-02-2010 02:21 PM #7
no problem my friend


Reply With Quote
Bookmarks