[pmwiki-users] making "Author Required" notice stand out

H. Fox haganfox at users.sourceforge.net
Sat Jan 21 11:04:04 CST 2006


This "hybrid" solution will be in the upcoming Light Skin's skin.php
file (catenated here to avoid strange line wrapping).

if ($action == 'edit') { global $AuthorRequiredFmt, $HTMLStylesFmt;
  $AuthorRequiredFmt = "<h3 class='wikimessage authormessage'>"
  ."$[An author name is required.]</h3>";
  $HTMLStylesFmt['wikimessage'] = "\n  .authormessage { color:black;"
  ." background-color:#ffffcc; padding:3px; }"; }

In config.php  it would be

if ($action == 'edit') {
  $AuthorRequiredFmt = "<h3 class='wikimessage authormessage'>"
  ."$[An author name is required.]</h3>";
  $HTMLStylesFmt['wikimessage'] = "\n  .authormessage { color:black;"
  ." background-color:#ffffcc; padding:3px; }"; }

Thanks for the tip, Neil.

Hagan




More information about the pmwiki-users mailing list