One thing I noticed was with the latest code (I think it is, anyway), there is no ability to edit descriptions for Categories. I noticed this when I figured out that my w3t_links_categories table did not have a cat_desc field (probably missed when upgrading from an older version of this mod.). That, in turn, caused the Category display to indent the first line of sub-cats kind of strangely.
Long story shortened: I changed some of the code in links_show_cat.php to account for an empty description. So, around line 161, make this change:
Code
<br /> # Make sure we have something to print.<br /> if ($i <= $Numberofcats) {<br /> print "<br /> <td valign=\"top\"><img src=\"{$config['phpurl']}/images/folder-c.gif\" alt=\"\" /> <font size=\"2\"><b><a href=\"links.php?op=List_Links&cat_id={$cats['cat_id']}&parent_id={$cats['parent_id']}&title={$cats['title']}\"><u>{$cats['title']}</u></a></b></font><br />";<br /> if (empty($cats['cat_desc'])) {<br /> //print "No Description.<br />";<br /> } else {<br /> print " <font size=\"1\">{$cats['cat_desc']}</font><br />";<br /> }<br />
Is the ability to add/modify category descriptions supposed to be there? Or should I add it in myself?
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.