Remove accents in pings

 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
pasmal
New Poster
New Poster

Joined: 28 Jun 2005
Posts: 17
Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Thu Aug 25, 2005 1:52    Post subject: Remove accents in pings Reply with quote

For any persons using the accentuated characters in your blogs (French, German, ...), you know that when you ping blo.gs or technorati it does'nt work.

This hack removes the accents in pings Smile

Just replace the file "/b2evocore/_functions_pings.php" by this one (unzip it!).

I just added a function "removeAccents". Comments are welcome, and sorry (again) for my english Wink
Back to top
View user's profile Send private message
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Thu Aug 25, 2005 10:34    Post subject: Reply with quote

I posted this to the plugins repository. Let me know if you want anything changed.
_________________
RTFM
Back to top
View user's profile Send private message Visit poster's website
kwa
Hooked :)
Hooked :)

Joined: 21 Jan 2005
Posts: 261
Reputation: 33.2Reputation: 33.2Reputation: 33.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Thu Aug 25, 2005 11:48    Post subject: Reply with quote

In fact, it would have been better if accentuated posts titles would have been automatically converted into their HTML codes equivalents (ie. "é" to "é") However, when adding HTML codes directly, one has to also enter the URL of the post, since the URL contains the HTML codes (but the "&" sign).
_________________
Les perles du chat | Une araignée au plafond | New Development Blog Coming Soon...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pasmal
New Poster
New Poster

Joined: 28 Jun 2005
Posts: 17
Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3Reputation: 76.3 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Fri Aug 26, 2005 7:23    Post subject: Reply with quote

personman wrote:
I posted this to the plugins repository. Let me know if you want anything changed.

Thank you personman! Nothing to change for the moment ;-)

kwa wrote:
In fact, it would have been better if accentuated posts titles would have been automatically converted into their HTML codes equivalents (ie. "é" to "&eacute).

It's a very good idea! I'll do the modification this week end. Thanks! :-)
Back to top
View user's profile Send private message
kwa
Hooked :)
Hooked :)

Joined: 21 Jan 2005
Posts: 261
Reputation: 33.2Reputation: 33.2Reputation: 33.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Fri Aug 26, 2005 11:10    Post subject: Reply with quote

pasmal wrote:
kwa wrote:
In fact, it would have been better if accentuated posts titles would have been automatically converted into their HTML codes equivalents (ie. "é" to "&eacute").

It's a very good idea! I'll do the modification this week end. Thanks! :-)

I've forgotten to talk about trackbacks on blogs using another charset: converting accentuated characters before writing into the database would be fine. Integrating such a WYSIWYG editor as FCKeditor for posts edition makes most accents converted before posting the post. (Those appearing in the alt attribute of an img tags are still unconverted.)

_________________
Les perles du chat | Une araignée au plafond | New Development Blog Coming Soon...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gcasanova
Hooked :)
Hooked :)

Joined: 21 Dec 2004
Posts: 328
Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 2

PostPosted: Fri Feb 02, 2007 10:04    Post subject: Reply with quote

Hi,

Does this work with the newer versions, 1.8+ ?

Thanks
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
kwa
Hooked :)
Hooked :)

Joined: 21 Jan 2005
Posts: 261
Reputation: 33.2Reputation: 33.2Reputation: 33.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Fri Feb 02, 2007 10:15    Post subject: Reply with quote

gcasanova wrote:
Does this work with the newer versions, 1.8+ ?

I haven't tested it yet. I'm migrating from my very old and highly customized b2evolution 0.9.x to the latest b2evolution 1.9.2. I'm going to investigate that issue in the next few weeks. If it doesn't work, I'm going to post a bug, then trying to fix it (in that case, it should be straightforward).

_________________
Les perles du chat | Une araignée au plafond | New Development Blog Coming Soon...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gcasanova
Hooked :)
Hooked :)

Joined: 21 Dec 2004
Posts: 328
Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 2

PostPosted: Fri Feb 02, 2007 10:22    Post subject: Reply with quote

Hi kwa;

If it works or not, will you be posting the results at this forum and this same topic or will it be somewhere else?
I'me very interested in following up this.

Thanks for your reply.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
kwa
Hooked :)
Hooked :)

Joined: 21 Jan 2005
Posts: 261
Reputation: 33.2Reputation: 33.2Reputation: 33.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Fri Feb 02, 2007 10:24    Post subject: Reply with quote

gcasanova wrote:
If it works or not, will you be posting the results at this forum and this same topic or will it be somewhere else?
I'me very interested in following up this.

Wherever I'm going to post the results of my investigations, I'm also going to post here a notice message, so you won't miss it! OK? Very Happy

_________________
Les perles du chat | Une araignée au plafond | New Development Blog Coming Soon...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gcasanova
Hooked :)
Hooked :)

Joined: 21 Dec 2004
Posts: 328
Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66Reputation: 66 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 2

PostPosted: Fri Feb 02, 2007 10:27    Post subject: Reply with quote

Thank You! Very Happy
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board