Posts: 2,094
Threads: 54
Joined: Jan 2011
As mentioned e.g. in http://get-simple.info/forum/post/14630/#p14630, but also critized sometimes by our main testers like Oleg06 and Connie the documentation of plugins is not always the best.
I propose to create some standards for plugin developers (in the wiki) to make it easier for the plugin users.
So far I am using the following sections in my descriptions (on http://mvlcek.bplaced.net): - general description: what does the plugin do, features
- examples (optional): example frontend pages, backend screenshots
- installation: how to install, manual steps, for more complex plugins: how to check, if everything works, problem solving, manual workarounds if automatisms don't work
- usage: how to use the plugin ("goto plugins/xxx in administration", "enter (% ... %) in page", ...), basic usages first, then advanced usage
- API (optional): description of "public" functions that can be called from a template or component, description of parameters, etc.
- API for other plugins (optional): e.g. how to use the I18N plugin capabilities in another plugin, how to use a search plugin to search content in non-page files, etc.
If the author has no homepage, I think this information should be included in the first post of the support topic (and updated if necessary on new releases). Otherwise the first post of the support task should include: - short description, maybe link to examples
- installation: and problem solving - updated for common problems
- usage: main use cases
- link to homepage for more information
The Extend entry should include a short description and a short installation guide (and links to homepage and support topic in the resp. attributes).
Should there be a plugin-name.txt with descriptions in the plugin zip?
Should there be a description at the beginning of the main plugin file (currently I document the API in my plugins)?
What about a license file in the plugin zips?
What do you think about this?
Posts: 524
Threads: 48
Joined: Mar 2011
mvlcek Wrote:Otherwise the first post of the support task should include: (...) The first post should (I am strongly inclined to insert a bold MUST there...) include a link to the most recent version of the plugin in Extend.
It is extremely annoying having to search the support thread for a new version if some time has passed and new posts have been added after an annoucement. New or inexperienced users are likely to consult the forum instead of Extend.
Additionally, new features or squashed bugs could be mentioned. There should be no problem with clutter if only the most recent version is announced in the start post.
Posts: 1,204
Threads: 30
Joined: Jun 2010
How about addint a html readme (along with installation guide, usage examples etc.) inside plugin archives ?
Addons: blue business theme, Online Visitors, Notepad
Posts: 2,094
Threads: 54
Joined: Jan 2011
yojoe Wrote:How about addint a html readme (along with installation guide, usage examples etc.) inside plugin archives ?
I'd rather have only a small text file in the plugin (what it does and how to install it), as it's easier to create and easier to read without unpacking the zip.
Thus I'd rather see the most important information in the support topic. There it's easy to update when a new problem/solution is found. As for examples (for frontend functionality), I suppose there is nothing better than to show it on a website.
Posts: 1,928
Threads: 88
Joined: Apr 2010
I write a text file all the information to each plugin, collected the crumbs on the forum
Code: úþüÿþýõýты
<?php get_i18n_component('sidebar'); ?>
ôûѠòыñþрð ÑÂ÷ыúð
<div class="language">
<?php
$fullurl = $_SERVER["REQUEST_URI"];
if (strpos($fullurl,'setlang=') !== false) $fullurl = substr($fullurl, 0, strpos($fullurl,'setlang=')-1);
$fullurl .= strpos($fullurl,'?') === false ? '?' : '&';
?>
<a href="<?php echo $fullurl; ?>setlang=ru">руÑÂÑÂúøù</a>
<a href="<?php echo $fullurl; ?>setlang=en">english</a>
</div>
Ãœõýю
<ul><?php get_i18n_navigation(return_page_slug(),0,0); ?></ul>
ôûѠüуûьтøÑÂ÷ычýых ÑÂðùтþò
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_LANGUAGE); ?></ul>
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_MENU); ?></ul>
ôûѠúðрты ÑÂðùтð
òÑÂõ ÑÂтрðýøцы
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_PAGES); ?></ul>
ÑÂтрðýøцы тþûьúþ ø÷ üõýю
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_MENU); ?></ul>
ôûѠüуûьтøÑÂ÷ычýых ÑÂðùтþò
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_LANGUAGE); ?></ul>
ÔÛï Ã’áâÃÂÃ’ÚØ áâàÃÂÃÂØæ ÃÂ’ áâàÃÂÃÂØæë
<?php get_i18n_content('news-1'); ?>
<div class="breadcrumbs">
<a href="<?php echo find_url('index',null); ?>">home</a>
<?php get_i18n_breadcrumbs(return_page_slug()); ?>
</div>
Posts: 2,928
Threads: 195
Joined: Feb 2011
absolutely necessary:
All files MUST be in UTF-8!
All plugins which show text and produce output MUST support Language files in a standard way (there were discussions on a central plugin-languagefile.folder but I think that would be too much demanded...)
Posts: 290
Threads: 26
Joined: Oct 2010
Connie Wrote:absolutely necessary:
All plugins which show text and produce output MUST support Language files in a standard way (there were discussions on a central plugin-languagefile.folder but I think that would be too much demanded...)
That is a pretty big request! I know my plugins start english language only and I change them over if there is a good reception of the plugin itself (as it is a fair bit of extra works).
Maybe more appropriately is stating IF is supports (or needs to support) i18n using the correct file format, and if so, which languages are available.
On that topic, should a new language be added to the zip in extend, or as a language file (separate download) as I've seen both.
-Rob A>
Posts: 2,928
Threads: 195
Joined: Feb 2011
Rob,
you are absolutely right. I support that.
Posts: 1,848
Threads: 86
Joined: Aug 2009
RobA Wrote:On that topic, should a new language be added to the zip in extend, or as a language file (separate download) as I've seen both I would prefer it be the the plugin itself, but that's just my preference.
- Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 1,848
Threads: 86
Joined: Aug 2009
mvlcek - can you create a .TXT file template that I can post on Extend that plugin authors can download and edit for their own plugins? I feel this is the best way to push the idea of pluign authors creating a readme.txt file... give them a head start.
I would suggest building it in the "markdown" format so when we decide to display them on the Extend page, they will be HTML formatted. (this is the way WordPress does it when you create a plugin for them)
- Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 2,094
Threads: 54
Joined: Jan 2011
ccagle8 Wrote:mvlcek - can you create a .TXT file template that I can post on Extend that plugin authors can download and edit for their own plugins? I feel this is the best way to push the idea of pluign authors creating a readme.txt file... give them a head start.
I would suggest building it in the "markdown" format so when we decide to display them on the Extend page, they will be HTML formatted. (this is the way WordPress does it when you create a plugin for them)
OK, I'll do it. May take a few days, though.
Posts: 1,848
Threads: 86
Joined: Aug 2009
Thanks! When youre done, post it here so we can all comment on it and make sure it's complete, yet not too complicated that no one will do it.
- Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
|