1 capnrob Mar 27, 2010 14:59
3 rainman89 Jul 27, 2010 21:06
Call me dense, but i cant seem to figure out where to put it so it shows correctly for every post. Should it be in the index.main or posts.main? and where should i locate it.
Thanks!
4 yabba Jul 29, 2010 19:02
Anywhere inside the $MainList loop
¥
5 rainman89 Jul 30, 2010 16:18
¥åßßå wrote:
Anywhere inside the $MainList loop
¥
Thanks for the reply, I tried putting it in the main content of my index.main.php file, but was unsuccessful.. here is what i tried. thanks for the help.
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
<a name="fb_share" share_url="<?phpecho curPageURL();?>"type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script type="text/javascript">
tweetmeme_url = '<?php echo curPageURL();?>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
?> [code
6 yabba Jul 30, 2010 17:27
It needs to be higher in your code than that. Note, if you have posts.main.php && single.main.php it also needs to be in those.
This is from terrafirma, it needs to be below the { on line 3 and above the } on the last line :
// loop through as long as we have an Item...
while( $Item = & mainlist_get_item() )
{
// --- --- --- --- --- --- --- --- --- --- ---
// --- ITEM BLOCK INCLUDED HERE ---
template_include( '_item_block.inc.php', array(
'content_mode' => 'auto',
) );
}
¥
7 rainman89 Jul 30, 2010 17:42
¥åßßå wrote:
It needs to be higher in your code than that. Note, if you have posts.main.php && single.main.php it also needs to be in those.
This is from terrafirma, it needs to be below the { on line 3 and above the } on the last line :
// loop through as long as we have an Item... while( $Item = & mainlist_get_item() ) { // --- --- --- --- --- --- --- --- --- --- --- // --- ITEM BLOCK INCLUDED HERE --- template_include( '_item_block.inc.php', array( 'content_mode' => 'auto', ) ); }
¥
Thanks ¥,
I ended up adding it in my _item_block.inc.php file here
<p class="postmetadata alt small">
<?php
// List all tags attached to this post:
$Item->tags( array(
'before' => T_('Tags').': ',
'after' => ' ',
'separator' => ', ',
) );
?>
<?php
$Item->edit_link( array( // Link to backoffice for editing
'before' => '',
'after' => '',
) );
?>
<div class="share">
<a name="fb_share" share_url="<?php $Item->permanent_url();?>"type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script type="text/javascript">
tweetmeme_url = '<?php $Item->permanent_url();?>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
</p>
Which is working now! So thank you.
Only problem is, I wanted it to be like a footer for the post, but its more or less in the content (I have an image in my post and it shows up next to it instead of below it) Is there an easy way to add something to the php to put it as a designated footer? say with a <hr> line and the widgets underneath that? Ive searched the forum and they all seem to refer to a page footer and not the post itself.
Thanks again
8 yabba Jul 30, 2010 17:50
<div class="share" style="clear:both;border-top:1px solid #f00;"> might work ... might
If not then I'd need to know which skin you're using
¥
9 rainman89 Jul 30, 2010 18:28
¥åßßå wrote:
<div class="share" style="clear:both;border-top:1px solid #f00;"> might work ... might
If not then I'd need to know which skin you're using
¥
That did work!
I am using a custom skin based off of glossyblue. you can see it here. http://podunkpictures.com/blogs/podunk.php
I need to tweak it a lot though.. its still not formatting like I would like it to be!
I want it something like http://www.smosh.com, with the footer and space around the images and such.. but I cant seem to get it to fit the width like its supposed to be.
Thanks ¥!!
10 yabba Jul 30, 2010 18:33
You missed the closing " on that style ;)
see @link [url=http://validator.w3.org/check?uri=http://podunkpictures.com/blogs/podunk.php]validation errors[/url] if you want to scare yourself ;)
¥
11 rainman89 Jul 30, 2010 18:59
¥åßßå wrote:
You missed the closing " on that style ;)
see @link [url=http://validator.w3.org/check?uri=http://podunkpictures.com/blogs/podunk.php]validation errors[/url] if you want to scare yourself ;)
¥
Thanks again ¥. I'll check out that link when I get a chance!
12 lturner Aug 08, 2010 21:43
Hi
I have put a Share This plugin together recently for a client with a 3.3.3 install. I haven't had the chance to release it yet but if anyone wants to give it a try please PM with an email address and I will send it across.
Cheers
Lee
13 lturner Aug 09, 2010 05:46
*removed
14 maxiperez Nov 24, 2010 21:35
lturner wrote:
Hi
I have put a Share This plugin together recently for a client with a 3.3.3 install. I haven't had the chance to release it yet but if anyone wants to give it a try please PM with an email address and I will send it across.
Cheers
Lee
Please, I need this plugin for 3.3.3 version b2evolution.
Can You send me this plugin?
15 yabba Nov 24, 2010 23:40
lturner wrote:
if anyone wants to give it a try please PM with an email address
Don't forget to RTFM, if there's a FM in the zip
¥
16 lturner Nov 25, 2010 15:19
OK, here is the plugin. The code is complete but unfortunately you won't be able to RTFM as there is no FM - hence why it hasn't yet been formally released.
http://www.leeturner.org/media/downloads/b2evolution/plugins/sharethis_plugin.zip
The basics of it are that you set your button up on the sharethis.com site:
http://sharethis.com/publishers/get-sharing-button
You will need to sign up on the sharethis.com site to do this I think
Once you have configured the button you take the code it generates and put it in the plugin settings.
Hopefully the plugin will take care of the rest.
Hopefully.........
L
thanks for sharing