in the function ShowMainPage of the index.php file:
change the following:
then after the line "$new_links = $new_links_obj->Display();" insert the following:Code:// mod for $top_links_by_hits global $category,$new_links,$hot_links,$login_box,$rec_links,$recomended_listing, $total_link,$total_hits,$total_category, $total_member,$total_milis, $top_links_by_hits , $most_recent;
hmmm...instead of date maybe it should be last_updated. What say you, dody???Code:// mod for top5 by hits $query = "select link_id, title, url from idx_link order by date desc"; $result = $conn->Execute($query); $total = $result->RecordCount(); $number=$i=0; while($i<5 && $i<$total) { $result->move($i); $lid = $result->Fields("link_id"); $title = $result->Fields("title"); $url = $result->Fields("url"); $number++; $top_links_by_hits .= "$number. <a href=detail.php?id=$lid>$title</a><br>"; $i++; } // mod end
change the following:
then in index.html of the themes/default folder, add the following where you want it to print out:Code:// mod for $top_links_by_hits DisplayTemplate($theme_path."index.html", "\$category,\$new_links, \$top_links_by_hits, \$most_recent,\$hot_links,\$login_box,". "\$rec_links,\$recomended_listing,". "\$total_online,\$members_online,\$guess_online,\$username_online,". "\$total_link,\$total_hits,\$total_category,\$total_member,\$total_milis");
<%$most_recent%>
Anyone know how to stop vB from inserting extra lines into the code or from wapping the line in the middle of a word???
I love vB! I love vB! I love vB!![]()


