<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged paths</title>
<link>https://www.question2answer.org/qa/tag/paths</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to change paths of url to a custom url? (details in discription)</title>
<link>https://www.question2answer.org/qa/110735/how-to-change-paths-of-url-to-custom-url-details-discription</link>
<description>How to change paths of url to a custom url? (details in discription)&lt;br /&gt;
&lt;br /&gt;
From: &lt;a href=&quot;https://www.question2answer.org/qa/questions&quot; rel=&quot;nofollow&quot;&gt;https://www.question2answer.org/qa/questions&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To: &lt;a href=&quot;https://www.question2answer.org/qa/CustomUrl&quot; rel=&quot;nofollow&quot;&gt;https://www.question2answer.org/qa/CustomUrl&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Is this possible?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/110735/how-to-change-paths-of-url-to-custom-url-details-discription</guid>
<pubDate>Thu, 05 Oct 2023 06:30:10 +0000</pubDate>
</item>
<item>
<title>Call for improvement of qa_opt('site_url')</title>
<link>https://www.question2answer.org/qa/38254/call-for-improvement-of-qa_opt-site_url</link>
<description>

&lt;p&gt;
	Developing the on-site-notifications plugin and others I got to know that a lot of users have not correctly specified their websites URL in the qa_opt('site_url'). This causes e.g. Ajax plugins not to work since we have another domain (already &lt;strong&gt;www.&lt;/strong&gt;blabla.com is not the same as blabla.com). Check topic on &quot;same domain policies&quot;.&lt;/p&gt;


&lt;p&gt;
	The workaround is to use qa_path_html('') instead.&lt;/p&gt;


&lt;p&gt;
	However, it would be nice to have it just working. Because many existing and new developers are writing their plugins depending on site_url.&lt;/p&gt;


&lt;p&gt;
	One idea would be to warn within the &lt;strong&gt;admin panel&lt;/strong&gt; that &quot;site_url&quot; does not match the current website URL and to have a button to update the &quot;site_url&quot;. As easy as that.&lt;/p&gt;


&lt;p&gt;
	What do you think?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/38254/call-for-improvement-of-qa_opt-site_url</guid>
<pubDate>Thu, 11 Sep 2014 02:11:37 +0000</pubDate>
</item>
<item>
<title>How to get plugin directory path from the theme layer class file of a plugin?</title>
<link>https://www.question2answer.org/qa/31582/how-plugin-directory-path-from-theme-layer-class-file-plugin</link>
<description>I am trying to access an image that is located inside the plugin directory. How do I do it from the Theme layer that I have registered in this plugin?&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/31582/how-plugin-directory-path-from-theme-layer-class-file-plugin</guid>
<pubDate>Sat, 08 Feb 2014 00:22:12 +0000</pubDate>
</item>
<item>
<title>Changing questions, answers path names to something else?</title>
<link>https://www.question2answer.org/qa/29475/changing-questions-answers-path-names-to-something-else</link>
<description>

&lt;p&gt;
	I want to change the name of these URLs&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		questions = posts&lt;/li&gt;
	

&lt;li&gt;
		answers = comments&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	I have commenting disabled within the admin panel and want to use the answering as commenting by editing the language files.&lt;/p&gt;


&lt;p&gt;
	I tried setting the following in the qa-config.php&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		$QA_CONST_PATH_MAP=array(&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'questions' =&amp;gt; 'posts',&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'answers' =&amp;gt; 'comments',&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'categories' =&amp;gt; 'categories',&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'users' =&amp;gt; 'members',&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'user' =&amp;gt; 'member',&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; 'ask' =&amp;gt; 'submit',&lt;/div&gt;
	

&lt;div&gt;
		);&lt;/div&gt;
&lt;/blockquote&gt;


&lt;div&gt;
	They work but, so do the old names would this be a protential problem with duplicate content?.&lt;/div&gt;


&lt;p&gt;
	I also have an issue on the public profile page sub navigation, the names have not been changed.&amp;nbsp;&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		/user/username/questions&lt;/li&gt;
	

&lt;li&gt;
		/user/username/answers&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	I tried editing the&amp;nbsp;qa_user_sub_navigation in qa-app-format.php&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		'questions' =&amp;gt; array(&lt;/div&gt;
	

&lt;div&gt;
		'label' =&amp;gt; qa_lang_html('misc/nav_user_qs'),&lt;/div&gt;
	

&lt;div&gt;
		'url' =&amp;gt; qa_path_html('user/'.$handle.'/posts'),&lt;/div&gt;
	

&lt;div&gt;
		),&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		'answers' =&amp;gt; array(&lt;/div&gt;
	

&lt;div&gt;
		'label' =&amp;gt; qa_lang_html('misc/nav_user_as'),&lt;/div&gt;
	

&lt;div&gt;
		'url' =&amp;gt; qa_path_html('user/'.$handle.'/comments'),&lt;/div&gt;
	

&lt;div&gt;
		),&lt;/div&gt;
&lt;/blockquote&gt;


&lt;div&gt;
	Which does change the names but,&amp;nbsp;/user/username/posts goes to a 404.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Any input would be great, thanks in advance :)&lt;/div&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29475/changing-questions-answers-path-names-to-something-else</guid>
<pubDate>Sun, 01 Dec 2013 10:22:14 +0000</pubDate>
</item>
<item>
<title>Getting the path to image file from qa_blob?</title>
<link>https://www.question2answer.org/qa/28773/getting-the-path-to-image-file-from-qa_blob</link>
<description>

&lt;p&gt;
	I am testing the new feature &quot;save image to harddrive&quot;&amp;nbsp; instead of blob.&lt;/p&gt;


&lt;p&gt;
	As I see there are folders created in my upload folder defined in QA_BLOBS_DIRECTORY. As it seems these are arbitrary numbers from 000 to 184.&lt;/p&gt;


&lt;p&gt;
	Two questions:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;1. What is the mechansim behind the folder numbers?&lt;/strong&gt;
&lt;br&gt;
	okay, while writing this post, I found the answer in: function qa_get_blob_directory()
&lt;br&gt;
	(subdirectories are named by the first 3 digits of $blobid)&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;2. How can I retrieve the path to the file on the harddisk using qa_blobs table?&lt;/strong&gt;
&lt;br&gt;
	This is important as I would like to update my image manager plugin accordingly.&lt;/p&gt;


&lt;p&gt;
	Okay, number 2 can also be solved regarding number 1.&lt;/p&gt;


&lt;p&gt;
	But there is another question now:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;strong&gt;3. Why is &quot;849092891028879862.png&quot; saved in folder &quot;008&quot; and not &quot;849&quot; ?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Here is the substring return from function qa_get_blob_directory:
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;rtrim(QA_BLOBS_DIRECTORY, '/').'/'.substr(str_pad($blobid, 20, '0', STR_PAD_LEFT), 0, 3)&lt;/span&gt;;&lt;/p&gt;


&lt;p&gt;
	But what is happening here? STR_PAD_LEFT fills zeros to the left, 0, 3 takes the first 3 digits.... ?&lt;/p&gt;


&lt;p&gt;
	Thanks.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28773/getting-the-path-to-image-file-from-qa_blob</guid>
<pubDate>Fri, 01 Nov 2013 07:42:24 +0000</pubDate>
</item>
<item>
<title>How to make &quot;questions&quot; instead of &quot;q&amp;a&quot; the default tab on homepage</title>
<link>https://www.question2answer.org/qa/28327/how-to-make-questions-instead-of-q%26a-the-default-tab-homepage</link>
<description>

&lt;p&gt;
	I have tried messing around with the qa_content_prepare function&amp;nbsp;in&amp;nbsp;qa-page.php.&amp;nbsp;but with no luck. &amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://www.question2answer.org/qa/13318/q%26a-in-the-navmenu-always-on-second-anyway-change-it&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/13318/q%26a-in-the-navmenu-always-on-second-anyway-change-it&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28327/how-to-make-questions-instead-of-q%26a-the-default-tab-homepage</guid>
<pubDate>Fri, 18 Oct 2013 04:23:38 +0000</pubDate>
</item>
<item>
<title>Q2A cookie path</title>
<link>https://www.question2answer.org/qa/24599/q2a-cookie-path</link>
<description>hi&lt;br /&gt;
&lt;br /&gt;
I am using wordpress in mysite.com/blog and qa is on mysite.com&lt;br /&gt;
&lt;br /&gt;
I tried this cookie path&lt;br /&gt;
&lt;br /&gt;
define('COOKIEPATH', '..//');&lt;br /&gt;
&lt;br /&gt;
I am inside a small problem, I am not able to define cookie path for wordpress integration,&lt;br /&gt;
&lt;br /&gt;
kindly help</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/24599/q2a-cookie-path</guid>
<pubDate>Fri, 14 Jun 2013 13:59:17 +0000</pubDate>
</item>
<item>
<title>How to change path for question-page? For exemple: &quot;/question-title/id&quot;</title>
<link>https://www.question2answer.org/qa/23929/how-change-path-for-question-page-for-exemple-question-title</link>
<description>Now i have standart path for all questions: &amp;quot;id/question&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I would like turn it to &amp;quot;question-title/id&amp;quot;&lt;br /&gt;
&lt;br /&gt;
How can i do it?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23929/how-change-path-for-question-page-for-exemple-question-title</guid>
<pubDate>Sun, 19 May 2013 07:20:02 +0000</pubDate>
</item>
<item>
<title>How do I change the path from which the css is linked</title>
<link>https://www.question2answer.org/qa/19574/how-do-i-change-the-path-from-which-the-css-is-linked</link>
<description>

&lt;p&gt;
	I'm trying to add Q2A to my site. I've currently set it up as such that the Q2A install is in a sub folder but I want the functionality output in the layer above.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;margin-left: 40px;&quot;&gt;
	domain.com/questionsandanswers.php&amp;nbsp; // this is the location of the Q2A and I just includet the qa-index.php file&lt;/p&gt;


&lt;p style=&quot;margin-left: 40px;&quot;&gt;
	domain.com/questions/&amp;nbsp; //this is the actual location of the Q2A install&lt;/p&gt;


&lt;p style=&quot;margin-left: 40px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Now this works find except it does not seem to be looking for the css/js files in the correct place. FireBug shows that it's trying to load them from &lt;span style=&quot;background-color:#ffff00;&quot;&gt;domain.com/qa_content/&lt;/span&gt; whereas it should be loading from &lt;span style=&quot;background-color:#ffff00;&quot;&gt;domain.com/questions/qa_content/&lt;/span&gt;. I've changed the QA_BASE_DIR value before including qa-index.php and all the rest works fine - with a few exceptions but their minor.&lt;/p&gt;


&lt;p&gt;
	Any ideas where I need to change the links to the css/js files?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/19574/how-do-i-change-the-path-from-which-the-css-is-linked</guid>
<pubDate>Fri, 30 Nov 2012 00:29:52 +0000</pubDate>
</item>
</channel>
</rss>