[pmwiki-users] GuiButtons in skin.php

michael paulukonis xraysmalevich at gmail.com
Fri Mar 13 12:27:35 CDT 2015


Oh, I forgot about that.

Did the trick, thanks!

-Michael Paulukonis
http://www.xradiograph.com
<http://goog_2112721603>Interference Patterns (a blog)
<http://www.xradiograph.com/interference>
@XraysMonaLisa <https://twitter.com/XraysMonaLisa>
http://michaelpaulukonis.com
<http://www.BestAndroidResources.com>

Sent from somewhere in the Cloud
(hearthrug, by the fender)

On Fri, Mar 13, 2015 at 11:51 AM, Petko Yotov <5ko at 5ko.fr> wrote:

> 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?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150313/0c5e2827/attachment.html>


More information about the pmwiki-users mailing list