Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Atakan Rss Feeds Views 2.00 Details »»
Atakan Rss Feeds Views 2.00
Version: 2.03, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 02-18-2006 Last Update: 04-08-2006 Installs: 91
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Atakan RSS View Feeds 2.03 :banana:

Installation

Please 2.00 previous version lift and again install...

Installation in two easy steps:

1. Upload all the files from the "files" directory in this zip into your forums directory.

2. Import product-1901.xml as a product. (Via "Plugin System" > "Manage Products" > "Add/Import Product" in your Admin CP.)
Upgrade Info

Allow Overwrite [YES]

If you upgrate this sw you will have some problem, first you must remove the old versiyon and install the new version. Then you won't have any problem

Upload


newsview.php == forum/newsview.php
adminnewsx.php == forum/admincp/adminnewsx.php
xmlparser.php == forum/includes/xmlparser.php
cpnav_rssview.xml == forum/includes/xml/cpnav_rssview.xml

Template Change

Template: navbar

now open your navbar template:
Admincp >> Styles & Templates >> Style Manager >> *template* >> navbar

Find this code

HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Place under it

HTML Code:
<td class="vbmenu_control"><a href="newsview.php">Rss News</a></td>


Feed List

Fead Name :
Yahoo News
Feed Location :
http://rss.news.yahoo.com/rss/topstories

Fead Name : Fox News
Feed Location :
http://www.foxnews.com/xmlfeed/rss/0,4313,0,00.rss

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 08-14-2006, 10:30 PM
Mysticales's Avatar
Mysticales Mysticales is offline
 
Join Date: Oct 2005
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im trying this out for now.. Gonna see how it is, cause if this works nice.. no need to get a bot to make a thread with RSS news.
Reply With Quote
  #103  
Old 08-18-2006, 03:59 AM
Mysticales's Avatar
Mysticales Mysticales is offline
 
Join Date: Oct 2005
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey question, we like this hack alot, is there a way to make it so it only shows a preview of each news article shown? Like a small preview, few sentances, then after that it will say "More" which is a link to the orig article so they can be guided to the full news shown?
Reply With Quote
  #104  
Old 08-18-2006, 04:27 PM
naeemakhtar naeemakhtar is offline
 
Join Date: Jun 2006
Location: London
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pls delete...
Reply With Quote
  #105  
Old 08-23-2006, 02:16 AM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this going to be converted for 3.6?
Reply With Quote
  #106  
Old 09-24-2006, 02:42 AM
liljimmy liljimmy is offline
 
Join Date: Dec 2005
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hex1848
I was able to get this fixed. The reason it was breaking is that many hosting providers have disabled fopen. As mentioned in a previous post in this thread the fopen calls needed to be replaced with cURL. I did a little research to figure out what needed to be done.

You need to edit the includes/xmlparser.php file and replace the render_news function with the code below:

New function (use this):
PHP Code:
function render_news($feed_url$showdetail$headlinestyle$detailstyle) {
    global 
$show_detail$headline_style$detail_style$max$count$insideitem$insideimage$code2;
    
$insideitem=false;
    
$insideimage=false;
    
$count 0;
    
$show_detail $showdetail;
    
$headline_style $headlinestyle;
    
$detail_style $detailstyle;

    
$xml_parser xml_parser_create();
    
xml_set_element_handler($xml_parser"startElement""endElement");
    
xml_set_character_data_handler($xml_parser"characterData");
    
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL$feed_url);
    
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
    
$store curl_exec ($ch);
    
$xml curl_exec ($ch);
    
curl_close ($ch); 
    
    if (!
xml_parse($xml_parser$xmlTrue))
     {
     die(
sprintf("XML error: %s at line %d",
      
xml_error_string(xml_get_error_code($xml_parser)),
      
xml_get_current_line_number($xml_parser)));
     }
 
    
// Free up memory used by the XML parser
    
xml_parser_free($xml_parser);

Old function (for comparison):

PHP Code:
function render_news($feed_url$showdetail$headlinestyle$detailstyle) {
    global 
$show_detail$headline_style$detail_style$max$count$insideitem$insideimage$code2;
    
$insideitem=false;
    
$insideimage=false;
    
$count 0;
    
$show_detail $showdetail;
    
$headline_style $headlinestyle;
    
$detail_style $detailstyle;

    
$xml_parser xml_parser_create();
    
xml_set_element_handler($xml_parser"startElement""endElement");
    
xml_set_character_data_handler($xml_parser"characterData");
    
$fp = @fopen($feed_url,"r");
//           or die("Error reading RSS data.");
    
if ($fp) {
        while (
$data fread($fp4096))
           
xml_parse($xml_parser$datafeof($fp))
               or die(
sprintf("XML error: %s at line %d",  
                   
xml_error_string(xml_get_error_code($xml_parser)),  
                   
xml_get_current_line_number($xml_parser)));
        
fclose($fp);
        } else {
        
$code2 .= "<span class=\""$detail_style ."\">Syndicated content not available</span>";
        }
        
    
    
// Free up memory used by the XML parser
    
xml_parser_free($xml_parser);

That works wonderfully! Many, many, many thanks Hex!!!
Reply With Quote
  #107  
Old 11-12-2006, 01:00 PM
jyajay jyajay is offline
 
Join Date: Sep 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mholtum
is this going to be converted for 3.6?
Doesn't need to, works fine with 3.6.3
Reply With Quote
  #108  
Old 07-30-2007, 01:21 PM
Vehbi KOC's Avatar
Vehbi KOC Vehbi KOC is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eline sağlık Atakan
thank you....
Reply With Quote
  #109  
Old 10-12-2007, 01:47 PM
IRCMedya IRCMedya is offline
 
Join Date: Oct 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

S?persin birader

Thank you.
Reply With Quote
  #110  
Old 02-03-2008, 10:32 AM
otto otto is offline
 
Join Date: Jan 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First: Sorry for my bad english!

For german friends and all others with the same ?,?,?,? ... problem:

please make the follow steps:

Wegen des Umlautproblems: ?,?,? ...
in der Datei newsview.php suche:
PHP Code:
render_news($rssxxxtrue'news''news'); 
und ersetze mit:
PHP Code:
render_news($rssxxxtrue'news''news');

$trans = array("ü" => "?",
               
";amp;uuml;" => "?",
               
"ö" => "?",
               
";amp;ouml;" => "?",
               
"ä" => "?",
               
";amp;auml;" => "?",
               
"?œ" => "?",
               
"?–" => "?",
               
"?‰" => "?",
               
"é" => "?",
               
"«" => ">",
               
"»" => "<",
               
"?€ž" => "''",
               
"?€œ" => "''",
               
"?Ÿ" => "?",
               
";amp;szlig;" => "?",
               
"ô" => "?",
               
";quot;" => "''",
               );
$code2 strtr($code2,$trans); 
So klapts :up:

@ Modder

Great Mod - thanks! :up:
Reply With Quote
  #111  
Old 02-10-2008, 04:14 PM
evesve evesve is offline
 
Join Date: Jul 2005
Location: Sweden
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

2 more lines for Swedes:
PHP Code:
               "å" => "?",
               
"Å" => "?"
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 04:59 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.15808 seconds
  • Memory Usage 2,349KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete