1 captainbiz Jun 03, 2008 13:47
3 yabba Jun 03, 2008 18:26
Probably better to make the digg stuff a widget so you can insert it into a container but ..... that's about where I'd put it if ;)
¥
4 captainbiz Jun 15, 2008 09:56
B2evo 2.4.1
I found an existing plugin in the end, available there: http://www.beatease.com/web-design.php/b2evolution-plugins/social-bookmarks
It works well but there is one thing I can't figure out.
In the below code, b2evo doesn't resolve the urlencode part:
<a href="http://www.mister-wong.com/addurl/?bm_url=$permanent_url$&bm_description=<?php echo urlencode($title$); ?>&plugin=soc" target="_blank"><img src="http://blog.jecreemaboite.fr/images/misterwong.gif"></a>
And the URL comes out as:
http://www.mister-wong.com/addurl/?bm_url=http://blog.jecreemaboite.fr/index.php/2008/06/13/odori-restaurant-coreen-paris&bm_description=<?php echo urlencode(Odori : Restaurant Coréen à Paris); ?>&plugin=soc
The underlying issue is that French accent caracters are not rendered correctly on some of the target websites.
Any idea on a potential fix?
5 yabba Jun 15, 2008 11:18
Crack open the plugin file and change this line ( 75 )
$replace = array( $Item->get_permanent_url(), urlencode( $Item->title ) );
¥
6 captainbiz Jun 15, 2008 12:53
I modified the line and re-loaded the file but I still have the encoding issue.
Do I need to flush the cache somewhere?
7 yabba Jun 15, 2008 13:13
You can clear the cache in admin > tools > misc > delete pre-rendered cache
¥
8 captainbiz Jun 21, 2008 17:12
¥åßßå wrote:
You can clear the cache in admin > tools > misc > delete pre-rendered cache
¥
It still doesn't work. But now I found some sites where it works and some sites where it doesn't. So, I am thinking it is not the software which is the issue but the target site.
9 austriaco Aug 29, 2008 15:51
Check out the [url=http://forums.b2evolution.net/viewtopic.php?t=16263]"ShareThis" plugin [/url], which I wrote to automate this kind of things.
Was it such a stupid question? :(