Loading...
 
Skip to main content

Sandbox preview/save buttons missing for non-admin users

Status
Open
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)
Submitted by
lbmaian
Lastmod by
Nelson Ko
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...

Priority
25
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
 Show.tiki.org is currently unavailable

Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.

Ticket ID
2490
Created
Friday 08 May, 2009 04:22:17 GMT-0000
by Unknown
LastModif
Saturday 06 July, 2024 10:21:44 GMT-0000