<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DevGrow Discussions &#187; Topic: Horizontal bar working on home page, but not single pages</title>
		<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages</link>
		<description>A community for developers, web designers and entrepreneurs.</description>
		<language>en-US</language>
		<pubDate>Mon, 21 May 2012 08:26:29 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://devgrow.com/discuss/search.php</link>
		</textInput>
		<atom:link href="http://devgrow.com/discuss/rss/topic/horizontal-bar-working-on-home-page-but-not-single-pages" rel="self" type="application/rss+xml" />

		<item>
			<title>jgentes on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-208</link>
			<pubDate>Mon, 30 Aug 2010 13:15:13 +0000</pubDate>
			<dc:creator>jgentes</dc:creator>
			<guid isPermaLink="false">208@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;Ok, been chatting with the Thesis developers, here's the tread:&#60;/p&#62;
&#60;p&#62;*developer*&#60;/p&#62;
&#60;p&#62;This bit of test code (when placed in custom_functions.php) correctly picks up the permalink for each post, even on a multi-post listing:&#60;/p&#62;
&#60;p&#62;function post_link() { ?&#38;gt;&#60;br /&#62;
    &#60;a&#62;&#34;&#38;gt;Permalink&#60;/a&#62;&#60;br /&#62;
&#38;lt;?php } &#60;/p&#62;
&#60;p&#62;add_action('thesis_hook_after_post', 'post_link');&#60;/p&#62;
&#60;p&#62;So, what's the exact code you're using for your sharebar?&#60;/p&#62;
&#60;p&#62;*me*&#60;/p&#62;
&#60;p&#62;Thanks - I think you've hit it on the head, I appear to be referencing the function, but the function itself isn't in the hook:&#60;/p&#62;
&#60;p&#62;&#38;lt;ul id=&#34;share-bar&#34;&#38;gt;&#60;br /&#62;
&#38;lt;li class=&#34;share&#34;&#38;gt;&#60;strong&#62;SHARE&#60;/strong&#62;&#60;br /&#62;
&#38;lt;li class=&#34;backtype&#34;&#38;gt;&#38;lt;?php sharebar_horizontal(); ?&#38;gt; &#60;/p&#62;
&#60;p&#62;Should I try to take the entire PHP content from the sharebar.php file and drop it into the custom_functions file? I guess I was thinking that would be equivalent to loading the plugin normally.&#60;/p&#62;
&#60;p&#62;*developer*&#60;/p&#62;
&#60;p&#62;This problem may be more to do with the plugin itself. I added this code to custom_functions.php:&#60;/p&#62;
&#60;p&#62;function show_sharebar() {&#60;br /&#62;
    if (function_exists('sharebar_horizontal')) {&#60;br /&#62;
        sharebar_horizontal();&#60;br /&#62;
    }&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('thesis_hook_after_post', 'show_sharebar');&#60;/p&#62;
&#60;p&#62;And while the sharebar showed up in the correct location on the home page, it had none of the necessary styling, and only the email link correctly picked up the post's permalink - if it can detect it correctly for one button, it should be able to detect it correctly for all.&#60;/p&#62;
&#60;p&#62;When using the plugin's &#34;Auto On&#34;, the code worked perfectly on the single post. &#60;/p&#62;
&#60;p&#62;So maybe there's more to it than just calling the sharebar_horizontal function, despite what the plugin's documentation suggests.&#60;/p&#62;
&#60;p&#62;*me*&#60;/p&#62;
&#60;p&#62;Would love to hear your thoughts!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monjurul Dolon on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-59</link>
			<pubDate>Fri, 23 Jul 2010 18:45:02 +0000</pubDate>
			<dc:creator>Monjurul Dolon</dc:creator>
			<guid isPermaLink="false">59@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;Glad to hear that, best of luck with the blog!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jgentes on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-57</link>
			<pubDate>Fri, 23 Jul 2010 18:42:20 +0000</pubDate>
			<dc:creator>jgentes</dc:creator>
			<guid isPermaLink="false">57@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;No problem, I appreciate your help. I was thinking along the same lines - what I ended up doing was just using the default functionality for the horizontal version on the home page and the vertical version on the post pages, and that's looking pretty good, so we're all set.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monjurul Dolon on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-56</link>
			<pubDate>Fri, 23 Jul 2010 18:38:32 +0000</pubDate>
			<dc:creator>Monjurul Dolon</dc:creator>
			<guid isPermaLink="false">56@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;I'm somewhat familiar with Thesis (especially after the recent debates!) but I haven't used their hook features too much yet.  The only problem with using the after_post hook is that it will apply it to the main homepage, single posts and possibly even pages.  I don't think there is a hook specifically for a the post itself, but I'm not sure why it's not showing up in the posts either.&#60;/p&#62;
&#60;p&#62;In this circumstance, I would probably recommend using the default functionality of the plugin (automatically adding the code), as it is probably too much work to custom code it in.&#60;/p&#62;
&#60;p&#62;Sorry if that doesn't help much, let me know if there's anything else I can do.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jgentes on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-54</link>
			<pubDate>Fri, 23 Jul 2010 16:00:45 +0000</pubDate>
			<dc:creator>jgentes</dc:creator>
			<guid isPermaLink="false">54@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;Thanks for the speedy reply!&#60;/p&#62;
&#60;p&#62;I'm using Thesis, which has an 'openhook' plugin that allows me to specify code for each hook - in this case, I have this code in the 'after post' hook:&#60;/p&#62;
&#60;p&#62;&#38;lt;ul id=&#34;share-bar&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;li class=&#34;share&#34;&#38;gt;&#60;strong&#62;SHARE&#60;/strong&#62;&#60;br /&#62;
		&#38;lt;li class=&#34;backtype&#34;&#38;gt;&#38;lt;?php sharebar_horizontal(); ?&#38;gt; &#60;/p&#62;
&#60;p&#62;Also noticed I had some javascript garbage in there - it wasn't causing the problem, I was just trying different things. I've cleaned that up.&#60;/p&#62;
&#60;p&#62;So ideally I would not directly modify the single.php file to prevent upgrade issues in the future, since the 'after post' hook should do the same thing, no?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monjurul Dolon on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-53</link>
			<pubDate>Fri, 23 Jul 2010 15:35:33 +0000</pubDate>
			<dc:creator>Monjurul Dolon</dc:creator>
			<guid isPermaLink="false">53@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;Did you manually add the Sharebar code to your template?  It looks like the actual JavaScript function is being called numerous times - you only want to call it once for the plugin to work properly.&#60;/p&#62;
&#60;p&#62;From the looks of it, you've added the sharebar_horizontal code to the index template but not to the single.php, which is where it would need to go to show up on that page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jgentes on "Horizontal bar working on home page, but not single pages"</title>
			<link>http://devgrow.com/discuss/topic/horizontal-bar-working-on-home-page-but-not-single-pages#post-52</link>
			<pubDate>Fri, 23 Jul 2010 15:23:48 +0000</pubDate>
			<dc:creator>jgentes</dc:creator>
			<guid isPermaLink="false">52@http://devgrow.com/discuss/</guid>
			<description>&#60;p&#62;Hi, I'm trying to get the horizontal bar working on individual pages. The div doesn't seem to load the javascript properly, as far as I can tell from the source.&#60;/p&#62;
&#60;p&#62;It's working here: &#60;a href=&#34;http://thesocialbusinessblog.com&#34; rel=&#34;nofollow&#34;&#62;http://thesocialbusinessblog.com&#60;/a&#62; but not here: &#60;a href=&#34;http://thesocialbusinessblog.com/2010/07/17/social-media-for-a-dental-practice/&#34; rel=&#34;nofollow&#34;&#62;http://thesocialbusinessblog.com/2010/07/17/social-media-for-a-dental-practice/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I've noticed I can recreate the same problem on the home page if I turn off the setting for &#34;Display horizontal Sharebar if the page is resized to less than 1000px?&#34;, if that's of any help.&#60;/p&#62;
&#60;p&#62;Thanks! I've been banging my head on this one..
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

