Ticket #91 (closed defect: fixed)
WikiEdit and Mod_rewrite
| Reported by: | dartar | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.6.2 |
| Component: | 3rdparty | Version: | 1.1.6.1 |
| Severity: | normal | Keywords: | IIs windows |
| Cc: |
Description
(reported from: http://arek.c-consulting.co.id/ivan/wikka/wikka.php?wakka=WikiEditHack )
I don't use rewrite_mode since I'm using IIS as server, and I also put value for base_url for my wikka. Then I notice, by accident, that the Help button on WikiEdit does not point to the right page (FormattingRules). After checking the 3rdparty/plugins/wikiedit/wikiedit2.js, I found the problem. Here's what I've done to fix it:
- Create additional variable var rewrite_mode = false; right after var base_url = "";
- Change code to display the help button as follow
Original:
this.addButton("customhtml",'<td><div style="font:12px Arial;text-decoration:underline; padding:4px;" id="hilfe_' + this.id + '" onmouseover=\'this.className="btn-hover";\' '
+ 'onmouseout=\'this.className="btn-";\' class="btn-" '
+ 'onclick="this.className=\'btn-pressed\';window.open(base_url+\'wikka.php?wakka=FormattingRules\');" '
+ ' title="Help on Wikka formatting">Help</a>'
+ '</div></td>');
Hack:
this.addButton("customhtml",'<td><div class="btn-" id="hilfe_' + this.id + '" '
+ 'style="font:12px Arial;text-decoration:underline; padding:4px;" '
+ 'onmouseover=\'this.className="btn-hover";\' '
+ 'onmouseout=\'this.className="btn-";\' '
+ 'onclick="this.className=\'btn-pressed\'; '
+ 'window.open(\'' + base_url + (!rewrite_mode ? 'wikka.php?wakka=' : '') + 'FormattingRules\');" '
+ 'title="Help on Wikka formatting">Help</a>'
+ '</div></td>');
Change History
Note: See
TracTickets for help on using
tickets.