OK I am using a script that greatly resembles the link scripts in CMS's like post-nuke etc and I was just hoping I could find someone that might help me mod it just a bit. I downloaded it from x-dev.de You can look at how I have it installed at
http://ax-n.net/link/
and if you goto the link above, the one main thing I am trying to fix is how the categories are laid out. When I add categories they all go down into a vertical line like:
title
desc.
title
desc.
and I would really like it to be laid out 2 to a row like
title title
desc. desc.
title title
desc. desc.
I think this is where the code that needs to be fixed is at. in the index.php, but I am not sure how to add it..
#================================================= =====================#
# html-table filled with the cats & desc's
#================================================= =====================#
?>
<p>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%">
<tr valign="middle" align="center">
<td>
<table border="0" cellspacing="3" cellpadding="3" align="center" id="index_main_table" width='95%'>
<tr>
<td align="center">
<?
// read db
$result = MYSQL_QUERY("SELECT * FROM $table_cat ORDER BY '$catorder' ");
//get overall count
$res = MYSQL_QUERY("SELECT * FROM $table_linkdata");
$anzahl = MYSQL_NUM_ROWS($res);
//output
echo "<h4>$listname</h4>\n";
echo "[ ".OVERALL_LINKS_IN_DB." $anzahl | <a href='http://ax-n.net/link/add.php'>".ADD_NEW_LINK."</a> | <a href='http://ax-n.net/link/admin.php'>Admin</a> ]\n";
//cat-output in table
while ($row = MYSQL_FETCH_ROW($result))
{
// count all links in an unique cat
$resc = MYSQL_QUERY("SELECT * FROM $table_linkdata WHERE cat = $row[0]");
$anzcat = MYSQL_NUM_ROWS($resc);
// generate output-tables
echo "<p>\n<tr>\n";
// when not empty show link
if($anzcat != 0) {
echo "<td id='index_cat'>\n<a href='http://ax-n.net/link/view.php?cat=$row[0]'><font size='2'><b>$row[1]</b></a> ($anzcat)</font>\n</td>\n";
} else {
// if empty hide link
echo "<td id='index_cat'>\n<font size='2'><b>$row[1]</b> ($anzcat)</font>\n</td>\n"; }
echo "</tr>\n<td id='index_desc'>\n".ARROW_FOR_CAT_DESC." $row[2]\n</td>\n";
echo "</tr>\n";
}
Thanks for everyone who even looks at this post!