Recent Topics

1 Jun 25, 2009 01:25    

My b2evolution Version: Not Entered

Hi,

I tried to install ShareThis Widget on my b2evolution blog (savethenews.us).

I want to have the widget on every blog post, so I need to add a piece of code to a skin container.
I followed the instructions on http://manual.b2evolution.net/Sharethiswidget_plugin

and installed the code. But the SharethisWidget didn't appear on my blog, instead the code showed up in the blog.

I'm using a skin called 'coolblue'. What should I do? Maybe I installed the code to a wrong spot in main. index- file?

I asked ShareThisWidget support to help me but they said they don't because b2evolution is a thirdparty thing.

Thanks a lot for your help!

best,
Tanja[/url]

2 Jun 25, 2009 02:58

you havent pasted it as it is right ?

// ------------------------- "Post Footer" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container( NT_('Post Footer'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '',
'block_end' => '',
) );
// ----------------------------- END OF "Post Footer" CONTAINER -----------------------------

i assume you know you had to add php tags to it so that it'd look like this:

<?php // Display container and contents:
skin_container( NT_('Post Footer'), array(
		// The following params will be used as defaults for widgets included in this container:
		'block_start' => '',
		'block_end' => '',
	) );?>

other than that i couldnt guess of any other reasons why it would not render

to be precise, after adding the above green lines, you will have a new container called 'Post Footer' under your skin settings (if you still dont have it there go to blog settings > skins > manage skins > reload containers), than the final step add the widget into this container

3 Jun 25, 2009 17:11

you need to add a container on post foot, as tilqicom said ;)

4 Jun 26, 2009 09:16

Thanks, but fpr some reason I am not able to make it work.

The code looks like this after I have added the new container. I really don't know how to proceed. I'd appreciate a lot if somebody finds out where the problem is.

<?php
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'feedbacks',
'link_before' => '',
'link_after' => ' &bull; ',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_title' => '#',
'use_popup' => false,
) );
?>
// ------------------------- "Post Footer" CONTAINER EMBEDDED HERE --------------------------
<?php
// Display container and contents:
skin_container( NT_('Post Footer'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '',
'block_end' => '',
) );
?>
// ----------------------------- END OF "Post Footer" CONTAINER -----------------------------
<?php // ------------------------- "Post Footer" CONTAINER EMBEDDED HERE --------------------------
$Item->edit_link( array( // Link to backoffice for editing

5 Jun 26, 2009 14:57

after adding the above lines, you will have a new container called 'Post Footer' under your skin settings (if you still dont have it there go to blog settings > skins > manage skins > reload containers), than the final step add the widget into this container

that part is ok.now you should proceed with adding the widget.
have you done these steps ?

7 Jul 27, 2009 23:12

Hello, I installed the plugin, added container in index.main.php (Asevo theme), added the style to the CSS file, yet it is not appearing still.

Any thoughts?

index.main.php:


<p>
				<?php
					// Link to comments, trackbacks, etc.:
					$Item->feedback_link( array(
									'type' => 'comments',
									'link_before' => '',
									'link_after' => '',
									'link_text_zero' => '#',
									'link_text_one' => '#',
									'link_text_more' => '#',
									'link_title' => '#',
									'use_popup' => false,
								) );
				 ?>
				<?php
					// Link to comments, trackbacks, etc.:
					$Item->feedback_link( array(
									'type' => 'trackbacks',
									'link_before' => ' &bull; ',
									'link_after' => '',
									'link_text_zero' => '#',
									'link_text_one' => '#',
									'link_text_more' => '#',
									'link_title' => '#',
									'use_popup' => false,
								) );
				 ?>
                 <?php
// ------------------------- "Post Footer" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container( NT_('Post Footer'), array(
		// The following params will be used as defaults for widgets included in this container:
		'block_start' => '',
		'block_end' => '',
	) );
// ----------------------------- END OF "Post Footer" CONTAINER -----------------------------
?>
			</p>

style.css:


div.sharethis {
    display: inline;
    margin-left: 2em;
}

When I edit a post, I see the plugin in the list, and it is check (and greyed out). Looks like it installed correctly, and I am suspecting it's my CSS or theme. Any help is appreciated.


Form is loading...