Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Oct 2009, 16:41
BlackJacket's Avatar
BlackJacket BlackJacket is offline
 
Join Date: Nov 2008
Real name: V
javascript help - latest posts

Is this correct?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I keep getting an error and my latest threads wont display right.
Thanks for the help.
Reply With Quote
  #2  
Old 03 Oct 2009, 19:39
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
It always helps if you post the actual error you are getting.

See this thread - http://www.vbulletin.com/forum/showthread.php?t=283817
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 03 Oct 2009, 20:03
BlackJacket's Avatar
BlackJacket BlackJacket is offline
 
Join Date: Nov 2008
Real name: V
Originally Posted by Lynne View Post
It always helps if you post the actual error you are getting.

See this thread - http://www.vbulletin.com/forum/showthread.php?t=283817
Thank you again Lynne.


***To fix this issue***

Enable external javascript

AdminCP>VB Options>External Data Provider>

I also had to fix the JS as it was not correct -


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #4  
Old 04 Oct 2009, 04:19
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Real name: Kevin
Here, try this, its the code I use on my site. This will display the most recent 15 threads.


<script type="text/javascript" src="http://www.YOURSITENAME.com/forum/external.php?&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 15; x++)
{
document.writeln("*<a href=http://www.YOURSITENAME.com/forum/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a><br />");
}
//-->
</script>
That came straight off the sidebar of my wordpress blog, so it should work.
__________________
political forum
Reply With Quote
  #5  
Old 12 Oct 2009, 01:17
Lift for Life Lift for Life is offline
 
Join Date: Oct 2006
Thanks for the code above,,, I've spent the better part of the day trying to get recent posts to show up on an html page and this one did the trick.

Thanks!

Lift
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:57.

Layout Options | Width: Wide Color: