PDA

View Full Version : Urgent Help requested {External Code}


GateKeeper_
02-22-2012, 01:16 AM
Here is the code for the latest threads:
<script type="text/javascript" src="external.php?forumids=2,1635&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Submitted by: "+threads[x].poster+")<br />");
}
//-->
</script>

How do I add the # of views, # of comments, and date posted?

Please if possible can you adjust the code for me? ;)

Thank you so much as always.

Best regards,
GateKeeper_

kh99
02-22-2012, 08:54 AM
You can add threads[x].threaddate and threads[x].threadtime where you want them, like maybe:

<script type="text/javascript" src="external.php?forumids=2,1635&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Submitted by: "+threads[x].poster+") " + threads[x].threaddate + " " + threads[x].threadtime + "<br />");
}
//-->
</script>


but the other things you asked for aren't in the javascript external feed. You would have to edit external.php to add them.

GateKeeper_
02-24-2012, 12:17 AM
How would I add the # of comments of the thread?

Can anyone help me edit external.php in order to do this please.

As always thank you for your support.

Kind Regards.

GateKeeper_
02-25-2012, 12:29 AM
Is there at least a way to show the whole post instead of just thread title?

GateKeeper_
02-27-2012, 10:57 PM
Can anyone tell me how I can add search.php to external.php

Basically search.php?searchid=4

would show all the search threads in searchid=4

GateKeeper_
02-28-2012, 11:17 PM
bump