Update for serendipity_event_flattr wanted
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Update for serendipity_event_flattr wanted
Garvin, please, spent some time in order to update Flattr-plugin to latest JS API v. 0.6. On vague rumors, the previous versions or no longer supported already or will be not supported soon
Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Update for serendipity_event_flattr wanted
Hi!
I am quite sure that the current implementation of flattr will not go away so quickly.
I do not do a lot with flattr, I do not have time to spend on this. I will happily commit other people's contributions though! But in the next few weeks and months, I will most probably not be able to put any time into this - sadly I gotta pick my battles due to limited time
Regards,
Garvin
I am quite sure that the current implementation of flattr will not go away so quickly.
I do not do a lot with flattr, I do not have time to spend on this. I will happily commit other people's contributions though! But in the next few weeks and months, I will most probably not be able to put any time into this - sadly I gotta pick my battles due to limited time
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Update for serendipity_event_flattr wanted
I'll can to do some fixes in backend_display, but not adding data into head - for this task I'll happy to see anybody help
At least one quick-fix is needed now - according to Flattr flattr_dsc must not contain any HTML, but strip_tags() skips at least nbsp
and we have to use instead of
expanded version
Diff is
At least one quick-fix is needed now - according to Flattr flattr_dsc must not contain any HTML, but strip_tags() skips at least nbsp
and we have to use instead of
Code: Select all
$flattr_dsc = strip_tags($flattr_dsc);Code: Select all
$flattr_dsc = str_replace(' ',' ',strip_tags($flattr_dsc));Code: Select all
--- E:/serendipity_event_flattr.php Пн янв 10 10:40:34 2011
+++ Z:/serendipity_event_flattr.php Вт июн 7 16:27:56 2011
@@ -287,7 +287,7 @@
if (empty($flattr_dsc)) {
$flattr_dsc = $this->_addslashes($eventData['body']);
}
- $flattr_dsc = strip_tags($flattr_dsc);
+ $flattr_dsc = str_replace(' ',' ',strip_tags($flattr_dsc));
if (empty($flattr_cat)) {
$flattr_cat = $this->get_config('flattr_cat');Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Update for serendipity_event_flattr wanted
Hi!
is not "HTML" it is a entity...even if replacing that single one helps for that instance, other umlauts and special characters would still not work. Removing HTML entities would result in entry bodies with invalid spelling, so IMHO this is an issue where flattr needs to make changes so that HTML entities are allowed. Stripping tags is not a problem of course.
Regards,
Garvin
is not "HTML" it is a entity...even if replacing that single one helps for that instance, other umlauts and special characters would still not work. Removing HTML entities would result in entry bodies with invalid spelling, so IMHO this is an issue where flattr needs to make changes so that HTML entities are allowed. Stripping tags is not a problem of course.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Update for serendipity_event_flattr wanted
Yes, I know, and I'm sure you understood, what I wanted to say is not "HTML" it is a entity
Probably, but maybe they means not so restrictive rules, because (small quote from site, bolded by me)Removing HTML entities would result in entry bodies with invalid spelling, so IMHO this is an issue where flattr needs to make changes so that HTML entities are allowed.
Last sentence can be read as "We remove all HTML (pure HTML-tags) before publishing" and in this case suggested removing nbsp on client-side may be overkilltitle and description will be used to describe your thing on Flattr.com so choose them wisely
...Neither of them support HTML, with the exception of the BR character which, in the case of descriptions, will be converted into newlines before the HTML is removed.
Quis custodiet ipsos custodes?