Announcement

Collapse
No announcement yet.

RSS Feeds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jhobbs
    replied
    You might want to look at http://www.phpportals.com/. vbPortal has a built-in RSS reader, so people at your site can view news or other site contents, provided they have an RSS output.

    Leave a comment:


  • DannyITR
    replied
    still lookting for solution to delay.

    Leave a comment:


  • DannyITR
    replied
    Originally posted by boske

    But for some reason its running really slow when I load the script, it probably takes 2-3 seconds to load the page...
    I use Javascript and I'm noticing the 2-3 second wait before the page loads too. Does the RSS option do this as well? Can you get around this with Java?

    Leave a comment:


  • TheMusicMan
    replied
    Originally posted by DannyITR
    So it is my understand that if you use RSS you need to install a third party program just to decypher the code and get it to show on the site where as java can be done with no other program? Sorry but I'm just so confused?
    Yes, that's right. You will need a news reader such as CARP or similar running on the site.

    That's why I had some code written that does this;


    ... that allows any other site to display the last 'n' posts from my site, on theirs. Doesn't need any software on their site, just html placed wherever they want that module to appear.

    Cool eh!

    Leave a comment:


  • DannyITR
    replied
    So it is my understand that if you use RSS you need to install a third party program just to decypher the code and get it to show on the site where as java can be done with no other program? Sorry but I'm just so confused?

    Leave a comment:


  • Steve Machol
    replied
    Please ask over at vbulletin.org for help with code modifications.

    Leave a comment:


  • psoexplorer
    replied
    bump again...

    Leave a comment:


  • psoexplorer
    replied
    Sorry to bump the thread again, but it's important!

    Does anybody know how to change the above code like I asked?

    Leave a comment:


  • psoexplorer
    replied
    Sorry to bump this up from the dead, but I need a bit of help. I'm currently using the following code to show the latest threads from my forum on my main site.

    Code:
    <script type="text/javascript" src="http://www.mysite.com/forum/external.php?type=js"></script>
    
    <script type="text/javascript">
    <!--
    CutOff = 16 // Number of maximum chars to cut off before adding '...'
    
    	function cutOffTitle(title)
    	{
    		if (title.length > CutOff)
    		{
    			title = title.substring(0, 16) + '..'
    		}
    		
    		return title
    	}
    
    	for (var i = 0; i < 7; i++)
    	{
    		document.write('<a href="http://www.mysite.com/forum/showthread.php?t=' + threads[i]['threadid'] + '">' + cutOffTitle(threads[i]['title']) + '</a><br />');
    	}
    //-->
    </script>

    My question is - what do I need to change/add to make the listings show the most recently updated threads? For example, if a thread is made, and then a week later somebody posts a new reply, it will show up in the list as the latest change to that thread. Because right now it merely shows the latest NEW threads.

    Leave a comment:


  • boske
    replied
    oh, sorry I wasn't aware of that, I was just tyring to input some of my ideas

    Leave a comment:


  • daemon
    replied
    No, there's nothing wrong with doing a direct query of the database. However code modifications cannot be discussed here; you'll need to go to vBulletin.org to do so.

    Leave a comment:


  • boske
    replied
    I couldn't mess with that RSS stuff, I just did a direct feed off the database...

    But for some reason its running really slow when I load the script, it probably takes 2-3 seconds to load the page...

    PHP Code:
    $result = mysql_query("SELECT * FROM vb3_thread WHERE forumid != 23 ORDER BY lastpost DESC LIMIT 0,10");


    while($r=mysql_fetch_array($result)){

    $threadid=$r["threadid"];
    $title=$r["title"];
    $postusername=$r["postusername"];
    $forumid=$r["forumid"];
    $replycount=$r["replycount"];
    $posterid=$r["postuserid"];
    $views=$r["views"];


    ?>
    <tr align="middle">
                <td class="alt2" align="left"><a href="http://www.example.com/forums/showthread.php?t=<? echo $threadid?>"><? echo $title?></a></td>
                <td class="alt1Active" id="f44" align="center"><? echo $replycount?></td>
                <td class="alt2" noWrap width="32"><? echo $views?></td>
                <td class="alt1"><a href="http://www.example.com/forums/member.php?u=<? echo $posterid ?>"><? echo $postusername?></a></td>
            </tr>
    <?
    }
    ?>
    Is there something wrong with doing it this way?

    Thanks
    Steve

    Leave a comment:


  • chriswatson
    replied
    I use http://www.rss2js.com/ to convert the RSS feed from external.php to JavaScript to include in a standard HTML page.

    Hope this helps

    Chris.

    Leave a comment:


  • feldon23
    replied
    This information is available from external.php for JS embedding:

    threads[i]['threadid'] -- threadid
    threads[i]['title'] -- title of thread
    threads[i]['threaddate'] -- creation date of thread
    threads[i]['threadtime'] -- creation time of thread
    threads[i]['poster'] ? -- creator of thread

    I hope that vB3.5 adds, at a minimum:

    forumid, lastpostdate, lastposttime, lastposter, lastposttext, numposts, numreplies

    For a "latest news" type of thread list, do people really care when a topic was created?


    Thank God for http://www.vbulletin.org/forum/showthread.php?t=69834 but I don't know if it addresses the desires of JS functionality.
    Last edited by feldon23; Wed 8 Jun '05, 3:45pm.

    Leave a comment:


  • dwjngs
    replied
    Thanks, daemon.

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X