Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

SexyBookmarks Icons at bottom of category and tag posts


  #1  
Old Jan 30, 2011, 08:43 PM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
I'm using SexyBookmarks by Shareaholic to display social networking and RSS-comment icons at the bottom of my posts. This plugin does not have an option to have them display on category and tag link pages, so I asked if there was a way to code that outside the plugin, and was told to place the code below wherever I want them to appear.

<?php if(function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } ?>

I've tried inserting it in various places within the ATO without success. Tried to get Sharaholic folks to be more specific as to where it should go for this purpose, but alas... no replies.

I know you don't support plugins, but figured you might be able to suggest where I could try inserting this code. Thank-you.
  #2  
Old Jan 31, 2011, 04:30 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well you could try putting that code in ato->Style & edit CENTER COLUMN->The LOOP with a little extra code.
change the line
HTML Code:
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
to
HTML Code:
<?php if ((is_category() OR is_tag()) AND (function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } 
bfa_post_footer('<div class="post-footer">','</div>'); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 2, 2011, 06:31 AM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
Thanks so much for taking your time on this request. Unfortunately, when I added the code to the Loop I got the error below on each category or tag page, sometimes presented multiple times (probably for each post on that page.

Parse error: syntax error, unexpected '{' in /home/vcopia/public_html/wp-content/themes/atahualpa/functions.php(513) : eval()'d code on line 27

I know this is a plugin so I don't expect you to do more with it than you have. So, again, thanks again for your time.
  #4  
Old Feb 2, 2011, 07:10 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
oops, there was a missing ')' try this
HTML Code:
<?php if ((is_category() OR is_tag()) AND (function_exists('selfserv_shareaholic'))) { selfserv_shareaholic(); } 
bfa_post_footer('<div class="post-footer">','</div>'); ?>
not there are three ')'s before the '{'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 3, 2011, 01:36 PM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
Nope. No impact whatsoever.

SEXYB: Their orig code, alone, when added to the Loop, produces a duplicate row of icons at the bottom of each of my posts, except those on cat and tab pgs, where there are still none. So I know the code is good. (Dups due to my already selecting them in the plugin's admin section before trying out the above.)

ATO: Your orig. code is 'excellent, of course.

COMBINED: The combined version appears to work as if your code alone is in force.

So, I've thrown it back the Shareaholic (Sexy Bookmark Ds) with a brief description of what we've attempted via this chain, in hopes someone there responds.

Thanks again. Unless you get bored, or have a caffeine rush at 3am and want something to do, you don't have to reply again. I don't want to take your valuable time working on a plugin issue.

You're the best!
VC

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tag pages at the bottom of homepage bboobb Sidebars & Widgets 3 Jan 10, 2011 07:11 AM
Icons before each item in category bar aeriph Page & Category Menu Bars 0 Sep 13, 2010 06:38 AM
[SOLVED] Help with Atahualpa and Category Icons Vedder2k Header configuration & styling 3 Feb 2, 2010 07:38 AM
[SOLVED] Category icons seboush Header configuration & styling 6 Oct 17, 2009 10:45 AM
RSS posts and comments icons sirabi Header configuration & styling 1 Sep 8, 2009 03:06 AM


All times are GMT -6. The time now is 12:21 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.