<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>bbPress Support Forums &#187; Topic: Getting Plugin URL</title>
		<link>http://bbpress.org/forums/topic/getting-plugin-url</link>
		<description>bbPress Support Forums &#187; Topic: Getting Plugin URL</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Feb 2012 20:29:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/getting-plugin-url" rel="self" type="application/rss+xml" />

		<item>
			<title>Gautam on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38158</link>
			<pubDate>Mon, 06 Jul 2009 07:38:23 +0000</pubDate>
			<dc:creator>Gautam</dc:creator>
			<guid isPermaLink="false">38158@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Oh...<br />
The forum changed double \ into single \
</p>]]></description>
					</item>
		<item>
			<title>Gautam on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38157</link>
			<pubDate>Mon, 06 Jul 2009 07:37:24 +0000</pubDate>
			<dc:creator>Gautam</dc:creator>
			<guid isPermaLink="false">38157@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks ck...</p>
<p>But, you forgot to escape \.<br />
So, the correct code is:<br />
<code>$url = bb_get_option(&#39;uri&#39;).trim(str_replace(array(trim(BBPATH,&#34;/\&#34;),&#34;\&#34;),array(&#34;&#34;,&#34;/&#34;),dirname(__FILE__)),&#39; /\&#39;).&#39;/&#39;;</code>
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38156</link>
			<pubDate>Mon, 06 Jul 2009 06:58:15 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">38156@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>BB_PLUGIN_URL is useless as there are several places a user can put a plugin. Most users also don't know they aren't supposed to use <code>bb-plugins</code> and make <code>my-plugins</code> because the powers that be refuse to ship bbpress with a pre-made <code>my-plugins</code> directory.</p>
<p>After much trial and error and problems reported by windows users, I figured this out:<br />
<pre><code>$url=bb_get_option(&#39;uri&#39;).trim(str_replace(array(trim(BBPATH,&#34;/\&#34;),&#34;\&#34;),array(&#34;&#34;,&#34;/&#34;),dirname(__FILE__)),&#39; /\&#39;).&#39;/&#39;; 

$path=rtrim(dirname(__FILE__),&#39; /\&#39;).&#39;/&#39;;</code></pre>
<p>Where $url is the full uri to the local plugin's directory (ie. if you have an image in there, that's the url to it)</p>
<p>The $path is the local storage path that will work in both windows and linux.</p>
<p>It may look like these functions can be simplified but if you do that, I guarantee you'll break it under one environment or another.
</p>]]></description>
					</item>
		<item>
			<title>r-a-y on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38131</link>
			<pubDate>Sun, 05 Jul 2009 23:38:37 +0000</pubDate>
			<dc:creator>r-a-y</dc:creator>
			<guid isPermaLink="false">38131@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I think gautam2011 means outputting the path to bbPress' plugin URL directory.</p>
<p>Is there a constant variable like WP_PLUGIN_URL?<br />
I'm looking for this too! I'm porting a WP plugin over.</p>
<p>[EDIT]<br />
Found it! It's in bb-settings.php</p>
<p>The variable is BB_PLUGIN_URL.<br />
Simple as that! :)
</p>]]></description>
					</item>
		<item>
			<title>johnhiler on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38109</link>
			<pubDate>Sun, 05 Jul 2009 15:11:21 +0000</pubDate>
			<dc:creator>johnhiler</dc:creator>
			<guid isPermaLink="false">38109@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>You can submit plugins here:<br />
<a href="http://bbpress.org/plugins/forum/requests" rel="nofollow">http://bbpress.org/plugins/forum/requests</a></p>
<p>Once they're approved, you'll get a bbPress URL for your plugin. :-)
</p>]]></description>
					</item>
		<item>
			<title>Gautam on "Getting Plugin URL"</title>
			<link>http://bbpress.org/forums/topic/getting-plugin-url#post-38106</link>
			<pubDate>Sun, 05 Jul 2009 14:49:03 +0000</pubDate>
			<dc:creator>Gautam</dc:creator>
			<guid isPermaLink="false">38106@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I am creating a bbPress Plugin (actually editing a wordpress plugin). I want to get the plugin url link. How to get that? I am stuck there.......
</p>]]></description>
					</item>

	</channel>
</rss>

