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 revisionBoth sides next revision
plugin:usersubscriptions [2010-09-24 09:46] – [Description] 195.220.94.89plugin:usersubscriptions [2018-06-06 00:21] Klap-in
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//\\ 
 //2009-01-26 : inherited subscription display option added, recursive parent subscription check fixed//\\  //2009-01-26 : inherited subscription display option added, recursive parent subscription check fixed//\\ 
 //2009-09-15 : added template for easy styling, fixed some bugs (img paths ...) and added regexp based item exclusion (for _template, sidebar ...)//\\  //2009-09-15 : added template for easy styling, fixed some bugs (img paths ...) and added regexp based item exclusion (for _template, sidebar ...)//\\ 
-//2010-09-24 : merged some patches (thx to "MR") and fixed caching issue+//2010-09-24 : merged some patches (thx to "MR") and fixed caching issue//\\ 
  
 //En, De, Pt, Es and Fr lang files included, translations are welcome ...//\\  //En, De, Pt, Es and Fr lang files included, translations are welcome ...//\\ 
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: 2023-12-17 21:29 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki