Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Sociable plugin and built-in support (http://forum.bytesforall.com/showthread.php?t=16361)

hlietz Dec 29, 2011 06:12 AM

Sociable plugin and built-in support
 
I'm using Atahualpa 3.7.3 and Sociable 4.1.5. Since the "newer" versions of sociable (I guess version 4) the plugin is not working as it did before in combination with the built-in support in Atahualpa: In the ATO >> Edit post/page info items I put the sociable tag at the end of some footers (homepage, multi post pages, single post pages). Unfortunately the plugin doesn't put the sociable icons at the place where I want to put them with the sociable tag, no matter how I set the plugin options in the sociable plugin (I tried almost everything, I guess). Either the icons are put at the beginning of the footer (default plugin settings) or are not shown at all. Before the version 4 of sociable this worked just perfectly ...

juggledad Dec 29, 2011 06:42 AM

try this in 373 edit bfa_postinfo.php and change lines from 462 - 467
HTML Code:

        // For the "Sociable" plugin
        if ( strpos($postinfo_string,'%sociable%') !== FALSE ) {
                $sociable = ( (function_exists('sociable_html2') AND
                function_exists( do_sociable() ) ) ? do_sociable() : "");
                $postinfo = str_replace("%sociable%", $sociable, $postinfo);
        }

to
HTML Code:

        // For the "Sociable" plugin
        if ( strpos($postinfo_string,'%sociable%') !== FALSE ) {
                ob_start();
                        $sociable = ( (function_exists('sociable_html2') AND function_exists( do_sociable() ) ) ? do_sociable() : "");
                        $sociable = ob_get_contents();
                ob_end_clean();
                $postinfo = str_replace("%sociable%", $sociable, $postinfo);
        }

if you want the sociable icons on a new line, in the atahualpa settings use eithor
HTML Code:

<br /> %sociable%
or
HTML Code:

%sociable% <br />
depending on where you want the break to be

hlietz Dec 29, 2011 08:47 AM

1 Attachment(s)
Still some strange behaviour: Some icons like «tweet» or «I like» are showing while others like the normal 16 x 16 px icons are not ... Then the aligning is very strange. Not all icons are on one line what makes it look quite messy (see attached file. I selected "twitter", "Facebook", "tweet" and "I like", but only two icons are showing).

juggledad Dec 29, 2011 01:59 PM

do an export of your settings and attach them here (ato->export/import settings)

hlietz Dec 31, 2011 06:27 AM

I switched to the plugin ShareThis for the moment. There the built-in support (sharethis tag in ATO) works fine. I really think there's something wrong with the sociable plugin (or with the way Atahualpa is dealing with it).


All times are GMT -6. The time now is 05:12 AM.

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