Loading...
 
Skip to main content

Sandbox preview/save buttons missing for non-admin users

Status
Closed
Subject
Sandbox preview/save buttons missing for non-admin users
Version
2.x
3.x
Category
  • Usability
  • Patch
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
Invalid
Submitted by
lbmaian
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Couldn't find another bug report for this, although this is an extremely noticeable bug so there should be an existing report.

The wiki sandbox for non-admin users is useless because it doesn't show save/preview buttons.

Files
  1. Sandbox Patch
  2. Wiki Edit Actions
  3. Sandbox Patch
Solution
Index: wiki_edit_actions.tpl
===================================================================
--- wiki_edit_actions.tpl       (revision 18909)
+++ wiki_edit_actions.tpl       (working copy)
@@ -1,3 +1,6 @@
+{if $page eq 'sandbox'}
+<input type="submit" class="wikiaction" onmouseover="return overlib('Preview your changes.{/tr}');" onmouseout="nd();" name="preview" value="Preview{/tr}" onclick="needToConfirm=false;" /> 
+{/if}
 {if $page|lower neq 'sandbox' or $tiki_p_admin eq 'y'}
        <input type="submit" class="wikiaction" onmouseover="return overlib('Preview your changes.{/tr}');" onmouseout="nd();" name="preview" value="Preview{/tr}" onclick="needToConfirm=false;" />
        {if $translation_mode eq 'y'}


The above patch add a preview button for the sandbox page always without messing with the save buttons, etc...

Workaround
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2490
Created
Friday 08 May, 2009 04:22:17 UTC
by Unknown
LastModif
Tuesday 26 May, 2026 08:41:18 UTC


Show PHP error messages