MyBB Community Forums

Full Version: recent topics on index page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
		   	   <td class="trow2" align="left" width="25%">
		       <a href="forumdisplay.php?&amp;fid=' . $row['fid'] . '">' . $row['name'] . '</a>
		    </td>
		   <td class="trow1" align="center" width="15%">
		   ' .$lastpostdate . ' ' . $lastposttime . '
		   </td>
		   	   <td class="trow2" align="center" width="15%">
		      ' . $username . '
		   </td>
		   	   <td class="trow1" align="center" width="35%">
		      <a href="showthread.php?tid=' . $row['tid'] . '&amp;action=lastpost">' . $subject .'</a>
		   </td>

can this a person please replace for me:

showthread.php et cetera to get_thread_link

and

forumdisplay.php et cetera to get_forum_link et cetera

thank you very much. i to stupid for this.
hkkp - the forum link is already there - the showthread link is on the last post. Perhaps try this one from Cedric? It has templates, so it is easier.

http://mods.mybb.com/view/mylatestthreads
Check that the variable $latestposts is in your index template.
<a href="'.get_thread_link($row['tid'], 0, 'lastpost').'"> ' . $subject .'</a> 

and

<a href="'.get_forum_link($row['fid']).'"> ' . $row['name'] . '</a> 

thx to waldo