Ticket #108 (new enhancement)

Opened 5 years ago

Last modified 7 months ago

making doubleclick for non-registered users configurable

Reported by: JavaWoman (NilsLindenberg) Owned by: unassigned
Priority: normal Milestone: blue-sky
Component: core Version: 1.1.6.1
Severity: normal Keywords: doubleclick edit anonymus users
Cc:

Description (last modified by DarTar) (diff)

There is another issue with double-click editing: while registered users can edit their preferences to use double-click editing or not, it is always on for non-registered (or not logged-in) users.

The result is that on pages that can be edited only by registered users, a double-click results in an unfriendly error message. Especially on a site that is mostly read-only for visitors this is a bad situation. The solution is to make this admin-configurable.

Add to wikka.config.php:

    "doubleclickedit" => "Y",      # set to "N" to disable double-click editing

and change the proposed line for the show handler above to:

<div class="page" <?php echo (((!$user && $this->config['doubleclickedit'] == "Y") || ($user['doubleclickedit'] == 'Y')) && $this->GetMethod
() == "show") ? "ondblclick=\"document.location='".$this->href("edit")."';\" " : "" ?>>

--JavaWoman

In that case, wouldn't you want new profiles to have dblclick turned off by default ? (TroelsKnakNielsen)

Change History

Changed 4 years ago by DarTar

  • description modified (diff)

formatting code snippets

Changed 4 years ago by NilsLindenberg

Perhaps a better solution (from  http://wiki.cs.cityu.edu.hk/CitiWiki/WikiDevOk:

(OK)Double Clicking: Only users has write access will have the double click editing function.

Would work with anonymus users, too! Of course second check would be if the user has turned on double-click.

Changed 7 months ago by BrianKoontz

  • milestone changed from 1.3 to blue-sky
Note: See TracTickets for help on using tickets.