![]() |
Can someone remove the bit about displaying Icon?
When I do it I get a error! It asks for icon0.gif but that dosen't exist so please can someone remove the Icon part of this code below and post the code here? Thanks <? require("/home/*****/*****/***/admin/config.php"); $num_active = 10; $num_chars = 500; $db=mysql_connect($servername,$dbusername,$dbpassw ord); mysql_select_db($dbname); $querylatest="select * from thread where forumid='1' or forumid='2' or forumid='3' order by lastpost desc limit $num_active"; $resultlatest = mysql_query($querylatest,$db); print("<center><table width=\"100%%\" cellspacing=\"0\" cellpadding=\"2\">"); while ($latest_array = mysql_fetch_array($resultlatest)) { // Get Forum Infomation $query_forum = "select * from forum where forumid='$latest_array[forumid]'"; $result_forum = mysql_query($query_forum,$db); $forum_info_array = mysql_fetch_array($result_forum); printf("<tr><td colspan=\"2\" bgcolor=\"#87A4C2\"><b><font color=\"#000000\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">%s: %s</font></b></td></tr>",$forum_info_array["title"],$latest_array["title"]); // split the date up a bit $datestr1 = substr($latest_array["dateline"],0,10); $datetime = substr($latest_array["dateline"],11,8); printf ("<tr valign=\"top\"><td width=\"15%%\" bgcolor=\"#B9B9B9\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><b>%s</b><br>Updated: %s<br>Replies: %s</font></td>", $latest_array["postusername"], $datetime, $latest_array["replycount"]); $querythread="select * from post where threadid='$latest_array[threadid]' order by dateline asc limit 1"; $result_thread_text= mysql_query($querythread,$db); $result_thread_array = mysql_fetch_array($result_thread_text); printf ("<td width=\"85%%\" bgcolor=\"#cccccc\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><img src=\"/board/images/icons/icon%s.gif\"> Last Post By: %s<hr>%s...<br><a href=\"/board/showthread.php?threadid=%s\">Click here for more</font></td></tr>",$result_thread_array["iconid"],$latest_array["lastposter"],substr(strip_tags($result_thread_array["pagetext"]),0,$num_chars),$latest_array["threadid"]); printf ("<tr><td colspan=\"2\" width=\"100%%\"> </td></tr>"); } printf ("</table></center>"); ?> |
all i did was get an icon1.gif and and make a copy named icon0.gif
much easier :D |
Code:
<? |
thanks :D :) ;)
|
All times are GMT. The time now is 07:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|