<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Super Howtos - Recent questions and answers in dev-sites</title>
<link>http://superhowtos.com/qa/dev-sites</link>
<description>Powered by Question2Answer</description>
<item>
<title>Wiki solution</title>
<link>http://superhowtos.com/5/wiki-solution</link>
<description>&lt;h1&gt;Product&lt;/h1&gt;

&lt;p&gt;I use &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin&quot;&gt;pmwiki&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;Markdown&lt;/h1&gt;

&lt;p&gt;As markdown use: &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.pmwiki.org/wiki/Cookbook/MarkdownMarkupExtension&quot;&gt;Markdown extension&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;Restrict access&lt;/h1&gt;

&lt;p&gt;Either you have single admin password (no user name) or you use authuser.php module to allow users.&lt;/p&gt;

&lt;p&gt;In config you need to set permissions:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# require valid login before viewing pages
$DefaultPasswords['read'] = 'id:*';

# All admins and Fred and Tom may edit -&amp;gt; only if authuser.php is used!!!
$DefaultPasswords['edit'] = array('@admins', 'id:Fred,Tom');
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To hide passwords:&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://wiki.superhowtos.com/pmwiki.php?n=PmWiki.PasswordsAdmin#crypt&quot;&gt;crypt function&lt;/a&gt;&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://wiki.superhowtos.com/?action=crypt&quot;&gt;crypt pass form&lt;/a&gt;&lt;/p&gt;
</description>
<category>dev-sites</category>
<guid isPermaLink="true">http://superhowtos.com/5/wiki-solution</guid>
<pubDate>Thu, 18 Jan 2018 09:29:26 +0000</pubDate>
</item>
<item>
<title>Answered: [Question2Answer]  Hide all questions for anonymous users?</title>
<link>http://superhowtos.com/2/question2answer-hide-all-questions-for-anonymous-users?show=3#a3</link>
<description>&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/18625/is-it-possible-to-hide-all-questions-for-anonymous-users&quot;&gt;http://www.question2answer.org/qa/18625/is-it-possible-to-hide-all-questions-for-anonymous-users&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Yes. Open \qa-theme\NAME OF SELECTED TEMPLATE\qa-theme.php&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;insert the following code directly after the line which contains&amp;nbsp;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;if ((!qa_is_logged_in()) and !((strpos(qa_self_html(),'login') !== false )||&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;(strpos(qa_self_html(),'forgot') !== false )&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;)) { &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;qa_redirect('login');&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;}else{&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;and add the following codejust before the end of the file (but before&amp;nbsp;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;&lt;strong&gt;?&amp;gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;if it contains&amp;nbsp;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;&lt;strong&gt;?&amp;gt;&lt;/strong&gt;&lt;/span&gt;)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>dev-sites</category>
<guid isPermaLink="true">http://superhowtos.com/2/question2answer-hide-all-questions-for-anonymous-users?show=3#a3</guid>
<pubDate>Tue, 16 Jan 2018 18:35:28 +0000</pubDate>
</item>
</channel>
</rss>