kjgatter Member
|
Posted: 9 Sep 2006 08:49:51
I am afraid that this FAQ maybe incorrect, as I wanted to do the same thing to my links db, the FAQ follows:-
Q: 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.
A: Open index.tpl file, find this code: {else} {show_ads id=$_output.cat_info.ID type=$type position=left}
{ display_cats output=$_output}
{/if} and replace this code with: {else} {show_ads id=$_output.cat_info.ID type=$type position=left}
{ display_cats output=$_output}
{/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 ""; and replace with: function display_cats( $arr ) { global $_display; $_output = $arr['output']; $row = $_display['row_cats']; echo " ";
Now see if you you can spot the mistake, all the replacement code is the same as what you are supposed to be changing.
I found the way to line up the cat table by doing as follows:-
Open design.php
Find the line -- echo "<td align='middle' valign='top'>"; -- in the -- function display_cats( $arr )
and change this line to -- echo "<td align='left' valign='top'>";
then save and upload,
Bob's your uncle a left justified layout.
|