00580: GUIedit bar not showing up

Summary: GUIedit bar not showing up
Created: 2005-11-01 13:07
Status: Closed - inactive
Category: Bug
From: Gjdalton?
Assigned:
Priority: 3
Version: 2.0.12
OS: Windows XP/Personal Web Server 5.1/Not sure

Description: GUIEdit bar is not showing up when editing pages. It is still in the same place and the option is turned on in the config.php

Thanks

Did anyone solve this one?


I can't seem to get them to appear (in any skin)... please can someone help? Promsan July 18, 2009, at 05:31 PMPromsan

Do they appear in the default skin (/pub/skins/pmwiki/)? If not please check that all the correct lines have been uncommented in the config.php file. simon July 18, 2009, at 06:11 PM

No. I think I've checked the congig.php to death! I've got the config file in the /public/pmwiki/local folder; I've uncommented $EnableGUIButtons = 1; I get (:toc:) alright though...

I've got these on: include_once('cookbook/wsplus.php'); $EnableRelativePageVars = 1;

...and all this:


###### Excel-Spreads ######
      include_once('cookbook/tabtable.php');

###### Markup Extensions ######
      include_once("cookbook/extendmarkup.php");    # caused change in underline and strikeout
      include_once("cookbook/break_page.php");

###### Table of Content & Quick ToC  ######
      include_once("cookbook/pagetoc.php");
      include_once('cookbook/quicktoc.php');

###### GUI Buttons ######
      $GUIButtonDirUrlFmt = '/PmWiki/pub/MyGuiEdit';
      $GUIButtonSpace1 = '$GUIButtonDirUrlFmt/space1.gif';
      $GUIButtonSpace2 = '$GUIButtonDirUrlFmt/space2.gif';
      $GUIButtonSpace3 = '$GUIButtonDirUrlFmt/space3.gif';
      $GUIButtonSpace4 = '$GUIButtonDirUrlFmt/space4.gif';
      $ArrayCount = 0;
      $SpaceCount = 0;
      $GUIButtons ['pagetoc']     = array($ArrayCount++, '\\n(:toc Table of Contents:)\\n', '', '',
                                    '$GUIButtonDirUrlFmt/toc.gif"$[Table of content]"');
      $GUIButtons ['quicktoc']    = array($ArrayCount++, '\\n(:quicktoc:)\\n', '', '',
                                    '$GUIButtonDirUrlFmt/quicktoc.gif"$[Collapsable TOC]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['bold']        = array($ArrayCount++, "'''", "'''", '$[Bold Text]',
                                    '$GUIButtonDirUrlFmt/bold.gif"$[Bold]"');
      $GUIButtons ['italic']      = array($ArrayCount++, "''", "''", '$[Italic Text]',
                                    '$GUIButtonDirUrlFmt/italic.gif"$[Italic]"');
      $GUIButtons ['underline']   = array($ArrayCount++, '{+', '+}', '$[Underlined Text]',
                                    '$GUIButtonDirUrlFmt/underline.gif"$[Underline]"');
      $GUIButtons ['strikout']    = array($ArrayCount++, '{-', '-}', 'Crossed Out Text',
                                    '$GUIButtonDirUrlFmt/strikethrough.gif"Strike Out"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['sup']         = array($ArrayCount++, "'^", "^'", '$[Superscript]',
                                    '$GUIButtonDirUrlFmt/sup.gif"Superscript"');
      $GUIButtons ['sub']         = array($ArrayCount++, "'_", "_'", '$[Subscript]',
                                    '$GUIButtonDirUrlFmt/sub.gif"Subscript"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['left']        = array($ArrayCount++, '%25left%25', '', '',
                                    '$GUIButtonDirUrlFmt/left.gif"$[Align Left]"');
      $GUIButtons ['center']      = array($ArrayCount++, '%25center%25', '', '',
                                    '$GUIButtonDirUrlFmt/center.gif"$[Align Center]"');
      $GUIButtons ['right']       = array($ArrayCount++, '%25right%25', '', '',
                                    '$GUIButtonDirUrlFmt/right.gif"$[Align Right]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['indent']      = array($ArrayCount++, '\\n->', '\\n', '$[Indented text]',
                                    '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
      $GUIButtons ['outdent']     = array($ArrayCount++, '\\n-<', '\\n', '$[Hanging indent]',
                                    '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['big']         = array($ArrayCount++, "'+", "+'", '$[Big Text]',
                                    '$GUIButtonDirUrlFmt/big.gif"Big Text"');
      $GUIButtons ['bigger']      = array($ArrayCount++, '[++', '++]', '$[MASSIVE Text]',
                                    '$GUIButtonDirUrlFmt/bigger.gif"Larger Text"');
      $GUIButtons ['small']       = array($ArrayCount++, "'-", "-'", '$[small text]',
                                    '$GUIButtonDirUrlFmt/small.gif"$[small text]"');
      $GUIButtons ['smaller']     = array($ArrayCount++, '[--', '--]', '$[tiny text]',
                                    '$GUIButtonDirUrlFmt/smaller.gif"$[tiny text]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['h1']          = array($ArrayCount++, '\\n! ', '\\n', '$[Heading1]',
                                    '$GUIButtonDirUrlFmt/h1.gif"$[Heading1]"');
      $GUIButtons ['h2']          = array($ArrayCount++, '\\n----\\n!! ', '\\n', '$[Heading2]',
                                    '$GUIButtonDirUrlFmt/h2.gif"$[Heading2]"');
      $GUIButtons ['h3']          = array($ArrayCount++, '\\n!!! ', '\\n', '$[Heading3]',
                                    '$GUIButtonDirUrlFmt/h3.gif"$[Heading3]"');
      $GUIButtons ['h4']          = array($ArrayCount++, '\\n!!!! ', '\\n', '$[Heading4]',
                                    '$GUIButtonDirUrlFmt/h4.gif"$[Heading4]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['table']       = array($ArrayCount++, '||border=1 width=80%25\\n||!Hdr ||!Hdr ||!Hdr ||\\n
||     ||     ||     ||\\n||     ||     ||     ||\\n', '', '',
                                     '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
#Must be changed to one line!
      $GUIButtons ['advtable']    = array($ArrayCount++, "(:table border=1 width=80%25:)\\n
(:cellnr:)'''Header'''\\n(:cell:)'''Header'''\\n(:cell:)'''Header'''\\n
(:cellnr:)\\n(:cell:)\\n(:cell:)\\n(:tableend:)\\n",'', '',
                                    '$GUIButtonDirUrlFmt/tableadv.gif"$[Advanced table]"');
#Must be changed to one line!
      $GUIButtons ['tabtable']    = array($ArrayCount++, '', '', '',
				    "<input type='image' name='tabtable' src='\$GUIButtonDirUrlFmt/excel.gif'
                                    title='$[Convert tabs to table]' />");
#Must be changed to one line - the $ must be escaped !
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '\\n->', '\\n', '$[2nd Line]', '<br \>');
      $GUIButtons ['pagelink']    = array($ArrayCount++, '[[',']]', '$[Page link]',
                                    '$GUIButtonDirUrlFmt/pagelink.gif"Link to internal page"');
      $GUIButtons ['extlink']     = array($ArrayCount++, '[[',']]', '$[http:// | link text]',
                                    '$GUIButtonDirUrlFmt/extlink.gif"Link to external page"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['attach']      = array($ArrayCount++, 'Attach:','', '$[file.ext]',
                                    '$GUIButtonDirUrlFmt/attach.gif"Attach File"');
      $GUIButtons ['image']       = array($ArrayCount++,
                                    '%25rframe text-align=left height=50px margin-top=7px margin-left=10px%25 [[',
                                    " | SameImageName.jpg%22MOUSE HOVER TEXT%22]] | '-SUBTITLE-'", '$[ImageName.jpg]',
                                    '$GUIButtonDirUrlFmt/image.gif"Thumbnail of Image floating right"');
      $GUIButtons ['pdf']         = array($ArrayCount++, '%25lframe text-align=center margin-right=10px%25 [[',
                                    " | Attach:pdf.gif%22MOUSE HOVER TEXT%22]] | '-SUBTITLE-'", '$[PDFfile.pdf]',
                                    '$GUIButtonDirUrlFmt/pdf.gif"$[Link to PDF-File float left]"');
# "Attach:pdf.gif" must be exchanged by the path of your pdf.gif in your GuiEdit-Directory!
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['anchor']      = array($ArrayCount++, '[[#', ']]', '$[Anchor Name]',
                                    '$GUIButtonDirUrlFmt/anchor.gif"$[Invisible Anchor to Link To]"');
      $GUIButtons ['anchorlink']  = array($ArrayCount++, '[[#', '| text]]', '$[Anchor Name]',
                                    '$GUIButtonDirUrlFmt/anchorlink.gif"$[Link to Anchor in SAME page]"');
      $GUIButtons ['anchor2']     = array($ArrayCount++, '[[', '#AnchorName | text]]', '$[PageName]',
                                    '$GUIButtonDirUrlFmt/anchor2.gif"$[Link to Anchor on DIFFERENT page]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['ol']          = array($ArrayCount++, '\\n# ', '\\n', '$[Ordered list]',
                                    '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
      $GUIButtons ['ul']          = array($ArrayCount++, '\\n* ', '\\n', '$[Unordered list]',
                                    '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
      $GUIButtons ['hr']          = array($ArrayCount++, '\\n----\\n', '', '',
                                    '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['snote']       = array($ArrayCount++, '{=', '=}', '$[text]',
                                    '$GUIButtonDirUrlFmt/snote.gif"$[Sticky note]"');
      $GUIButtons ['sig']         = array($ArrayCount++, '----\\n[[~]] January 08, 2007, at 12:49 PM', '', '',
                                    '$GUIButtonDirUrlFmt/sig.gif"$[Stamp your name and current date]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['textblue']    = array($ArrayCount++, '%25blue%25', '%25%25', '$[Blue Text]',
                                    '$GUIButtonDirUrlFmt/hightextblue.gif"$[Blue Text]"');
      $GUIButtons ['textgreen']   = array($ArrayCount++, '%25green%25', '%25%25', '$[Green Text]',
                                    '$GUIButtonDirUrlFmt/hightextgreen.gif"$[Green Text]"');
      $GUIButtons ['textred']     = array($ArrayCount++, '%25red%25', '%25%25', '$[Red Text]',
                                    '$GUIButtonDirUrlFmt/hightextred.gif"$[Red Text]"');
      $GUIButtons ['textyellow']  = array($ArrayCount++, '%25yellow%25', '%25%25', '$[Yellow Text]',
                                    '$GUIButtonDirUrlFmt/hightextyellow.gif"$[Yellow Text]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
      $GUIButtons ['bgblue']      = array($ArrayCount++, '%25bgcolor=blue%25', '%25%25', '$[Background Blue]',
                                    '$GUIButtonDirUrlFmt/highbgblue.gif"$[Blue Text]"');
      $GUIButtons ['bggreen']     = array($ArrayCount++, '%25bgcolor=green%25', '%25%25', '$[Background Green]',
                                    '$GUIButtonDirUrlFmt/highbggreen.gif"$[Green Text]"');
      $GUIButtons ['bgred']       = array($ArrayCount++, '%25bgcolor=red%25', '%25%25', '$[Background Red]',
                                    '$GUIButtonDirUrlFmt/highbgred.gif"$[Red Text]"');
      $GUIButtons ['bgyellow']    = array($ArrayCount++, '%25bgcolor=yellow%25', '%25%25', '$[Background Yellow]',
                                    '$GUIButtonDirUrlFmt/highbgyellow.gif"$[Yellow Text]"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
      $GUIButtons ['nextline']    = array($ArrayCount++, '\\\\\\\\\\n', '', '',
                                    '$GUIButtonDirUrlFmt/nextline.gif"Line Break"');
      $GUIButtons ['nextline2']   = array($ArrayCount++, '\\\\\\\\\\\\\\n', '', '',
                                    '$GUIButtonDirUrlFmt/nextline2.gif"2 Line Breaks"');
      $GUIButtons ['return']      = array($ArrayCount++, '[[<<]] \\n', '', '',
                                    '$GUIButtonDirUrlFmt/return.gif"Return"');
      $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
      $GUIButtons ['code']        = array($ArrayCount++, '[%40', '%40]', '$[UnCoded Text]',
                                    '$GUIButtonDirUrlFmt/code.gif"Preformated Code"');


# $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
#                     '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
# $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
#                     '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
# $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
#                     '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
# $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
#                     '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
# $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
#                     '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
# $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
#                     '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
# $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
#                     '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
# $GUIButtons['table'] = array(600,
#                       '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n||     ||     ||     ||\\n||     ||     ||     ||\\n', '', '',
#                     '$GUIButtonDirUrlFmt/table.gif"$[Table]"');


include_once('cookbook/LaTeXMathML.php');
#include_once("$FarmD/cookbook/LaTeXMathML.php");
#include_once('cookbook/jsMath.php');
#SDV($ActionSkin['print'], 'skidoo');
#Makes a carriage returns in the edit window act like newlines in display mode
# $HTMLPNewline = '<br />';
#Prevents PmWiki group from appearing in searches.
$SearchPatterns['default'][] = '!^PmWiki\\.!';
# SDV($SkinColor, 'darkblue');

I'm pretty sure all the right folders are in the right places: in pub I've got; css <-for a particular skin called "light" guiedit <-doesn't work LaTeXMathML <-mostly works MyGuiEdit <-doesn't work quicktoc skins wsplus <-doesn't work

is it some kind of clash between MyGuiEdit and guiedit?

If you browse to http://YOURSERVER/PmWiki/pub/MyGuiEdit/h2.gif, do you see the H2 button? Assuming that YOURSERVER is "localhost" or "127.0.0.1", or "www.yoursite.net"? If not, please try this
$GUIButtonDirUrlFmt = '$FarmPubDirUrl/MyGuiEdit';
instead of the line above "$GUIButtonDirUrlFmt =..." and report if it works. --Petko July 24, 2009, at 01:45 PM

Do you mean this: http: // www. jm546. net /PmWiki/pub/MyGuiEdit/h2.gif ? (I can't alter the config file on the PC I'm on, so I'll try it later on)

-Promsan 2009:OC:24