Coding problem

#1
CG or anyone else know what's the problem with this code?

<p>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/><meta http-equiv="content-script-type" content="text/javascript"/><meta http-equiv="content-style-type" content="text/css"/></p>
<p><meta name="robots" content="index, follow, noodp"/><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=1" title="General Discussion"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=5" title="Feedback/Suggestions"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=3" title="Forum Games"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=6" title="Useful Programs"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=39" title="The Water Cooler"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=10" title="Computer Programming"></link><link rel="alternate" type="application/rss+xml" href="http:/ets-forums.forumotion.com/rss/?f=7" title="Windows Support"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=8" title="Linux &amp; Mac Help"></link><link rel="alternate" type="application/rss+xml" href="http:/ets-forums.forumotion.com/rss/?f=9" title="Booting Issues"></link><link rel="alternate" type="application/rss+xml" href="http:/ets-forums.forumotion.com/rss/?f=4" title="General PC Support"></link><link rel="alternate" type="application/rss+xml" href="http:/ets-forums.forumotion.com/rss/?f=11" title="Africa"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=12" title="Australia"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=13" title="China"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=14" title="Israel"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=15" title="Japan"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=16" title="United Kingdom"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=17" title="USA"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=18" title="The Rest of the World"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=19" title="Sci-Fi or Fact"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=20" title="The Official Buzz Forum"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=21" title="Cool Gadgets"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=27" title="Aikido"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=22" title="Judo"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=23" title="Karate"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=24" title="MMA &amp; UFC"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=25" title="Ninjutsu"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=26" title="Shaolin Martial Arts"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=28" title="Tae Kwon Do"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=31" title="Wushu"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=29" title="Other"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=30" title="Gaming"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=32" title="Movies"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=33" title="Guitar Tips and Tricks"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=34" title="Your Favorite Songs"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=35" title="Sports/Recreation"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=36" title="Television"></link><link rel="alternate" type="application/rss+xml" href="http://ets-forums.forumotion.com/rss/?f=37" title="Books/Literature"></link><link rel="alternate" type="application/rss+xml" title="Latest topics (RSS 2.0)" href="http://ets-forums.forumotion.com/feed/"></link><link rel="alternate" type="application/atom+xml" title="Latest topics (ATOM)" href="http://ets-forums.forumotion.com/feed/?type=atom"></link><meta name="title" content="Expert Technology Storehouse : The ETS Forums"/><link rel="stylesheet" href="/25-ltr.css" type="text/css"></link><link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="The ETS Forums"></link><link rel="search" type="application/opensearchdescription+xml" href="http://www.board-directory.com/en/search/improvedsearch.xml" title="Search forums"></link></p><script src="http://illiweb.com/fa/js_06/en.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[

$(document).ready(function(){});//]]></script><script src="http://illiweb.com/fa/js_06/invision.js" type="text/javascript"></script><div class="minwidth_IE"><div class="layout_IE"><div class="container_IE"><div id="ipbwrapper"><a id="top" name="top" accesskey="t"></a>
<div style="height:4px"></div><div class="module borderwrap"><div class="maintitle"><h3>Latest topics</h3></div><div class="box-content"><div id="comments_scroll_div" style="height:200px;overflow:auto">» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/movies-f32/the-new-movie-2012-t12.htm#49">The new movie '2012'!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 1:44 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-moderating-team-f38/assigning-moderators-t3.htm#44">Assigning Moderators</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 11:59 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=2"><span style="color:#000099"><b>Dark Knight</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/forum-games-f3/count-to-one-million-t4.htm#43">Count to one million!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 11:57 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=2"><span style="color:#000099"><b>Dark Knight</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-rest-of-the-world-f18/copter-crash-kills-16-in-afghanistan-nato-says-t11.htm#40">Copter crash kills 16 in Afghanistan, NATO says</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 3:22 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/israel-f14/israel-rejects-us-call-to-halt-jerusalem-project-t10.htm#39">Israel rejects U.S. call to halt Jerusalem project</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 3:08 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/china-f13/china-says-police-killed-12-in-urumqi-rioting-t9.htm#38">China says police killed 12 in Urumqi rioting</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 15:22 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/israel-f14/israel-told-to-halt-east-jerusalem-housing-project-t8.htm#37">Israel told to halt east Jerusalem housing project</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 15:19 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-water-cooler-f39/share-your-favorite-pics-t7.htm#36">Share your favorite pics!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 1:43 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/general-discussion-f1/welcome-to-the-expert-technology-storehouse-forums-t1.htm#33">Welcome to the Expert Technology Storehouse forums!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Sat 18 Jul 2009 - 2:57 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=4"><span style="color:#000099"><b>mikehell</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/feedback-suggestions-f5/designing-the-ets-forums-logo-t6.htm#31">Designing the ETS Forums logo</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Sat 18 Jul 2009 - 2:24 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/></div></div></div><script type="text/javascript">//<![CDATA[
div_marquee('comments_scroll_div', 'comments_scroll_container', 'up', '2', '90', '200', 'genmed');//]]></script><div style="height:4px"></div></div></div></div></div>
Its a widget for my site, which I put on the sidebar, that is supposed to display the latest forum posts (which are on a completely different server, and domain). Obviously it must be missing something because it does not update by itself when a new post is made in the forums. I worked at this problem practically all day, but wasn't able to solve it yet. :frowning: Hopefully someone will have the answer.
 
Last edited:

JustinW

Super Moderator
Staff member
#2
What editor you using? That code isnt exactly the easiest to glance over..

Perhaps your forums provider provides code you can inject into your site?
 
#3
What editor you using? That code isnt exactly the easiest to glance over..

Perhaps your forums provider provides code you can inject into your site?
I'm using Gedit because I haven't looked very hard yet for any text editors for Linux (I'm mostly in Ubuntu these days).
Its a possibility, but I doubt it. The code above I basically took from the forum code (and altered slightly so it would work with the main site, i.e. by changing all the "href"s in the code to include the full address to the forums). I pretty much figured out how it works, but the thing I haven't figured out quite yet is how exactly the widget updates on the forums when a new post is made. The way I see it, there are two possibilities. One, when a new post is made, the posting code sends the data to the widget. Or two, the widget knows to search the div classes the forum posts' data is stored in each time the page that the widget is on is loaded by the client's browser. Since I already went over the code several times on the forum main page, I'm willing to guess that the first possibility is what happens. And if that's the case, obviously I can not modify the forum posting code so it will send it to the widget on my main site (not a possibility), and so I need a different way for the widget to work on the main site.
I spent a lot of time yesterday searching all over the Web for a solution to the problem, but wasn't able to find one quite yet...I'll keep looking though.
 
Last edited:

JustinW

Super Moderator
Staff member
#4
Editor shouldnt matter anyway. I'd start by putting the element tags on new lines and indenting your code so it can easily be looked over. Make sure that you've got all your closing tags in the right places. If you could post the orginal as well that well be useful. You might be right here. Not much you can do if its something they're doing in the forum software itself.
 
#5
Editor shouldnt matter anyway. I'd start by putting the element tags on new lines and indenting your code so it can easily be looked over. Make sure that you've got all your closing tags in the right places. If you could post the orginal as well that well be useful. You might be right here. Not much you can do if its something they're doing in the forum software itself.
If you mean do that in my post, I'm afraid I can't...
The time limit that CG put on post edit has long passed, so I can't edit it.
About posting the original, unfortunately its not that easy...
You see, basically how I got that code (since the forums admin panel doesn't allow editing of that particular widget code) is I went to the forums home page, went to View>Page Source in my browser (FF), and went line by line through the code, basically taking out only the relevant code that is obvious its for the Latest Topics widget. This was not the easiest thing to do, since not all the code for it was in the same place, but I'm pretty sure I did it right. If you go view the main site, and view the home page, you'll see the widget is mostly working (i.e. the links are scrolling, like they are on the forums). The only problem is it doesn't update when a new post is made at the forums, like the one at the forums themselves does. :frowning:
 
Last edited:

JustinW

Super Moderator
Staff member
#6
I kind of figured that, but I asked for the orginal anyway in case you could access it from the admin cp. Oh well, I'll do some looking around in it than and see if I can find anything. CG's done something like this on the homepage for NeoSmart, so he might be able to help :smile:
 
#7
I kind of figured that, but I asked for the orginal anyway in case you could access it from the admin cp. Oh well, I'll do some looking around in it than and see if I can find anything. CG's done something like this on the homepage for NeoSmart, so he might be able to help :smile:
I'm glad you mentioned that...:smile:
Here's the code he uses:
In the head:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NeoSmart Technologies</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://neosmart.net/includes/neosmart.css" type="text/css" />
<link rel="shortcut icon" href="http://neosmart.net/favicon.ico" type="image/x-icon" />
<link rel="alternate" type="application/rss+xml" title="The NeoSmart Files" href="http://neosmart.net/blog/feed/" />
<link rel="alternate" type="application/rss+xml" title="The NeoSmart Forums RSS Feed" href="http://neosmart.net/forums/external.php?type=RSS2" />
<script type="text/javascript">
if (top!=self) top.location.href=self.location.href;
</script></head>
Farther down the page:
<div class="half">
<h2>Forum Chatter</h2>
<ul><li><a href='http://feeds.neosmart.net/~r/nst_forums/~3/vfWAvFDZVOc/showthread.php'>Win7 RTM Info</a></li><li><a href='http://feeds.neosmart.net/~r/nst_forums/~3/8XoItGdr3OQ/showthread.php'>System Restore</a></li><li><a href='http://feeds.neosmart.net/~r/nst_forums/~3/-MnlDDvUl50/showthread.php'>Deleting XP from a dual boot with Vista</a></li><li><a href='http://feeds.neosmart.net/~r/nst_forums/~3/GIfrcTigPzw/showthread.php'>Coding problem</a></li><li><a href='http://feeds.neosmart.net/~r/nst_forums/~3/R6ihzvhoApU/showthread.php'>how to change bcd menu in command</a></li></ul> </div>

</div>
Basically he uses the RSS feed of the NST forums, but so did I with my RSS feed, in the code above, as you can see:
<link rel="alternate" type="application/rss+xml" title="Latest topics (RSS 2.0)" href="http://ets-forums.forumotion.com/feed/"></link><link rel="alternate" type="application/atom+xml" title="Latest topics (ATOM)" href="http://ets-forums.forumotion.com/feed/?type=atom"></link>
Addendum:

Ok, well I discovered one problem at least. The meta tag is supposed to go in the head of the document (so that part of the code I can't put in the sidebar at all). Unfortunately Webs doesn't allow full editing of its pages, so I'm not sure if that will be possible...

Addendum:

And forgot to mention before: some of the code above is not needed obviously, and I didn't have it in there previously, but since it wasn't working, I decided to put all the parts of the code I obtained from the forum inside it, just in case I missed something.

Addendum:

Ok, I removed the code that's not needed. Here is the new code:
<link rel="alternate" type="application/rss+xml" title="Latest topics (RSS 2.0)" href="http://ets-forums.forumotion.com/feed/"></link><link rel="alternate" type="application/atom+xml" title="Latest topics (ATOM)" href="http://ets-forums.forumotion.com/feed/?type=atom"></link>
<script src="http://illiweb.com/fa/js_06/en.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[

$(document).ready(function(){});//]]></script><script src="http://illiweb.com/fa/js_06/invision.js" type="text/javascript"></script><div class="minwidth_IE"><div class="layout_IE"><div class="container_IE"><div id="ipbwrapper"><a id="top" name="top" accesskey="t"></a>
<div style="height:4px"></div><div class="module borderwrap"><div class="maintitle"><h3>Latest topics</h3></div><div class="box-content"><div id="comments_scroll_div" style="height:200px;overflow:auto">&raquo; <a onmouseover="document.getElementById('comments_scroll_container').stop();"
onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/movies-f32/the-new-movie-2012-t12.htm#49">The new movie '2012'!</a><br /><img src="http://illiweb.com/fa/empty.gif" alt="" />Today at 1:44 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><strong>Coolname007</strong></span></a><br /><br />&raquo; <a onmouseover="document.getElementById('comments_scroll_container').stop();"
onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-moderating-team-f38/assigning-moderators-t3.htm#44">Assigning Moderators</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 11:59 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=2"><span style="color:#000099"><b>Dark Knight</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/forum-games-f3/count-to-one-million-t4.htm#43">Count to one million!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 11:57 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=2"><span style="color:#000099"><b>Dark Knight</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-rest-of-the-world-f18/copter-crash-kills-16-in-afghanistan-nato-says-t11.htm#40">Copter crash kills 16 in Afghanistan, NATO says</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 3:22 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/israel-f14/israel-rejects-us-call-to-halt-jerusalem-project-t10.htm#39">Israel rejects U.S. call to halt Jerusalem project</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Today at 3:08 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/china-f13/china-says-police-killed-12-in-urumqi-rioting-t9.htm#38">China says police killed 12 in Urumqi rioting</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 15:22 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/israel-f14/israel-told-to-halt-east-jerusalem-housing-project-t8.htm#37">Israel told to halt east Jerusalem housing project</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 15:19 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/the-water-cooler-f39/share-your-favorite-pics-t7.htm#36">Share your favorite pics!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Yesterday at 1:43 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/general-discussion-f1/welcome-to-the-expert-technology-storehouse-forums-t1.htm#33">Welcome to the Expert Technology Storehouse forums!</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Sat 18 Jul 2009 - 2:57 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=4"><span style="color:#000099"><b>mikehell</b></span></a><br/><br/>» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/feedback-suggestions-f5/designing-the-ets-forums-logo-t6.htm#31">Designing the ETS Forums logo</a><br/><img src="http://illiweb.com/fa/empty.gif"/>Sat 18 Jul 2009 - 2:24 by <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="http://ets-forums.forumotion.com/profile.forum?mode=viewprofile&amp;u=1"><span style="color:#000099"><b>Coolname007</b></span></a><br/><br/></div></div></div><script type="text/javascript">//<![CDATA[
div_marquee('comments_scroll_div', 'comments_scroll_container', 'up', '2', '90', '200', 'genmed');//]]></script><div style="height:4px"></div></div></div></div></div>
Addendum:

Ok, I went at the problem a different way this time, but it still did not work. :frowning:
I copied the whole code of my home page, pasted it into a file, naming it "home.htm". I then saved that file, and editing it in Gedit, I moved the following code to the head of the document, placing it between the and tags:

<link rel="alternate" type="application/rss+xml" title="Latest topics (RSS 2.0)" href="http://ets-forums.forumotion.com/feed/"></link><link rel="alternate" type="application/atom+xml" title="Latest topics (ATOM)" href="http://ets-forums.forumotion.com/feed/?type=atom"></link>
<script src="http://illiweb.com/fa/js_06/en.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[

$(document).ready(function(){});//]]></script><script src="http://illiweb.com/fa/js_06/invision.js" type="text/javascript"></script>
I then saved the file again, uploaded it to my site, and opened it up (and it displayed just like the normal home page of my site). But the only problem was the widget still had not updated, and was not displaying the latest posts. :frowning:
 
Last edited:

JustinW

Super Moderator
Staff member
#8
I'm pretty sure webs side addon for recent forum posts relies on rss too and I think you can edit that. How about redirecting it to your feed?
 
#9
I'm pretty sure webs side addon for recent forum posts relies on rss too and I think you can edit that. How about redirecting it to your feed?
I checked out that code already, but I don't think it will work...
Anyway, I just posted on their support forums, so hopefully someone there will have a solution.
 
Last edited:

mqudsi

Mostly Harmless
Staff member
#10
It's rare to have stuff that updates instantly... and looking at the source code on the homepage of NST won't provide any info because I'm not using HTML to generate that list.

I wrote 2 PHP scripts for the homepage, the 1st downloads a given RSS feed (in this case, the forums and the blog) and parses it to create HTML text from the RSS contents; the 2nd checks the database to see the latest programs and stuff.

The RSS parser has 2 delays: the 1st is from the time it takes for the forums to update the RSS after a new post has been made, the 2nd is from the parser itself and how often it checks if the RSS has changed (because it caches the results for performance reasons).
 
#11
It's rare to have stuff that updates instantly... and looking at the source code on the homepage of NST won't provide any info because I'm not using HTML to generate that list.

I wrote 2 PHP scripts for the homepage, the 1st downloads a given RSS feed (in this case, the forums and the blog) and parses it to create HTML text from the RSS contents; the 2nd checks the database to see the latest programs and stuff.

The RSS parser has 2 delays: the 1st is from the time it takes for the forums to update the RSS after a new post has been made, the 2nd is from the parser itself and how often it checks if the RSS has changed (because it caches the results for performance reasons).
Cool, and thanks.
I know this is probably too much to ask, but...do you mind sending me the code for the first PHP script? :smile:
If you do, I'll make sure to keep the code under "lock and key", so to speak, and wont redistribute it to anyone. I'll only use it on my site.