PDA

View Full Version : Issue with displaying latest threads in my homepage


arrarrgee
03-29-2014, 12:32 PM
Hi,
I am trying to display the latest threads in my website homepage from VB5 forums. I included below code snippet and trying to invoke. It displaying "beforeloop" but not "inloop" its not failing but seems like it is not getting any thread information into the loop. I changed the permissions for "the Unregistered / Not Logged" In usergroup to view forums but does not seem to work. Can you please advice?
I am pretty new to VB integration hence any help you could provide is great.

<script src="http://www.yourdomain.com/forumpath/external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
alert("beforeloop");
<!--
for (i in threads)
{
alert("inloop");
document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />");
}
//-->
</script>

Dead Eddie
03-29-2014, 02:09 PM
<script src="http://www.yourdomain.com/forumpath/external?type=js" type="text/javascript"></script>

Remove the ".php" from the url.

Lynne
03-29-2014, 05:04 PM
What not use a Search Module to do this in vB5?

arrarrgee
05-20-2014, 12:35 PM
Thanks both of you. I decided to go ahead with VB4 instead of VB5

aleheroix
05-20-2014, 02:15 PM
Thanks both of you. I decided to go ahead with VB4 instead of VB5
hah!