[pmwiki-users] GuiButtons in skin.php

Petko Yotov 5ko at 5ko.fr
Fri Mar 13 10:51:10 CDT 2015

The pub/skins/skin/skin.php file is included from within a function so 
you must define the variable as global:

   global $EnableGUIButtons;
   $EnableGUIButtons = 1;

On 2015-03-13 15:18, michael paulukonis wrote:
> Is there some reason that GuiButtons cannot be setup in a skin.php 
> file?
> On a local installation I have, with a custom skin, I could not get 
> this to
> work.
> The ultimate goal is to have some skin-specific edit buttons, providing
> markup that only works with the skin.
> If I put the GuiButton markup into config.php it works.
> Putting it into skin.php and nothing seems to happen (no errors that I 
> can
> see, but no output, either).
> I moved $EnableGuiButtons = 1; to precede the skin setup, but that had 
> no
> effect.
> Markup that I have defined in skin.php works just fine. What am I 
> missing?

More information about the pmwiki-users mailing list