[pmwiki-users] auth condition in skins.php

marc gmane at auxbuss.com
Wed Feb 20 09:42:53 CST 2008


noskule said...
> hi list
> The condition below works well in config.php but not in skins.php where 
> I need it. Does anyone know way that is and how to solve it?
> thank's for any hints.
> nos
> 
> 
>     if ( @$GLOBALS["PCache"][$GLOBALS["pagename"]]["=auth"]['admin'] ) {
>         $contentbox_border = "1px sold red";
>         $horizontallist_border = "1px sold red";
>         $skinsection =  "1px sold red";
>         }

A few things:

More precisely, what do mean by 'doesn't work well'?

Shouldn't: 'sold' -> 'solid'?

Changing skins.php is not a good idea. Why does this need to be in 
skins.php? Ah! Do you mean the skin's .php file?

This looks like simply CSS stuff, so why not edit the skin? Something 
like:

  <!--markup:
  (:if auth admin:)
  <link rel='stylesheet' type='text/css'   
        href='$FarmPubDirUrl/skins/skin_name/extra_admin.css' />-->


-- 
Cheers,
Marc




More information about the pmwiki-users mailing list