vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Atakan Rss Feeds Views 2.00 (https://vborg.vbsupport.ru/showthread.php?t=108400)

djwins 04-24-2006 01:49 PM

I have a problem with
”™ displaying instead of '

I tried this fix here but it didnt work for this:
https://vborg.vbsupport.ru/showpost....7&postcount=82

liljimmy 06-13-2006 01:06 PM

Anybody have any luck fixing the "Syndicated content not available" message after installing this hack? Like a previous poster mentioned, my host is Dreamhost.

Tralala 06-17-2006 10:20 PM

liljimmy, it's not gonna work, until Atakan updates his hack to use the safer cURL library instead.

http://wiki.dreamhost.com/index.php/Allow_url_fopen

lexx27 07-20-2006 07:20 PM

Is there a way to change the rss encoding output (not utf-8) ?

yilmazcetin 07-21-2006 01:32 PM

Quote:

Originally Posted by Atakan KOC
Hi kenanulas.

Turkie rss list

Sabah gazetesi
http://www.sabah.com.tr/rss/sondakika.xml

Anadolu Ajansı
http://www.aa.com.tr/rss/ajansguncel.xml

Radikal T?m Haberler
http://www.radikal.com.tr/radikal.xml

Ajansspor Formula 1
http://www.ajansspor.com/rss/formula.xml

Ajansspor Futbol
http://www.ajansspor.com/rss/futbol.xml

Ajansspor Motor Sporları
http://www.ajansspor.com/rss/motorsporlari.xml

Ajansspor Tenis
http://www.ajansspor.com/rss/tenis.xml

Ajansspor Voleybol
http://www.ajansspor.com/rss/voleybol.xml



1 ka? tanesi işine yarar sanırım. Elimde genelde spor ağırlıklı linker var :)


arkadaslar yardim edin bunlari nereye ekleyecegiz bende cikmadi hepsini yaptim sayfa cikiyor bos
admin cpanleldede cikanin icnde sadece su var aktifte yaptim ama su yazi var

<p>Sorry, the board is unavailable at the moment while we are testing some functionality.</p>
<p>We will be back soon...</p>

yilmazcetin 07-21-2006 03:33 PM

hepsini tam kurdum ama c panele gelenide aktif ettim ama sunlari nereye yazacagim
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
c panele gelmedi yazmak icin
tsk cevabiniz iicn

Lalib 07-24-2006 08:31 AM

Quote:

Originally Posted by yilmazcetin
hepsini tam kurdum ama c panele gelenide aktif ettim ama sunlari nereye yazacagim
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
c panele gelmedi yazmak icin
tsk cevabiniz iicn

yılmaz kardesim vbulletin secenekler -> rss feed -> add kısmından ekliyceksin adresleri :)

I am LoNeLY...

www.1n1n.com 07-26-2006 12:06 PM

Is there a way to change the rss encoding output (not utf-8) ?

hex1848 08-12-2006 01:30 AM

Quote:

Originally Posted by liljimmy
Anybody have any luck fixing the "Syndicated content not available" message after installing this hack? Like a previous poster mentioned, my host is Dreamhost.

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);



puertoblack2003 08-13-2006 06:09 PM

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);




finally some support for that issue and yes it's working on my end;) prpz to you my friend..:D


All times are GMT. The time now is 02:10 AM.

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.01466 seconds
  • Memory Usage 1,821KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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