DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:recent

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
plugin:recent [2015-12-11 10:33]
141.65.129.192 old revision restored (2015-03-13 09:25)
plugin:recent [2021-01-22 17:59] (current)
Aleksandr
Line 14: Line 14:
 ---- ----
  
-====== How to use ======+===== How to use =====
  
 Simply write ''<nowiki>{{changelog}}</nowiki>'' in the source page. Simply write ''<nowiki>{{changelog}}</nowiki>'' in the source page.
  
-====== How to install ======+===== How to install =====
  
 First, Create a folder named 'recent' in 'lib/plugins' First, Create a folder named 'recent' in 'lib/plugins'
Line 99: Line 99:
 </code> </code>
  
-====== Contact ======+===== Contact =====
  
 This my first plugin. i hope you'll like it ;) \\ This my first plugin. i hope you'll like it ;) \\
 ido [at] woow-fr [dot] com ido [at] woow-fr [dot] com
  
-====== Comments ======+===== Comments =====
  
 > Looks good :-), a couple of comments ;-) \\ Why create a separate file for your ''Rethtml_recent()'' function?  Define it as a function within your plugin class and call it using ''%%$this->Rethtml_recent()%%''. Note, per the [[devel:Syntax Plugins|syntax plugin guidelines]], its good policy to prefix your own functions with an underscore. I see you have reworked the ''html_recent()''((inc/html.php)) function  to output to a string.  You could future proof your plugin by using [[http://www.php.net/manual/en/ref.outcontrol.php|PHP output buffering]] functions and calling ''html_recent()'' directly. All of which would make your code go something like this ...<code php> > Looks good :-), a couple of comments ;-) \\ Why create a separate file for your ''Rethtml_recent()'' function?  Define it as a function within your plugin class and call it using ''%%$this->Rethtml_recent()%%''. Note, per the [[devel:Syntax Plugins|syntax plugin guidelines]], its good policy to prefix your own functions with an underscore. I see you have reworked the ''html_recent()''((inc/html.php)) function  to output to a string.  You could future proof your plugin by using [[http://www.php.net/manual/en/ref.outcontrol.php|PHP output buffering]] functions and calling ''html_recent()'' directly. All of which would make your code go something like this ...<code php>
plugin/recent.1449826419.txt.gz ยท Last modified: 2015-12-11 10:33 by 141.65.129.192