PDA

View Full Version : Problem with Newstopica


tariqali
01-02-2006, 11:40 PM
hi,

I just installed newstopica and setup categories and added few feeds. One problem I am having with this feed :
http://feeds.searchenginewatch.com/sewblog

I am getting broken images with the title and some in the description. I checked the PLD_LINK table and noticed the description is cutoff in the middle of an html code. this is an example:

Content visible to registered users only.

I think this is because the description is limited to 255.

Let me know if you need anything else to help your diagnose this problem.

thanks.

yktan
01-03-2006, 02:36 AM
Hi tariqali,

You are right, the description field is of 255 characters. Do you want the change that to a unlimited size? IMHO, it is bad for RSS feeds to include HTML tags like <IMG> in the description because this can really mess up the layout of your page.

Regards,
yktan

tariqali
01-03-2006, 04:02 PM
what other solution do you have? importing part of the code is missing up my pages too. What about converting the field to unlimited and stripping html when importing the feed? can this be done?

thanks.

David
01-03-2006, 05:07 PM
I might note that if we go to more than 256 characters it brings in many other issues. One of those is server space. Let's suppose you have 100 feeds bringing in 10 posts per day. That's 365,000 per year. Then we have the problem of being able to search the description field efficiently. I think this could be customized to fit your needs, but I just want to point out there would be some "implications". What do you think?

tariqali
01-03-2006, 06:45 PM
Content visible to registered users only.

I am fine with 256 characters. the problem I would like to fix is stripping the html code from the feeds. This is creating a problem for me because I am not only getting broken images along with the post, it's also affecting the following posts too and causing broken links. Also in the admin area, I can't view the links anymore.

If we can strip away the html and clean up the feeds then this will solve the problem.

David
01-04-2006, 04:30 AM
Understood. I will do my best to do something about this. If you don't get an answer in a couple of days, feel free to bug me a little.
Thanks,
David

yktan
01-05-2006, 02:41 AM
Hi tariqali,

The easiest way to solve your problem is to disable all HTML tags in the link description. Here's how to do it:

Open index.php
Find:
Content visible to registered users only.

Replace with:
Content visible to registered users only.

Does that help your problem?

Regards,
York Kie

lama69
01-07-2006, 07:39 PM
Nice solution but does not work with special characters. A é becomes &eacute; for example... Not very nice on screen :)