The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, i had recently added customized side bar which displays on every page. To display the recent post code i had used this code.
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> 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... |
#2
|
||||
|
||||
![]()
You won't be able to use the javascript to get replies and pagetext. You will need to write a query to do this instead. (I think there are forum blocks that do this.)
|
#3
|
|||
|
|||
![]()
thanks Lynne for your reply!!! "Exactly i need the coding of Forum blocks recent posts."
Since vbulletin forum block manager are not visible in some versions of IE i need this coding. |
#4
|
||||
|
||||
![]()
Did you look at the code? /includes/block/newposts.php
|
#5
|
|||
|
|||
![]()
Thanks lynne, I got the code may i replace the code
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> |
#6
|
||||
|
||||
![]()
I do not believe you may simple copy it, no. You were asking about the query to use and I simply said it is in that file. You will have to write your own block of code for this.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|