PDA

View Full Version : These are my three "how to" silly questions


blogger
09-07-2006, 04:56 PM
Hi all!


How to include "suggest category" into "suggest a site" form? If someone wants to suggest a site but my directory has no appropriate category for it.
My parther listings are shown randomly every time I refresh the page. How to fix it?
How to get rid of divs on the homepage? 'cos I wanna categories and subcategories to be displayed in tables. I am really not a css-layout fan. I have read this (http://www.esyndicat.com/old_forum/about186-0-asc-0.html), but it's not exactly what a I need :(


for ex. <table>
<tr><th>category</th></tr>
<tr><td>subcategory</td></tr>
</table>

// pardon for my english :)

opps! for moderators, please move this thread to Existing Templates (http://www.esyndicat.com/forum/forum-33.html)

Vincent Wright
09-13-2006, 12:20 PM
How to include "suggest category" into "suggest a site" form? If someone wants to suggest a site but my directory has no appropriate category for it.


As far as I'm concerned, there is no way to do this in the current version. It requires custom modification to implement this.

My parther listings are shown randomly every time I refresh the page. How to fix it?


Open classes/Dir.php, find the function getPartnerLinks(), replace this line


$sql .= "ORDER BY RAND() ";


with this one


$sql .= "ORDER BY `t2`.`id` ";


Save changes and close the file.

How to get rid of divs on the homepage? 'cos I wanna categories and subcategories to be displayed in tables. I am really not a css-layout fan. I have read this (http://www.esyndicat.com/old_forum/about186-0-asc-0.html), but it's not exactly what a I need :(

for ex. <table>
<tr><th>category</th></tr>
<tr><td>subcategory</td></tr>
</table>


You have to play with templates/<your_template>/index.tpl since this the page responsible for category look-and-feel (including home page, i.e. root category).