vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   News ticker from RSS feeds? (https://vborg.vbsupport.ru/showthread.php?t=185323)

Stryker412 07-14-2008 07:11 PM

News ticker from RSS feeds?
 
Anyone know of a mod that will allow a news ticker to stream on the forum home that will display feeds from any RSS source?

SLR722 07-14-2008 08:08 PM

1. Copy http://yourforum.com/external.php?type=rss2
2. Use RSStoHTML or RSStoPHP and make <maquee> with it or PHP include it

Stryker412 07-14-2008 09:14 PM

A little slower for the php challenged? :)

SLR722 07-14-2008 09:44 PM

OK.. do you want to display a News Ticker for all the RSS Feed or for a particular forum? category?
  1. Download RSSTOHTML
  2. Upload rss2html.php and FeedForAll_XMLParser.inc.php to the root (http://www.forum.com/) or (/public_html/).
  3. DOUBLE CHECK, they should be in the root so they can be called like http://www.forum.com/rss2html.php
  4. Create a new file called "vBMarquee.html", contents of the file are below..
  5. Now try going to http://www.forum.com/rss2html.php?XMLFILE=http://www.forum.com/external.php?type=rss2&TEMPLATE=vBMarquee.html&MAXITEMS=10
  6. OK its looking good but nothings moving and it looks a mess? Great
  7. Go to AdminCP - > Style Manager - > FORUMHOME - > Add after headerinclude a PHP include or a SHTML Virtual include.
  8. If your still lost try the code below

PHP Code:

<?php
/*
IN FORUMHOME CODE
*/
include("/root/path/to/copy/paste/from/cpanel/public_html/rss2html.php?XMLFILE=[B]http://www.forum.com/external.php?type=rss2[/B]&TEMPLATE=[B]vBMarquee.html[/B]&MAXITEMS=10");

echo 
"";

// Note use a include rather than require

?>

vBMarquee.html source:

HTML Code:

<HTML>
    <HEAD>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <TITLE>
            ~~~FeedTitle~~~ vBulletin News Ticker using RSSTOHTML
        </TITLE>
    </HEAD>
    <BODY>
                <!--
        <H1>
~~~FeedTitle~~~</H1>
        <H2>~~~FeedDescription~~~</H2>
                <MARQUEE>
                //-->

            <MARQUEE>
                                ~~~BeginItemsRecord~~~ ~~~ItemPubShortDate~~~ > ~~~ItemPubShortTime~~~ ><B><A href="~~~ItemLink~~~">~~~ItemTitle~~~</A></B> (~~~ItemDescription~~~) ~~~EndItemsRecord~~~
                        </MARQUEE>
                <!--
                </MARQUEE>

        <H1>~~~FeedTitle~~~</H1>
        <H2>~~~FeedDescription~~~</H2>
                //-->

    </BODY>
</HTML>

This was just at the top of my head..please tell us if its OK.

SLR722 :)

Stryker412 07-14-2008 11:46 PM

I want to display the RSS feed from another news website, but in my forum home.

davidw 07-15-2008 12:33 AM

<cough>News Ticker</cough>

nexialys 07-15-2008 01:45 AM

you catched a cough David ?!... how bad, we will have to ask Danny. to play the nurse again...

tssss

SLR722 07-15-2008 07:39 AM

Hey

You can still use my suggestion above. And you can display feeds from anywhere. Nice hack. Although I thought this user had actually searched the forum, Google vB.com and even the thread recommendations query..

:)

Stryker412 07-15-2008 12:17 PM

Quote:

Originally Posted by davidw (Post 1575545)
<cough>News Ticker</cough>

Crap sorry, yes that's what I'm looking for. I saw this earlier but I thought it was just for forum messages/posts. My apologies.

davidw 07-15-2008 12:26 PM

No problem - someone else had the same requst, so I just made it a feature.


All times are GMT. The time now is 09:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01690 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete