Difference between revisions of "Free Software Directory:Features/Favorites"

From Free Software Directory
Jump to: navigation, search
(initial commit)
 
(added idea of how to work around security issue.)
Line 13: Line 13:
 
=== ToDo ===
 
=== ToDo ===
  
* Find a way of allowing properties to be set and queried on User pages, while maintaining the security of preventing arbitrary setting of page properties, which are queryable along with the rest of the site.
+
* Find a way of allowing properties to be set and queried on pages in the User: namespace, while maintaining the security of preventing arbitrary setting of properties on those pages that would make them queried as programs, along with other valid program entries. (Currently, properties set on pages in the User: namespace are not queryable.)
 +
** One such solution would be to re-enable querying on pages in the User: namespace, but to make sure that all normal queries exclude the User: namespace from their results.
 +
** We could set up a cron job to do a search and replace on the whole site that would append "[[:+]]" to every instance of "{{#ask " (so they would only display results from the empty namespace, i.e. the location of every valid program)... and then insert it into concept pages.
 
* Implement a template for holding the data
 
* Implement a template for holding the data
 
* Implement the {{#autoedit}} function
 
* Implement the {{#autoedit}} function

Revision as of 17:50, 28 November 2011


This is one of the proposed features to this site.

The Premise

We could create a button on the page of every entry so that people can favorite them. This would allow users to share interesting programs with one another.

Technical Details

Upon clicking, it could trigger the {{#autoedit}} function in the background so the pagename they clicked is added to a template on a page below the User's page called Favorites, (e.g., User:Jgay/Favorites).

ToDo

  • Find a way of allowing properties to be set and queried on pages in the User: namespace, while maintaining the security of preventing arbitrary setting of properties on those pages that would make them queried as programs, along with other valid program entries. (Currently, properties set on pages in the User: namespace are not queryable.)
    • One such solution would be to re-enable querying on pages in the User: namespace, but to make sure that all normal queries exclude the User: namespace from their results.
    • We could set up a cron job to do a search and replace on the whole site that would append "[[:+]]" to every instance of "{{#ask " (so they would only display results from the empty namespace, i.e. the location of every valid program)... and then insert it into concept pages.
  • Implement a template for holding the data
  • Implement the {{#autoedit}} function

Appearance

  • Should it be called a "I use this" button?

Developing the feature

Right now, Jgay and sudoman are thinking about this. If you have any ideas about how we could implement this, please get in touch with sudoman or jgay by leaving a message on our talk pages, or on IRC (irc.freenode.net).



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.