Extension talk:CreateBox

Suggestion to add to this extension, an option 'clearonfocus' which lets the default value in the createbox act as a suggestion for the user - when they click in the box the default value disappears and if they leave it empty and click out, the default value re-appears.

Add the few lines before the $output= line, and also add the $focushtml variable to the createboxInput line (fourth from the bottom here).

$submit = htmlspecialchars($wgScript); $width = acGetOption($input,'width',0); $align = acGetOption($input,'align','center'); $br = ((acGetOption($input,'break','no')=='no') ? '' : ' '); $label = acGetOption($input,'buttonlabel',wfMsgHtml("createarticle")); //---   if (acGetOption($input,'clearonfocus',0) == 0) $focushtml = ''; else $focushtml =<<      {$br}  ENDFORM;

Instructions for use: Add clearonfocus=1 to enable (or any non-zero value)

Sidebar
Is it possible to add this to the sidebar like the searchbox?

Bug:Preload
The Preloaded content dosent show... I have tested it on www.gamemedia.jackphoenix.com and it dosent show in the editing field- --62.128.243.228 13:57, 11 August 2007 (UTC)

Invalid XHTML
In the next version, could  possibly be fixed for XHTML compliance? That is;. Seeing as it's the only one I'm guessing it was intended as closed. Another note on XHTML-compliance (which this extension might not have control over) is the placement of the form-element. The start-tag is placed within a p-element (which is an invalid location for a form), and the end-tag is outside said p-element (defining the start inside and end outside is invalid in XHTML). Such as:

 ...

213.100.72.86 19:06, 8 January 2008 (UTC)