<br><br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Aug 24, 2006 at 11:17:33PM +0100, Hans wrote:<br>&gt; Andy wrote:<br>&gt; &gt;After your first comment, I took a peak at Hans' code, and<br>&gt; &gt;unfortunately, I really don't know enough PHP or regex to be able to
<br>&gt; &gt;tweak it (I tried), but I was thinking of a tweak that would allow<br>&gt; &gt;someone to just include a line like:<br>&gt; &gt;<br>&gt; &gt;$RequiredStyleGroup = 'ExampleStylesGroup';<br>&gt; &gt;<br>&gt; &gt;in 
config.php.<br>&gt;<br>&gt; I updated stylepage.php and added a variable $SiteGroupStylePages,<br>&gt; which is set to 1 by default, restricting other style pages to the<br>&gt; $SiteGroup.<br>&gt; This is a change from the previous behaviour, which allowed style
<br>&gt; pages in any group.<br>&gt; If you want this you need to set $SiteGroupStylePages = 0;<br>&gt; I hope this meets some of the demand for greater security in using this<br>&gt; script.<br><br>Eek!&nbsp;&nbsp;Almost anything that is &quot;on/off&quot; really ought to
<br>be prefaced with &quot;$Enable&quot;, for consistency with other switches<br>in PmWiki.&nbsp;&nbsp;So, perhaps $EnableSiteGroupStylesOnly or something<br>like that.<br><br>Or, we could have $StylePagePattern, which limits pages according
<br>to a given pattern:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$StylePagePattern = '/^Site\\./';<br><br>Pm<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div><br>As one who initially pushed for a recipe for allowing CSS in wiki pages and helped work on it, I must say that I have been using it fairly often and successfully.&nbsp; It's handy when you have something you want to do as a &quot;quick fix&quot; if, for example, I don't have time to do anything on the server side of things but there's some style thing that's bugging me, or I just need to create a new class or something.&nbsp; Putting restrictions on use is a necessity, but allowing authors in other groups to call (:stylepage:) from protected groups is really cool.
<br><br>Jon Haupt<br>