plugin:404manager
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:404manager [2014-02-19 08:57] – 14.201.111.244 | plugin:404manager [2024-02-01 11:20] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
email : gerardnico@gmail.com | email : gerardnico@gmail.com | ||
type : action, admin | type : action, admin | ||
- | lastupdate : 2009-03-16 | + | lastupdate : 2018-08-21 |
- | compatible : 2009-03-16 (maybe earlier), lemmings, anteater, rincewind, angua | + | compatible : 2018-04-22 " |
- | depends | + | depends |
conflicts | conflicts | ||
similar | similar | ||
tags : redirect, namespace, search | tags : redirect, namespace, search | ||
- | downloadurl: | + | downloadurl: |
- | ---- | + | bugtracker : https://github.com/ |
+ | sourcerepo : https:// | ||
- | ===== Download and Installation ===== | + | screenshot_img : https:// |
- | Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[: | + | updatemessage: This plugin |
- | + | ||
- | * [[http:// | + | |
- | + | ||
- | **Note :** | + | |
- | * I just release it and I test it on my [[http:// | + | |
- | * Work with php4 and php5. | + | |
- | * This plugin | + | |
- | + | ||
- | ===== What can this plugin do ? ===== | + | |
- | + | ||
- | **For writer :** | + | |
- | * Automatic redirection | + | |
- | * Verification that the page name is unique | + | |
- | + | ||
- | **For reader :** | + | |
- | * Redirection by configuration of a target page for a source page with the admin page | + | |
- | * Redirection by best namepage | + | |
- | * Redirection by best namespace | + | |
- | * Redirection to the internal search engine | + | |
- | + | ||
- | To know more about this plugin, please refer to this page : [[http:// | + | |
---- | ---- | ||
- | ==== Error with admin errors ==== | + | This plugin has been renamed |
- | + | ||
- | I accidentally tried to redirect to a page that did not exist in the admin page, but the php died with | + | |
- | an error: \\ | + | |
- | \\ | + | |
- | + | ||
- | Fatal error: Call to undefined method admin_plugin_404manager:: | + | |
- | + | ||
- | Similar errors for other things. | + | |
- | + | ||
- | Investigating I found that there appears to be a little bug in the script: | + | |
- | + | ||
- | <code php> | + | |
- | /** | + | |
- | * handle user request | + | |
- | */ | + | |
- | function handle() { | + | |
- | if($_POST[' | + | |
- | + | ||
- | $this-> | + | |
- | $this-> | + | |
- | + | ||
- | if ( $this-> | + | |
- | msg($this-> | + | |
- | return; | + | |
- | } | + | |
- | + | ||
- | if ( !page_exists($this-> | + | |
- | if ($this-> | + | |
- | $this-> | + | |
- | } else { | + | |
- | msg($this-> | + | |
- | return; | + | |
- | } | + | |
- | } else { | + | |
- | $this-> | + | |
- | } | + | |
- | + | ||
- | if ( page_exists($this-> | + | |
- | $title = false; | + | |
- | if ($conf[' | + | |
- | $title = p_get_first_heading($this-> | + | |
- | } | + | |
- | if(!$title) $title = $this-> | + | |
- | msg($this-> | + | |
- | return; | + | |
- | } | + | |
- | + | ||
- | $this-> | + | |
- | msg($this-> | + | |
- | + | ||
- | } | + | |
- | </ | + | |
- | + | ||
- | The following lines should have square brackets and not round brackets: | + | |
- | + | ||
- | <code php> | + | |
- | 85: msg($this-> | + | |
- | 93: msg($this-> | + | |
- | 106: | + | |
- | </ | + | |
- | + | ||
- | Diff: | + | |
- | + | ||
- | <code php> | + | |
- | 85c85 | + | |
- | < | + | |
- | --- | + | |
- | > | + | |
- | 93c93 | + | |
- | < | + | |
- | --- | + | |
- | > | + | |
- | 106c106 | + | |
- | < | + | |
- | --- | + | |
- | > | + | |
- | </ | + | |
- | + | ||
- | ==== Configuration Problem ==== | + | |
- | + | ||
- | {{ http:// | + | |
- | + | ||
- | I'm using the 05-05-2008 version of dokuwiki. Upgrading at the moment is hard as I've personalised a lot of dokuwiki' | + | |
- | + | ||
- | Merçi | + | |
- | + | ||
- | >> Nicolas GERARD : | + | |
- | >> What happens, if you do this one : | + | |
- | >> http:// | + | |
- | + | ||
- | >> The name in the admin menu is returned by the function getMenuText of the admin.php file in the plugin. | + | |
- | >> If the function don't find a translation, | + | |
- | + | ||
- | >>>> | + | |
- | + | ||
- | ==== IsRedirectionPresent & GoToEditMode Problem ==== | + | |
- | + | ||
- | There were apparently problems with implementing 404, both with this plugin and the core config option, with some users reporting that IE didn't get the edit page or the new page create dialogs properly. In testing with up-to-date versions of DokuWiki and IE this no longer seems to be an issue. | + | |
- | + | ||
- | ==== Default Namespace Template issue ==== | + | |
- | + | ||
- | Hi. This plugin ignores my __template.txt. | + | |
plugin/404manager.1392796646.txt.gz · Last modified: 2014-02-19 08:57 by 14.201.111.244