PDA

View Full Version : ’ - RSS Issue


Gamelobby
12-09-2009, 10:33 PM
I've searched all over & there doesn't seem to be any good answers anywhere so i am wondering what everyone does..?
Do you all just edit each post, or is the answer out there, but hard to find.?

To fix this issue:

’ = '
“ = "
” = "
• = this dot


Taken from 3.6 thread..

To be rid of miscellaneous <font> and &rsquo; type things, add a plugin at the calendar_getday_event hook with the following code:

// this replaces &amp;whatever; with &whatever; in the calendar event
$eventinfo['event'] = preg_replace('/&amp;(\S+);/iU', '&\1;', $eventinfo['event']);

// this removes <whatever> tags from showing in the calendar event
$eventinfo['event'] = preg_replace('/&lt;.*&gt;/iU', '', $eventinfo['event']);

Note that this code does not modify entries in the database table but instead affects what is shown on screen for the calendar event.

Would this same code or something similar work to fix the same problem from RSS feeds into regular posts.?

Lynne
12-09-2009, 10:53 PM
I don't think I've never seen this issue come up on my site so it's never been an issue thus I don't do anything about it. You can always try the fix and see if it works.

Gamelobby
12-10-2009, 05:46 PM
I'm scared.. lol
The code is for the calendar, so im guessing it would need some editing, & i dont know enough to attempt that.

But if you do a search for &rsquo; you will find a few threads of others asking about it. :)
I'm sure there are many more threads, but just not with that text in it.


Lynne, do you use RSS feeds.?
And if so, you dont ever have this issue.?

Lynne
12-10-2009, 06:10 PM
Lynne, do you use RSS feeds.?
And if so, you dont ever have this issue.?
Just three or four, but I have never noticed this issue, no. However, I also don't look at the rss posts all the time, but none of my users have said anything about the issue either.

Gamelobby
12-11-2009, 06:08 AM
Hmm.. Interesting. I wonder what causes it.

Gamelobby
05-01-2010, 09:28 PM
So, any idea on where i would add this code to try it out.?

Maybe in the "Body Template" of the RSS feed.?
or...?


Also found this on vB.com
The RSS Feed itself http://www.example.com/feed?cat=9... seems to show the apostrophe as an apostrophe.

So, since the feed itself look good and it looks good in WordPress, the problem seems to be with vBulletin reading the feed.