OGZ.Korea
06-01-2010, 11:49 PM
Hi, I have tried 'How to display latest thread on any normal pages' and it worked great but they are only showing the links...
I would like to see whole of first post of any thread to be displayed on html page - similar to news blog - and visitors can click on news titles which would take them to forum to reply if they want to.
Could this be possible?
Thanks
Here's the code for displaying latest threads - maybe it can be altered to show the first post as well?
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script>
Anyone? It should be a simple mod!
I have searched for it, am I missing anything?
Also, if you guys don't mind can you guys show me a list of external.php codes.
e.g.) "+threads[x].title+"
I want a codes for userid, date of post, time of post, & number of views of post.
I've tried the following code for userid:
<a href=\"member.php?u="+threads[x].userid+"\">"+threads[x].poster+"</a>
What am I doing wrong?
Please this is advance html coding or java coding, and I'm only at a novice/intermediate level. I've researched numerous times in google, and did not find the answer. Therefore, I experimented for over 8 hours right now and came up with the same result.
Please coder's that can help me I feel as if I've wasted a lot of time on this code.
It would be very kind to help me!~ Your kindness will be engraved in my heart. :up:
--------------- Added 1275519328 at 1275519328 ---------------
nobody wants to help?
Please if anyone knows anything about this please share.
I would like to see whole of first post of any thread to be displayed on html page - similar to news blog - and visitors can click on news titles which would take them to forum to reply if they want to.
Could this be possible?
Thanks
Here's the code for displaying latest threads - maybe it can be altered to show the first post as well?
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script>
Anyone? It should be a simple mod!
I have searched for it, am I missing anything?
Also, if you guys don't mind can you guys show me a list of external.php codes.
e.g.) "+threads[x].title+"
I want a codes for userid, date of post, time of post, & number of views of post.
I've tried the following code for userid:
<a href=\"member.php?u="+threads[x].userid+"\">"+threads[x].poster+"</a>
What am I doing wrong?
Please this is advance html coding or java coding, and I'm only at a novice/intermediate level. I've researched numerous times in google, and did not find the answer. Therefore, I experimented for over 8 hours right now and came up with the same result.
Please coder's that can help me I feel as if I've wasted a lot of time on this code.
It would be very kind to help me!~ Your kindness will be engraved in my heart. :up:
--------------- Added 1275519328 at 1275519328 ---------------
nobody wants to help?
Please if anyone knows anything about this please share.