plugin:tagentry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:tagentry [2018-02-16 15:35] – sphaira | plugin:tagentry [2023-10-30 23:10] (current) – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description : Assign tags by clicking from list |
- | author | + | author |
- | email : sphairadev@null.net | + | email |
- | type | + | type : action |
- | lastupdate : 2018-02-15 | + | lastupdate |
- | compatible : 2008-05-05, Mulled Wine, Lemming, Anteater, Rincewind, Angua, | + | compatible |
- | depends | + | depends |
- | conflicts | + | conflicts |
- | similar | + | similar |
- | tags | + | tags : navigation, tags, editing, javascript |
- | + | downloadurl : https://github.com/ | |
- | downloadurl: | + | sourcerepo |
+ | bugtracker | ||
---- | ---- | ||
- | The // | + | The // |
- | ===== Download and installation | + | ===== Previous Authors |
- | Refer to [[: | + | * Robin Gareus |
+ | * Sphaira < | ||
- | < | + | ===== Changes |
- | + | ||
- | + | ||
- | ===== Author information | + | |
- | + | ||
- | I am not the author of this plugin but [[robin@gareus.org|Robin Gareus]] yes. I improve or correct this plugin during my spare time. Fixing an error or adding a new function takes time (development, | + | |
- | + | ||
- | Thank you for your understanding ;-). | + | |
- | + | ||
- | ===== Changelogs ===== | + | |
- | + | ||
- | * [[https:// | + | |
- | * Fix PHP 7 deprecated [[# | + | |
- | * [[https:// | + | |
- | * Update for **Dokuwiki 2017-02-19 " | + | |
- | * Fix the following bugs : [[# | + | |
- | * [[http:// | + | |
+ | {{rss> | ||
+ | ===== Download and installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
===== Bugs ===== | ===== Bugs ===== | ||
- | ==== " | + | Moved to [[plugin: |
- | When we use '' | + | ===== Discussion ===== |
- | ==== Tagentry checkboxes vanished when using the Dokuwiki " | + | Moved to [[plugin: |
- | + | ||
- | Just like the plugin was no more active in the edit page. | + | |
- | + | ||
- | > Had the same problem... | + | |
- | + | ||
- | if ( | + | |
- | || !empty($event-> | + | |
- | if ($event-> | + | |
- | + | ||
- | > //tmul - 2010-11-18// | + | |
- | + | ||
- | >> Thanks, the fix worked for me, using Anteater. If I experience any inconvenience, | + | |
- | >> // | + | |
- | + | ||
- | + | ||
- | >>> | + | |
- | >>> | + | |
- | >>> | + | |
- | + | ||
- | >>>> | + | |
- | + | ||
- | >>>>> | + | |
- | >>>>> | + | |
- | + | ||
- | >>>>>> | + | |
- | >>>>>> | + | |
- | + | ||
- | >>>>>>> | + | |
- | >>>>>>> | + | |
- | + | ||
- | >>>>>>>> | + | |
- | + | ||
- | if ($this-> | + | |
- | $alltags=array_map(' | + | |
- | } else { | + | |
- | $alltags=$this-> | + | |
- | } | + | |
- | + | ||
- | >>>>>>>> | + | |
- | >>>>>>>> | + | |
- | >>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | < | + | |
- | ./ | + | |
- | +++ ./ | + | |
- | @@ -55,7 +55,7 @@ | + | |
- | $pos = $event-> | + | |
- | | + | |
- | #echo " | + | |
- | - if ( | + | |
- | + if ( | + | |
- | || !empty($event-> | + | |
- | if ($event-> | + | |
- | | + | |
- | @@ -72,7 +72,7 @@ | + | |
- | } | + | |
- | + | ||
- | if ($this-> | + | |
- | - $alltags=$this-> | + | |
- | + $alltags=array_map(' | + | |
- | } else { | + | |
- | | + | |
- | } | + | |
- | </ | + | |
- | --- [[user> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | + | ||
- | ==== PHP 7.0 Issue ==== | + | |
- | + | ||
- | Neither the old nor the new version of this plugins works with Dokuwiki 2017-02-19 “Frusterick Manners” on PHP 7.0. Error shown is this: | + | |
- | < | + | |
- | Got error 'PHP message: PHP Fatal error: | + | |
- | Call to undefined function split() in | + | |
- | / | + | |
- | ... | + | |
- | </ | + | |
- | + | ||
- | I have no time to look into the code and fix it. \\ | + | |
- | JohnG 2017/09/13 16:30 CET | + | |
- | + | ||
- | Quick search shows that split() has been deprecated and removed from 7.0. It was replaced by preg_split() and explode(). The line in question is line 111 of action.php. Although making this change alone has not fixed the issue for me.\\ | + | |
- | EvanC 2017/09/14 15:15 EST | + | |
- | + | ||
- | Seems to work for me. I replaced the calls to split() with explode(). There are two calls, on line 111 and 125.\\ | + | |
- | nuess0r 2018/01/01 16:28 CET | + | |
- | + | ||
- | ==== Plugin Installation Error - " | + | |
- | Upon attempting to install this plugin | + | |
- | --- [[user> | + | |
- | + | ||
- | + | ||
- | ---- | + | |
- | + | ||
- | + | ||
- | ===== Discussions ===== | + | |
- | + | ||
- | > it doesn' | + | |
- | > JavaScript is enabled and other scripts (e.g. show/hide contents) is working | + | |
- | + | ||
- | --------------------------------- | + | |
- | \\ | + | |
- | ==== Tag tables formatting ===== | + | |
- | // Phi - 2010/08/25 // | + | |
- | + | ||
- | > Good plugin as far as I have used it. But the screen formatting was not very exciting. | + | |
- | > The very simple / basic modification below is done in order to get a better formatting of the XML tables of tags: | + | |
- | + | ||
- | * uniform width for the columns of the table | + | |
- | * one line for each box + tag label item. | + | |
- | + | ||
- | > Around line 250 in '' | + | |
- | <code php> | + | |
- | $rv.='< | + | |
- | $rv.=' < | + | |
- | $rv.=' <div class=" | + | |
- | </ | + | |
- | + | ||
- | > with the following | + | |
- | <code php> | + | |
- | $rv.='< | + | |
- | if (!$options[' | + | |
- | $rv.=' < | + | |
- | $rv.=' <div class=" | + | |
- | if ($options[' | + | |
- | | + | |
- | | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | if (is_array($options[' | + | |
- | && $this-> | + | |
- | continue; | + | |
- | $i++; | + | |
- | $ls = strlen($t); | + | |
- | if ($ls > $lsmax) $lsmax=$ls; | + | |
- | } | + | |
- | + | ||
- | For ($j=1; | + | |
- | $rv.='< | + | |
- | if ($j == 1) $rv.=" | + | |
- | if ($j > 1) $rv.=str_repeat(" | + | |
- | $rv.='</ | + | |
- | } | + | |
- | | + | |
- | | + | |
- | } | + | |
- | else { | + | |
- | | + | |
- | } | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | **__Note: | + | |
- | --------------------------------- | + | |
- | \\ | + | |
- | I tried this edit, but my website wouldn' | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Use Heading of tag page ==== | + | |
- | + | ||
- | When the tag entry is a page in the namesapce **tag** (default [[plugin: | + | |
- | + | ||
- | <code php> | + | |
- | /** | + | |
- | * Return Header title or tag name | + | |
- | * @param $tagname The name of tag without namespace | + | |
- | * @return Title of the tag page or tag name formatted | + | |
- | */ | + | |
- | function _getTagTitle($tagname){ | + | |
- | global $conf; | + | |
- | if( $conf[' | + | |
- | $tagplugin = plugin_load(' | + | |
- | if ( plugin_isdisabled(' | + | |
- | // | + | |
- | return $this-> | + | |
- | } | + | |
- | + | ||
- | $id = $tagname; | + | |
- | $exist = false; | + | |
- | resolve_pageID($tagplugin-> | + | |
- | if( $exist ){ | + | |
- | return p_get_first_heading($id, | + | |
- | } | + | |
- | } | + | |
- | return $this-> | + | |
- | } | + | |
- | + | ||
- | // Replace this line (in function _format_tags) | + | |
- | $rv.=' /> ' | + | |
- | // By this | + | |
- | $rv.=' /> ' | + | |
- | </ | + | |
- | + | ||
- | --- [[user> | + | |
- | + | ||
- | ---- | + | |
plugin/tagentry.1518791735.txt.gz · Last modified: 2018-02-16 15:35 by sphaira · Currently locked by: 18.119.107.161