plugin:favoris
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:favoris [2009-03-04 09:51] – 145.242.11.3 | plugin:favoris [2023-10-30 23:12] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== favoris Plugin ====== | ====== favoris Plugin ====== | ||
- | |||
- | ~~NOCACHE~~ | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: Displays your favorite pages (most visited) and let you set them up (fr: Affiche les liens vers vos pages favorites (les plus visitees) et vous permet de les gerer) |
author | author | ||
email : emauvaisfr@yahoo.fr | email : emauvaisfr@yahoo.fr | ||
type : action, syntax | type : action, syntax | ||
lastupdate : 2009-03-04 | lastupdate : 2009-03-04 | ||
- | compatible : 2008-05-05 | + | compatible : Rincewind, Angua |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
- | ---- | + | |
- | ^ Download | [[http://membres.lycos.fr/emauvais/ | + | downloadurl: |
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | ---- | ||
===== Description ===== | ===== Description ===== | ||
+ | |||
* syntax: displays the list of your recent and favorite pages | * syntax: displays the list of your recent and favorite pages | ||
* action: handle the favorite tracking cookies each time you visit a page | * action: handle the favorite tracking cookies each time you visit a page | ||
Line 26: | Line 28: | ||
===== Usage ===== | ===== Usage ===== | ||
+ | |||
* Add ''< | * Add ''< | ||
* Double-click to make the controls appear (or don't move the mouse for 2 seconds over the favorites area) | * Double-click to make the controls appear (or don't move the mouse for 2 seconds over the favorites area) | ||
Line 47: | Line 50: | ||
===== Version history ===== | ===== Version history ===== | ||
+ | |||
* 2008-09-24: first one! | * 2008-09-24: first one! | ||
* 2008-09-25: corrects a warning ('' | * 2008-09-25: corrects a warning ('' | ||
Line 55: | Line 59: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
* Tell me... | * Tell me... | ||
* One of the best plugin on my opinion! May I suggest "Pages récemment visitées" | * One of the best plugin on my opinion! May I suggest "Pages récemment visitées" | ||
* < | * < | ||
+ | |||
+ | ==== Patch to show page titles ==== | ||
+ | |||
+ | Nice plugin! | ||
+ | <file php syntax.php (old)> | ||
+ | | ||
+ | if (!plugin_isdisabled(' | ||
+ | |||
+ | if (!$pagelist) { | ||
+ | $titrePage=explode(":", | ||
+ | $titrePage=$titrePage[sizeof($titrePage)-1]; | ||
+ | $titrePage=str_replace(' | ||
+ | } | ||
+ | else { | ||
+ | $pagelist-> | ||
+ | $pagelist-> | ||
+ | $pagelist-> | ||
+ | $titrePage = $pagelist-> | ||
+ | if (!$titrePage) $titrePage = str_replace(' | ||
+ | $titrePage = hsc($titrePage); | ||
+ | } | ||
+ | if (@file_exists(fullpath(wikiFN($page)))) return "<a href=' | ||
+ | else return "<a href=' | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | with | ||
+ | <file php syntax.php (new)> | ||
+ | | ||
+ | $titrePage=p_get_first_heading($page); | ||
+ | if (!$titrePage) { | ||
+ | |||
+ | if (!plugin_isdisabled(' | ||
+ | |||
+ | if (!$pagelist) { | ||
+ | $titrePage=explode(":", | ||
+ | $titrePage=$titrePage[sizeof($titrePage)-1]; | ||
+ | $titrePage=str_replace(' | ||
+ | } | ||
+ | else { | ||
+ | $pagelist-> | ||
+ | $pagelist-> | ||
+ | $pagelist-> | ||
+ | $titrePage = $pagelist-> | ||
+ | if (!$titrePage) $titrePage = str_replace(' | ||
+ | $titrePage = hsc($titrePage); | ||
+ | } | ||
+ | } | ||
+ | if (@file_exists(fullpath(wikiFN($page)))) return "<a href=' | ||
+ | else return "<a href=' | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== German Translate ==== | ||
+ | <file php lang.php> | ||
+ | <?php | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | |||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== 400 Bad Request error ==== | ||
+ | |||
+ | Thanks for this excellent plugin! | ||
+ | |||
+ | ==== Patch for a wiki farm setup ==== | ||
+ | |||
+ | <code diff> | ||
+ | --- action.php.ORIG 2009-03-03 17: | ||
+ | +++ action.php 2016-03-15 11: | ||
+ | @@ -42,6 +42,8 @@ | ||
+ | | ||
+ | | ||
+ | |||
+ | + $cookieDir = empty($conf[' | ||
+ | + | ||
+ | | ||
+ | | ||
+ | } | ||
+ | @@ -55,7 +57,7 @@ | ||
+ | //Si on ne souhaite pas suivre les favoris | ||
+ | if ($fav[' | ||
+ | //On efface les eventuels cookies existants (sauf off) | ||
+ | - foreach ($_COOKIE[' | ||
+ | + foreach ($_COOKIE[' | ||
+ | | ||
+ | } | ||
+ | |||
+ | @@ -64,7 +66,7 @@ | ||
+ | //On efface tous les cookies (y compris off) | ||
+ | | ||
+ | | ||
+ | - if ($cpt != " | ||
+ | + if ($cpt != " | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | @@ -82,7 +84,7 @@ | ||
+ | else $cpt=1; | ||
+ | |||
+ | //On positionne le cookie | ||
+ | - setCookie(" | ||
+ | + setCookie(" | ||
+ | } | ||
+ | </ | ||
+ |
plugin/favoris.1236156706.txt.gz · Last modified: 2009-10-06 09:56 (external edit)