how can i get this icon to show up after each post?

Creating and modifying plugins.
Post Reply
ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

how can i get this icon to show up after each post?

Post by ewillow » Wed Nov 09, 2011 6:00 am

Hi,

I am trying to figure out why the following image only shows up in the footer of my most recent blog entry but not in the footer of EVERY entry:
Image

I don't know how it gets there, but I like it! How can I get it to show up in the footer of EVERY blog entry?

(I have tried both the findmore plugin and the feedburner feedflare plugin, but they aren't the same thing, and to be honest, I don't like the way either one of these plugins looks on my blog.)

Please help!

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: how can i get this icon to show up after each post?

Post by yellowled » Wed Nov 09, 2011 1:35 pm

ewillow wrote:I don't know how it gets there, but I like it! How can I get it to show up in the footer of EVERY blog entry?
I think that's the AddThis widget, so you're probably using the Bulletproof template on your blog. BP has an option to use AddThis which you probably activated at some point since it's not active by default.

As to why it's not displayed in every blog post I can only guess. Please post a URL to your blog so we can check it out on the live site.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

Re: how can i get this icon to show up after each post?

Post by ewillow » Wed Nov 09, 2011 4:01 pm


User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: how can i get this icon to show up after each post?

Post by Don Chambers » Wed Nov 09, 2011 5:19 pm

That is indeed a template based on bulletproof, a mighty nice one I might add.

The addthis code IS being emitted for each entry, but the button is only appearing for the first entry on any given page. Given the extensive revisions to the original bulletproof template, can you temporarily switch it back to bulletproof and see if that behavior happens there as well?

ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

Re: how can i get this icon to show up after each post?

Post by ewillow » Wed Nov 09, 2011 5:31 pm

Whoa! That is waaay out of my league! I had someone build the site for me (I have NO idea about tech stuff) so I am afraid of what might happen to my site if I did that. There was a time awhile back (like last year) when it did show up on all of the entries, but I just recently realized that it wasn't showing up anymore.

I can access my file manager via Network Solutions, and that doesn't scare me, so is there any other thing I could try?

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: how can i get this icon to show up after each post?

Post by Don Chambers » Wed Nov 09, 2011 7:20 pm

It could be that some other script on the page is interfering with the addthis script... or it could be due to modifications your developer made to the bulletproof template.

Another possibility would be to use a newer addthis code. Your template should have a file named entries.tpl, and in that file, will be this:

Code: Select all

                            <div class="addthiswidget">
                                <script type="text/javascript">
                                    addthis_url = '{$entry.rdf_ident|escape:url}';
                                    addthis_title = '{$entry.title|escape:url}';
                                    addthis_pub = '{$template_option.addthisaccount}';
                                </script>
                                <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
                            </div>
You could try changing that to this:

Code: Select all

<div class="addthiswidget">
    <a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', encodeURIComponent('{$entry.rdf_ident}'), encodeURIComponent('{$entry.title|escape:url}'));" onmouseout="addthis_close()" onclick="return addthis_sendto()" title="Bookmark and Share" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-bookmark-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0" /></a>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub={$template_option.addthisaccount}"></script>
</div>

ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

Re: how can i get this icon to show up after each post?

Post by ewillow » Wed Nov 09, 2011 9:27 pm

Ugh, no change! However, while searching for the script, I noticed that this is listed three separate times on the entries.tpl page:

<div class="addthiswidget">
<script type="text/javascript">
addthis_url = '{$entry.rdf_ident|escape:url}';
addthis_title = '{$entry.title|escape:url}';
addthis_pub = '{$template_option.addthisaccount}';
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div>


I only changed it the first time the code appeared. Should I change all of them? Should it be there three times?

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: how can i get this icon to show up after each post?

Post by Don Chambers » Thu Nov 10, 2011 3:50 pm

The three different instances correspond to template options that emit the entry footer in different locations.... yes, change all three.

ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

Re: how can i get this icon to show up after each post?

Post by ewillow » Thu Nov 10, 2011 4:55 pm

It worked, sort of. Now it only shows up on the first three entries. Should I just shut-up and be happy with that? :roll: I guess it's better than it was, but still not the final result that I had hoped for.

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: how can i get this icon to show up after each post?

Post by Don Chambers » Fri Nov 11, 2011 3:39 pm

Before, the bookmark icon would appear on the first entry of each page. Now, it appears on the three most recent entries only.. it does not appear on older entries, or entries by category. What file, exactly, did you modify?

ewillow
Regular
Posts: 17
Joined: Thu Apr 01, 2010 9:26 pm

Re: how can i get this icon to show up after each post?

Post by ewillow » Fri Nov 11, 2011 5:00 pm

The entries.tpl file under the bulletproof template.

Post Reply