PDA

View Full Version : Atakan Rss Feeds Views 2.00


Atakan KOC
02-18-2006, 10:00 PM
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

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

<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

https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=108400)

Ugur CETIN
02-19-2006, 06:52 PM
Very nice hack mate.

Thanks.

OzgurcaN
02-19-2006, 06:54 PM
Mükemmel teşekkürler atakan .

thank you....

Reminder
02-19-2006, 07:22 PM
Thanks.

Tralala
02-19-2006, 07:23 PM
Cool, off to try it now. GREAT work, thanks so much for the self-working version!

This solves one of the biggest problems with RSS feed posters... too much noise that users end up tuning out. Not enough "filtering" going on. This provides the facility for news, to foster discussion, and is a nice diversion for visitors too!

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...

soulface
02-19-2006, 07:35 PM
Atakan thx man... wd :p

Tralala
02-19-2006, 07:48 PM
Installed but not working. :disappointed: I tried both sample feeds (Yahoo and Fox News) and each gives me this message:

"Syndicated content not available"

I had similar problems when I tried Inferno RSS, specifically for this module (before the self-working version was available.) Others too; see this post (https://vborg.vbsupport.ru/showpost.php?p=850179&postcount=469). Perhaps it's got something to do with how my host has disabled allow-url-fopen (http://wiki.dreamhost.com/index.php/CURL)?

I have cURL enabled and working... in fact, ArticleBot works perfectly for me.

Would love to get this working, I've been anxious to see something like this for a while!

thedvs
02-19-2006, 09:06 PM
awesome, perfect and very easy to manage.
thanks alot :)

edit: question...
anyway to get it so the feeds list in the order you add them and not by alphabetical feed name order?

docvader
02-20-2006, 03:02 AM
Alphabetical is nice, makes it easy to peruse the list if you have a lot of them. I think this hack is extremely well done. Installed, working great on my forum. I assume that the difference between this one and the Inferno version, is that this one does NOT make new threads/posts...?

Nice job. Very well done.

Code Monkey
02-20-2006, 03:17 AM
Nice, but why did you release the same hack twice under two different names?

docvader
02-20-2006, 03:33 AM
That's what I'm trying to figure out (did not try the Inferno edition, I suspect that you use the inferno hack to add your rss feeds, and therefore, that hack might automatically post new threads, but, I'm not sure).

Anyone figure this out yet?

Aaron RV
02-20-2006, 03:45 AM
Work fine but is not all the news visualized opening a new window, is it possible to do something?


thanks.

Tralala
02-20-2006, 05:45 AM
Nice, but why did you release the same hack twice under two different names?

The other one is based off (and requires) Inferno RSS, so it creates posts in the forums as well as gives you the RSS Viewer.

This one is a "standalone" version that is apparently still based off the same Inferno RSS code, but doesn't require its installation... this way you can still have the RSS Viewer, but no posts being made automatically. Easier to install if all you want is the Viewer.

Alas, neither work on my host. And yet ArticleBot does. <shrug>

Omranic
02-20-2006, 12:25 PM
very nice
but when storing Style CSS in file system the RSS News page has no customisations & no style CSS effect at all

any fix ?

Code Monkey
02-20-2006, 01:34 PM
The other one is based off (and requires) Inferno RSS, so it creates posts in the forums as well as gives you the RSS Viewer.

This one is a "standalone" version that is apparently still based off the same Inferno RSS code, but doesn't require its installation... this way you can still have the RSS Viewer, but no posts being made automatically. Easier to install if all you want is the Viewer.

Alas, neither work on my host. And yet ArticleBot does. <shrug>

Ah, no thanks then.

HaYLaZ
02-20-2006, 05:26 PM
thanks friend very good hack
teşekk?rler dostum:D

thedvs
02-20-2006, 10:08 PM
Is it possible to use categories next time? so that news feeds are in news feed heading? etc

Barakat
02-21-2006, 12:21 AM
what to say ? Great Work indeed installed. thx

Floris
02-21-2006, 10:13 AM
Thanks! Pretty cool idea! :D Hack of the month nomination perhaps? :)

Tralala
02-21-2006, 12:14 PM
Installed but not working. :disappointed: I tried both sample feeds (Yahoo and Fox News) and each gives me this message:

"Syndicated content not available"

I had similar problems when I tried Inferno RSS, specifically for this module (before the self-working version was available.) Others too; see this post (https://vborg.vbsupport.ru/showpost.php?p=850179&postcount=469). Perhaps it's got something to do with how my host has disabled allow-url-fopen (http://wiki.dreamhost.com/index.php/CURL)?

I have cURL enabled and working... in fact, ArticleBot works perfectly for me.


Any help getting this working on my server?

kenanulas
02-22-2006, 09:25 AM
you have given rssfeed list below
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

please can you give me more rss ,
arkadaşım ?ncelikle seni tebrik eder kutlarım ben de yukarda verdiğin iki rss adresinden başka yok t?rk gazetelerin rsslerini yazabilirmisin l?tfen

Atakan KOC
02-22-2006, 06:41 PM
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 :)

jmacieira
02-22-2006, 07:22 PM
hi

I dont upgrad to VB3.5.4, i only install the plugin for security.

it will be necessary to do this update?

tank´s

Tralala
02-22-2006, 09:24 PM
Any help getting this working on my server?


Okay, how about just some confirmation that this hack does, in fact, use the PHP option allow_url_fopen? My (otherwise very permissive) host has identified this function as a security risk and has disabled it (http://wiki.dreamhost.com/index.php/Allow_url_fopen).

And so I am guessing that's why this hack doesn't work for me.

Now, I've asked for any feedback so that I may get it working. Ideally this hack would use cURL or one of the safe workarounds listed in the above wiki article. You know, to eliminate the possibility of the security risk it apparently presents. And also to allow this hack to work for me finally. :nervous:

Barring that, I'd be happy to compile my own version of PHP with allow_url_fopen enabled... as long as I get some response that this function is required for Atakan's hack to work.

Please? Anyone?

KW802
02-22-2006, 09:50 PM
What's with JumpD's ArticleBot files being in there?

Tralala
02-22-2006, 10:32 PM
What's with JumpD's ArticleBot files being in there?

Even weirder is that those files weren't included in the initial upload. I reuploaded, hoping for some kind of fix/update, but this hack still doesn't work for me. So really, what's changed since then?

Atakan, if you're using any of JumpD's hard ArticleBot work, you've got to clear it with him first. Yes, integration with ArticleBot would rock my world, since it works great for me (while Inferno, and your hack, currently do not...) but respect for JumpD and his copyright is for more important!

Let me say that your hack is very cool and really admired. I wish I could get it to work. I'm assuming the inclusion of JumpD's ArticleBot files in your 2nd upload was just a mistake? Therefore, some communication would be appreciated right about now.

Code Monkey
02-23-2006, 02:18 PM
I have still recieved no responce from my PM to this person. This is a scary thing to me since (not saying this is the case) anyone could theoretically include altered files in a hack for another hack and users can unwitingly upload them as a group and break another hack. Or they could include malicious code and guess who gets the blame.

Tralala
02-23-2006, 02:32 PM
and users can unwitingly upload them as a group and break another hack.

Yeah, I hadn't thought about that. If I didn't know what I was doing, I'd have followed the instructions here and installed the included files... which would overwrite my the existing installation of two ArticleBot files.

Code Monkey
02-23-2006, 02:40 PM
Brad has assured me that the author has been contacted and has removed my code. However, he (the author) never replied to my respectful PM.

voleibolmurcia
02-23-2006, 03:19 PM
Its possible use this hack with spanish news? If the reply is yes, anyone knows where or how i find news in my language?

Thank u.

Atakan KOC
02-23-2006, 08:06 PM
spanish news list;

http://www.syndic8.com/news/es

voleibolmurcia
02-24-2006, 01:21 AM
Thanks Ataka_KOC ;)

Your hack es very nice, i know that my users will like a lot of it. ;)

shiva
02-24-2006, 05:03 AM
I would say the same thing, nice and thanks. Think it's a bit better for my members, though I like ArticleBot a lot

holyboy
02-24-2006, 06:20 AM
hi atakan

i get error messeage

Syndicated content not available

hata mesajı alıyorum senin verdigin rss ?rneklerini girdim bi t?rl? g?remiyorum

sebebi ne olabilir
http://1numara.org/newsview.php?do=4
adresinden bakabilirsin

Atakan KOC
02-24-2006, 08:26 AM
Bunu vermesinin sebebi şu. Karşı tarafdan bilgileri alamaması veya hatalı bir giriş yapman.

Mesela; bu sadece rss okuyucu. Ama atom ları okumaz. Zaten atom lar pekde yaygın değil. Yanlız Türkiyede ciddi şekilde sadece büyük gazeteler RSS leri güncel tutmakda.

Tralala
02-24-2006, 02:12 PM
I had the same error and I posted about it above, twice.

Now this guy comes along, asks the same question as his first ever post, and you answer it quickly, in another language?

Am I being punk'd?

<sigh>

What language is your response in, please, so that I may try to find an online translator?

shiva
02-24-2006, 04:59 PM
hi atakan

i get error messeage

Syndicated content not available

hata mesajı alıyorum senin verdigin rss ?rneklerini girdim bi t?rl? g?remiyorum

sebebi ne olabilir
http://1numara.org/newsview.php?do=4
adresinden bakabilirsin

Err, that would be because that website timed out when you clicked the link here? Don't think this program will display a RSS if the link it points to doesn't work.

Tralala
02-26-2006, 06:43 AM
Yeah, I'm definitely being punk'd.

Alien
03-01-2006, 12:10 AM
This doesn't work for those saving CSS as files, can you fix this?

Rickie3
03-01-2006, 03:10 AM
thanx *installed* my members are sure to be happy with this one

Angelus
03-01-2006, 06:19 AM
hi

it's a very cool feature, but i have problems with representation from ? ? ? look here:
http://bitcenter.game-server.cc/www/newsview.php?do=6

Tralala
03-07-2006, 06:06 AM
<a href="http://www.5kere5.com/news.php?do=29" target="_blank">http://www.5kere5.com/news.php?do=29</a>

Demo doesn't work anymore.

Atakan KOC
03-07-2006, 09:19 PM
Demo moved

http://www.bizimuydu.com/forum/news.php?do=22

Atakan KOC
03-10-2006, 09:39 AM
Hello again everybody :)
Finally I have some time to read all your replies.

First of all you are so important for me. ( Unfortunately, Tralala said that he has being punk'd ) :( My main language is Turkish.

Now, I am just making some little installments. I think the problem is :

Unix and windows servers compile some characters differently. For example the characters like ?,Ş,?,?. I am working on it.

Im trying to manage CSS problem. I will publish the fixed version as soon as possible.

See you guys :)

Alien
03-17-2006, 01:50 AM
I can't wait to see the multiple-styles fix! Thanks so much for your continued hard work on this!

Atakan KOC
03-25-2006, 07:23 PM
New version relased

Reminder
03-25-2006, 07:30 PM
Thanks ;)

Alien
03-25-2006, 07:40 PM
Hey, great to see continued work on this project..

May I ask, have the "multiple-styles" problem been corrected now? :)

I don't see a list of changes in the new version..

Rickie3
03-25-2006, 09:23 PM
with the update do you upload all the files then import the product??? or just apply the new product??

DrewM
03-25-2006, 10:17 PM
Ahh... I get the fowling error after upgrading:
Database error in vBulletin 3.5.4:

Invalid SQL:
select * from newsview order by orderid;

MySQL Error : Unknown column 'orderid' in 'order clause'
Error Number : 1054

jmacieira
03-25-2006, 11:44 PM
opsss :confused:

I have the samme error

Database error in vBulletin 3.5.3:

Invalid SQL:
select * from newsview order by orderid;

MySQL Error : Unknown column 'orderid' in 'order clause'
Error Number : 1054
Date : Sunday, March 26th 2006 @ 02:40:14 AM
Script : http://www.teste.com/newsview.php

DrewM
03-26-2006, 12:07 AM
I have fixed it just go to php my admin and add a field called orderid after name.

jmacieira
03-26-2006, 12:15 AM
I am inexperienced :confused:

I don't know how to do that

Please Atakan KOC

Can you correct it in the new rev?

puertoblack2003
03-26-2006, 12:31 AM
opsss :confused:

I have the samme error

i have same issue can i get fix for it i know we have to add table...

klaush
03-26-2006, 07:36 AM
Another one:

MySQL-Fehler : Table 'xxx.vb3_newsview' doesn't exist

DrewM
03-26-2006, 09:30 AM
Well heres the query to run:
ALTER TABLE `newsview` ADD `orderid` INT( 10 ) DEFAULT '0' NOT NULL AFTER `feed_name` ;

puertoblack2003
03-26-2006, 12:44 PM
Well heres the query to run:
ALTER TABLE `newsview` ADD `orderid` INT( 10 ) DEFAULT '0' NOT NULL AFTER `feed_name` ;


Thanks for info , but after that some how gave me an error : An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'puertotech.newsview' doesn't exist

hope can be resovled

DrewM
03-26-2006, 03:11 PM
This erro says your news veiw table doesn't exist. Try copying the news view table name and replacing it.

jmacieira
03-29-2006, 02:31 PM
Hi

This new version relased dont work for me.

fabbry
03-29-2006, 09:18 PM
Dont work :confused:

Database error in vBulletin 3.5.4:

Invalid SQL:
select * from newsview order by orderid;

MySQL Error : Table 'xxxxx.newsview' doesn't exist
Error Number : 1146

Also give me an error when import product-1901

DrewM
03-30-2006, 11:00 PM
the error is the table does not exist just run the fowling sql query:
CREATE TABLE `newsview` (
`feed_id` int(15) NOT NULL auto_increment,
`feed_name` varchar(255) NOT NULL default '',
`orderid` int(10) NOT NULL default '0',
`feed_location` varchar(255) NOT NULL default '',
PRIMARY KEY (`feed_id`),
KEY `feed_name` (`feed_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

fabbry
03-31-2006, 09:03 AM
Can be dangerous for database?!
Need backup first?

puertoblack2003
04-01-2006, 12:17 AM
the error is the table does not exist just run the fowling sql query:
CREATE TABLE `newsview` (
`feed_id` int(15) NOT NULL auto_increment,
`feed_name` varchar(255) NOT NULL default '',
`orderid` int(10) NOT NULL default '0',
`feed_location` varchar(255) NOT NULL default '',
PRIMARY KEY (`feed_id`),
KEY `feed_name` (`feed_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;


man i was about to give it up but thanks it works...some how they have to fix issue apparently when adding import with sql...***installed**:banana:

puertoblack2003
04-01-2006, 12:39 AM
ok installed and all but i'm facing what the other guys went through i used the rss provided but is not showing it is saying Syndicated content not available how can i resolve this problem:cross-eyed:

Tralala
04-01-2006, 02:12 PM
ok installed and all but i'm facing what the other guys went through i used the rss provided but is not showing it is saying how can i resolve this problem:cross-eyed:

I posted the same issue, got no answer.

Review my posts above, with specific questions about how this was coded to see if I could ferret out the cause... (I think it has to do with PHP option allow_url_fopen being required; and some webhosters disable this for security purposes.)

Atakan hasn't responded so I'm just guessing he doesn't know the answer.

puertoblack2003
04-02-2006, 03:10 AM
I posted the same issue, got no answer.

Review my posts above, with specific questions about how this was coded to see if I could ferret out the cause... (I think it has to do with PHP option allow_url_fopen being required; and some webhosters disable this for security purposes.)

Atakan hasn't responded so I'm just guessing he doesn't know the answer.

will i hope some one can help us and get the answer it's no sense posting up a hack and can get no support for it..:tired:

puertoblack2003
04-04-2006, 10:37 AM
ok installed and all but i'm facing what the other guys went through i used the rss provided but is not showing it is saying how can i resolve this problem:cross-eyed:


any quick fix to this issue yet?

puertoblack2003
04-05-2006, 01:41 PM
Bump Anyone:surprised:

jmacieira
04-05-2006, 09:07 PM
I also continue the wait :tired:

Atakan KOC
04-09-2006, 01:42 PM
fixed !!!

Please 2.00 previous version lift and again install...

MThornback
04-09-2006, 03:01 PM
The SQL error seems to be because the install xml fails to install a row in the table...the table does exist tho

jmacieira
04-09-2006, 04:41 PM
Remove...and clik uninstall

Too many errors

soulface
04-09-2006, 07:33 PM
well the SQL prob still exist if you update the product. what i did it, i completely removed the old version (which was 1.0 i think, i didn't updated to 2.0), then reinstalled this new version. so its working fine so far...

saininja
04-09-2006, 11:27 PM
Probs with <?xml version="1.0" encoding="utf-8" ?>

with ?,?,?

example http://www.heise.de/newsticker/heise.rdf

J.

Alien
04-09-2006, 11:31 PM
I can't get this to work.. I just get blank white pages.. Is this compatible with php 5.1.x?

puertoblack2003
04-10-2006, 11:23 AM
so what's the scoop with the upgrade do we uninstall the old version and import new or overwrite old? no tutorial on this

Atakan KOC
04-10-2006, 05:41 PM
Probs with <?xml version="1.0" encoding="utf-8" ?>

with ?,?,?

example http://www.heise.de/newsticker/heise.rdf

J.
Open newsview.php;

Find :
render_news($rssxxx, true, 'news', 'news');


Replace :

render_news($rssxxx, true, 'news', 'news');

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

Atakan KOC
04-10-2006, 05:58 PM
Remove...and clik uninstall

Too many errors
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

Atakan KOC
04-10-2006, 05:59 PM
It is not compatible with php 5.1.x

Alien
04-10-2006, 08:54 PM
Okay, appreciate the heads up.. I look forward to it being compatible eventually.. I know AboutToday hack is but it's got way more stuff than I need and I don't like the layout of it in rss-only usage so.. I'll keep an eye on yours. ;)

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
Open newsview.php;

Find :
render_news($rssxxx, true, 'news', 'news');


Replace :

render_news($rssxxx, true, '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
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 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
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
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 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
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.php?p=946387&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
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
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
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):

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($ch, CURLOPT_URL, $feed_url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
$xml = curl_exec ($ch);
curl_close ($ch);

if (!xml_parse($xml_parser, $xml, True))
{
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):


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($fp, 4096))
xml_parse($xml_parser, $data, feof($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
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):

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($ch, CURLOPT_URL, $feed_url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
$xml = curl_exec ($ch);
curl_close ($ch);

if (!xml_parse($xml_parser, $xml, True))
{
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):


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($fp, 4096))
xml_parse($xml_parser, $data, feof($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
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):

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($ch, CURLOPT_URL, $feed_url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
$xml = curl_exec ($ch);
curl_close ($ch);

if (!xml_parse($xml_parser, $xml, True))
{
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):


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($fp, 4096))
xml_parse($xml_parser, $data, feof($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
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:
render_news($rssxxx, true, 'news', 'news');

und ersetze mit:
render_news($rssxxx, true, '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:
"å" => "?",
"Å" => "?",