View Full Version : floris; JS Content Syndication


reefland
28th June 2003, 10:28 PM
Hey floris,

I was wondering if you had to modify anything to get your javascript content syndication to work on the homepage of vbulletin.nl after upgrading to beta 4?

I used the same JS as you did on one of my sites with beta 3 and it worked fine. However I upgraded another one of my sites to beta 4 today, tried to enable the external data using the same exact JS as I do on the other site and it works however the threads displayed are very, very old threads. I posted a new thread and it didn't update the list.

Just wondering if you changed anything,
Scott

P.S. I'm dissapointed I wasn't one of your selectee's. :(

Floris
29th June 2003, 01:19 AM
No, I did not change anything, but it seems to work. Maybe your data is pulled from some cache of old threads. Make sure you are not viewing some page from a proxy or cached in the browser!

ps
I am sorry you didn't get picked either. It was a hard choice, and hopefully you have more luck in the future!

reefland
29th June 2003, 01:41 AM
I can't figure it out for anything. I thought of a cache problem however I have refreshed, cleared my browser cache and everything, nothing seems to work. The funny thing is if I enable the RSS or XML options and view them using the URL (external.php?type=rss) the same exact threads show up which leads me to believe it isn't a cache problem. I also tried to update threads via the update counters option but that didn't work either. No other options in there seemed to be relevant.

I posted over at vb.com as well but I think Scott is the only one that knows much about it so I guess I'll have to wait for him.

Later,
Scott

p.s. Maybe next time. ;)

Floris
29th June 2003, 01:49 AM
<script type="text/javascript" src="http://www.vBulletin-Fans.com/external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (i = 0; i < 5; i++)
{
document.writeln("<a href=\"http://www.vBulletin-Fans.com/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a><br /> - by: "+threads[i].poster+"<br />");
}
//-->
</script>

Ofcourse, replace the path to the file on your server :)
This is the code that I use, and I have not changed it since beta3/4

reefland
30th June 2003, 02:38 AM
<script type="text/javascript" src="http://www.vBulletin-Fans.com/external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (i = 0; i < 5; i++)
{
document.writeln("<a href=\"http://www.vBulletin-Fans.com/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a><br /> - by: "+threads[i].poster+"<br />");
}
//-->
</script>Ofcourse, replace the path to the file on your server :)
This is the code that I use, and I have not changed it since beta3/4

Yeah that is what I am using except I have added:
"+threads[i].threaddate+"
Which simply adds the thread post date. It appears what has happened is I have 49 old threads (from May, 2001) which have a dateline in the database of July, 2003. Scott hasn't posted a fix for me so worse case senario is I wait until after the 6th of July (that is the oldest dateline in the database). The stumbling question is how did these 49 threads get futuristic datelines added to them. :confused:

Scott Z.

Floris
31st August 2003, 04:26 AM
Scott (vb dev) once mentioned on vbulletin.com that he has plans to update the external.php file and the javascript/rss parts to include more details or handle more stuff. Hopefully we will see more of that in the upcoming beta6 !