| Author |
Message |
submit@optionspi.com
|
Posted: 24 Aug 2005 10:33:08
Hi
Column width
I have tried making various amendments to the index.tpl and design.php regarding width, cellspacing and cellpadding, but without getting the same effect that you have on your demo.
I have also checked the style.css to see if had been set there.
What I´m looking for is the even spacing that you have on your demo, at the moment it is set to the largest of the entered categories.
I did also look at changing the table from VARCHAR 80 to CHAR 150 which I believed would make the change, but at the moment for some reason its only accepting varchar of that length.
Any help very much appreciated.
Dave
|
submit@optionspi.com
|
Posted: 25 Aug 2005 03:05:33
Not the most elegant of answers, but since a "-" comes before the alphabet you can force the size of column by using -__________________
as can be seen here http://www.optionspi.com/links/index.php
Will update once I have found a better solution.
|
skalinks Admin
|
Posted: 25 Aug 2005 05:09:30
Hello submit@optionspi.com
Open index.tpl file, find this code:
{else}
<table><tr><td align=left>
<table cellpadding=5>
<tr><td>{show_ads id=$_output.cat_info.ID type=$type position=left}</td></tr>
</table>
</td>
<td>
{ display_cats output=$_output}
<br>
</td></tr>
</table>
{/if}
and replace this code with:
{else}
<table width=100% ><tr><td align=left>
<table cellpadding=5>
<tr><td>{show_ads id=$_output.cat_info.ID type=$type position=left}</td></tr>
</table>
</td>
<td>
{ display_cats output=$_output}
<br>
</td></tr>
</table>
{/if}
Then change the same code in cat.tpl file,
Then, open design.php file in SkaLinks_include folder, find this code:
function display_cats( $arr )
{
global $_display;
$_output = $arr['output'];
$row = $_display['row_cats'];
echo "<table class=maintext>";
and replace with:
function display_cats( $arr )
{
global $_display;
$_output = $arr['output'];
$row = $_display['row_cats'];
echo "<table width=100% class=maintext>";
|
Options Member
|
Posted: 25 Aug 2005 05:41:05
Works perfectly
Thanks very much
|
skalinks Admin
|
Posted: 25 Aug 2005 06:33:11
:) thank's for using SkaLinks, if you have any questions or some propositions about new features in SkaLinks, please, write it in forums
Thank's
|
|