DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:usersubscriptions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revision
plugin:usersubscriptions [2010-09-24 09:46]
195.220.94.89
plugin:usersubscriptions [2018-06-06 00:26]
Klap-in [Download and Installation]
Line 12: Line 12:
 similar    : listeabo similar    : listeabo
 tags       : subscription listing syntax tags       : subscription listing syntax
----- 
  
-^ Download | [[http://dokuwiki.yent.eu/usersubscriptions.zip|usersubscriptions.zip]] |+downloadurl: http://dokuwiki.yent.eu/usersubscriptions.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 +----
  
 ===== Description ===== ===== Description =====
  
-The Syntax [[plugins|Plugin]] allows to display the subscription list of the current user. It can display list for a specific namespace, the current namespace or all namespaces. In addition, it provides a quick way to subscribe or unsubscribe.+The Syntax Plugin allows to display the subscription list of the current user. It can display list for a specific namespace, the current namespace or all namespaces. In addition, it provides a quick way to subscribe or unsubscribe.
  
 //2009-01-27 : Added ACL check for quick subscribe dropdown filling//\\  //2009-01-27 : Added ACL check for quick subscribe dropdown filling//\\ 
Line 42: Line 45:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
   * [[http://dokuwiki.yent.eu/usersubscriptions.zip]]   * [[http://dokuwiki.yent.eu/usersubscriptions.zip]]
Line 49: Line 52:
  
 ===== Screenshot ===== ===== Screenshot =====
-   Generated by putting <usersubscriptions * r deletelink quicksubscribe /> in the page.+Generated by putting <usersubscriptions * r deletelink quicksubscribe /> in the page.
  
 {{ http://dokuwiki.yent.eu/usersubscriptions_screenshot.png?nocache }} {{ http://dokuwiki.yent.eu/usersubscriptions_screenshot.png?nocache }}
Line 187: Line 190:
 --------------- ---------------
 Did you add NOCACHE to the page? Did you add NOCACHE to the page?
 +>no, I didn't - it works properly after including a <code>~~NOCACHE~~</code> to the page - thx!
 ==== 2010-09-24 ==== ==== 2010-09-24 ====
  
 Included all patches, block now shows where it is expected to ... Also moved cache disabling line a bit upper, because when user disconnected, cache was not disabled so a version of the page without the form was cached and then served again even if the user reconnected ... my bad ... Included all patches, block now shows where it is expected to ... Also moved cache disabling line a bit upper, because when user disconnected, cache was not disabled so a version of the page without the form was cached and then served again even if the user reconnected ... my bad ...
 +
 +==== 2010-12-05 ====
 +
 +After an Dokuwiki-upgrade to the newest version (Anteater) i get an error, when i want to open the subscription-page. 
 +"Fatal error: Call to undefined function is_subscribed() in /.../lib/plugins/usersubscriptions/syntax.php on line 174"
 +Is there a new Plugin-Version on the horizon or can you help me?
 +
 +> Indeed the is_subscribed() function has disappeared from Dokuwiki (it was used through an include inside the plugin).
 +> A quick "dirty" fix is to copy the function in the syntax.php file of the plugin. A good place is between the includes and the class (the function shall absolutely be out of the class definition).
 +> Below a copy of the code coming from the former release of Dokuwiki
 +  function is_subscribed($id,$uid,$ns=false){
 +    if(!$ns) {
 +      $file=metaFN($id,'.mlist');
 +    } else {
 +      if(!getNS($id)) {
 +        $file = metaFN(getNS($id),'.mlist');
 +      } else {
 +        $file = metaFN(getNS($id),'/.mlist');
 +      }
 +    }
 +    if (@file_exists($file)) {
 +      $mlist = file($file);
 +      $pos = array_search($uid."\n",$mlist);
 +      return is_int($pos);
 +    }
 +    return false;
 +  }
 +  
 +It should probably be more proper to work on a patch that will use the new Dokuwiki functions, but I don't have enough time at now.
 +> Hope this help, waiting for a better solution
 +> MR (2010-12-08)
 +
 +**Thank you very much, it works fine now! thumbup**
 +
 +
 +==== 2014-04-04 ====
 +
 +I have installed this plug in, yet now this appears
 +  Fatal error: Call to undefined function is_subscribed() 
 +  in lib\plugins\usersubscriptions\syntax.php on line 178
 +Can someone help me please?
plugin/usersubscriptions.txt · Last modified: 2021-04-20 19:05 by Dr-Yukon