vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   ’ - RSS Issue (https://vborg.vbsupport.ru/showthread.php?t=229880)

Gamelobby 12-09-2009 10:33 PM

’ - RSS Issue
 
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..
Quote:

Quote:

Originally Posted by calorie (Post 1228858)
To be rid of miscellaneous <font> and &rsquo; type things, add a plugin at the calendar_getday_event hook with the following code:
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

Quote:

Originally Posted by Gamelobby (Post 1928475)
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
Quote:

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.


All times are GMT. The time now is 01:45 PM.

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.01283 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete