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)

dboogie2288 04-10-2006 10:02 PM

I'm uninstalling too. No cURL support...hell no support period. I'm off to go find another RSS viewer. :(

saininja 04-10-2006 10:22 PM

Quote:

Originally Posted by Atakan KOC
Open newsview.php;

Find :
PHP Code:

render_news($rssxxxtrue'news''news'); 

Replace :

PHP Code:

render_news($rssxxxtrue'news''news');

$trans = array("İ" => "İ",
               
"ı" => "ı",
               
"ü" => "?",
               
"?Ÿ" => "ş",
               
"?z" => "Ş",
               
"ö" => "?",
               
"ç" => "?",
               
"?‡" => "?",
               
"?Ÿ" => "ğ",
               
"â?" => "‘",
               
"&0220" => "?",
               
"&0214" => "?",
               
"Ğ" => "Ğ",
               
0x3f => ""
               
);
$code2 strtr($code2,$trans); 




i have make it but don`t work ?

http://www.heise.de/newsticker/heise.rdf on this example the ?,?,? are not indicated correctly yet

J.

puertoblack2003 04-10-2006 10:57 PM

Quote:

Originally Posted by Atakan KOC
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

OK,i uninstalled old version and installed new version and still same problem from old
Quote:

Syndicated content not available
anything else to look for.

Holidazed 04-18-2006 08:18 PM

Atakan, this is awesome work. Thank you.

Now what I am looking for is an rss feed hack that posts each new feed into a new thread in the forum of my choice. This way I can have forums for particular feeds and have new posts everyday by the feed and replies by to the feeds by my users.

Ideas?

Code Monkey 04-18-2006 08:47 PM

Quote:

Originally Posted by bitg
Atakan, this is awesome work. Thank you.

Now what I am looking for is an rss feed hack that posts each new feed into a new thread in the forum of my choice. This way I can have forums for particular feeds and have new posts everyday by the feed and replies by to the feeds by my users.

Ideas?

Articlebot?

Holidazed 04-18-2006 09:09 PM

Quote:

Originally Posted by JumpD
Articlebot?

I was looking at a that and did not see it prior to my post. I am having trouble with it, but I am working that out. Thanks.

Krose 04-19-2006 08:53 AM

working on my site.. thanx a lot! *clicked install*

puertoblack2003 04-21-2006 12:33 AM

any luck with this hack apparently there's no support i still get this
Quote:

Syndicated content not available
i wish if this coder put stuff up can support it other wise don't put it up..i mean i know we have life outside cyber space but wow help those that are noobs to get this right and flowing..;)

alsinda 04-21-2006 10:55 PM

Nice Job!

djwins 04-22-2006 03:10 PM

Quote:

Originally Posted by Tralala
Would love to see the option for a "Post this news story" link or pulldown option... the user could then easily generate a new post to foster discussion with friends. (Perhaps each feed could have a preferred forum in which these news posts would go. Or perhaps the user could choose which forum.) This would encourage folks to pick and choose interesting news stories to discuss, and would integrate this feature back into the forum concept all the more. Just brainstorming...

That would be hot, but probably hard to add as you need an icon/button next to every news item.

Some other feature requests:
*list sources by alphabetical order
*users can create their own list of subscribed sources
*forum jumpbox on page

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

Mysticales 08-14-2006 10:30 PM

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.

Mysticales 08-18-2006 03:59 AM

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?

naeemakhtar 08-18-2006 04:27 PM

pls delete...

mholtum 08-23-2006 02:16 AM

is this going to be converted for 3.6?

liljimmy 09-24-2006 02:42 AM

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!!! :cool:

jyajay 11-12-2006 01:00 PM

Quote:

Originally Posted by mholtum
is this going to be converted for 3.6?

Doesn't need to, works fine with 3.6.3 :)

Vehbi KOC 07-30-2007 01:21 PM

eline sağlık Atakan:)
thank you....

IRCMedya 10-12-2007 01:47 PM

S?persin birader ;)

Thank you.

otto 02-03-2008 10:32 AM

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:

evesve 02-10-2008 04:14 PM

Thanks!

2 more lines for Swedes:
PHP Code:

               "å" => "?",
               
"Å" => "?"



All times are GMT. The time now is 10:33 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.03248 seconds
  • Memory Usage 1,928KB
  • 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
  • (11)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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