Recent Topics

1 Jun 03, 2008 13:47    

My b2evolution Version: Not Entered

I want to add links for wikio, digg, etc... etc... right after a post.
Where should I add the code?
I think it is in the _item_content.inc.php file, right after thefollowing code:


		// Display Item footer text (text can be edited in Blog Settings):
		$Item->footer( array(
				'mode'        => '#',				// Will detect 'single' from $disp automatically
				'block_start' => '<div class="item_footer">',
				'block_end'   => '</div>',
			) );


Could you confirm?
Is there an easier way to do it?

2 Jun 03, 2008 18:17

Was it such a stupid question? :(

3 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 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 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 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?

8 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.


Form is loading...