penmai.com
11-26-2010, 03:26 AM
Hi, i had recently added customized side bar which displays on every page. To display the recent post code i had used this code.
<script language="" src="http://www.penmai.com/forums/external.php?type=js" type="text/javascript">
</script>
<script language="" type="text/javascript">
<!--
for (i = 0; i < 10; i++)
{
document.writeln("<tr><td colspan=2 height=18><span class=smallfont><b><a href=\"http://www.penmai.com/forums/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a></b> -<i>"+threads[i].poster+"</i><br /></span></td></tr>");
}
//-->
</script>
The code is working fine. This code just diplays,
1. The newly created threads and that too only title of the thread
What i need is
1. Not only newly started threads but also recent replies and
2. To display first 30 or 50 characters of the post message.
Can any of you please tell me how to change this code to display like what i have stated above.
I will be satisfied if i get code used by vbulletin (default) to show recent post in the forum. Is there is any possibility to use that code. Because it strongly matches my question
Thanks in advance...
<script language="" src="http://www.penmai.com/forums/external.php?type=js" type="text/javascript">
</script>
<script language="" type="text/javascript">
<!--
for (i = 0; i < 10; i++)
{
document.writeln("<tr><td colspan=2 height=18><span class=smallfont><b><a href=\"http://www.penmai.com/forums/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a></b> -<i>"+threads[i].poster+"</i><br /></span></td></tr>");
}
//-->
</script>
The code is working fine. This code just diplays,
1. The newly created threads and that too only title of the thread
What i need is
1. Not only newly started threads but also recent replies and
2. To display first 30 or 50 characters of the post message.
Can any of you please tell me how to change this code to display like what i have stated above.
I will be satisfied if i get code used by vbulletin (default) to show recent post in the forum. Is there is any possibility to use that code. Because it strongly matches my question
Thanks in advance...