|
|
Alpha version of Privacy Policy plugin available
|
|
Date: 2006/06/01 15:07
|
By: mikko
|
Status: Moderator
|
|
|
Karma: 106  
|
|
Moderator  | Posts: 2230 |   | |
|
I spent a couple of hours yesterday and coded a plugin to implement privacy policy on CB tabs.
The plugin works roughly like this: -administrator defines one or several privacy policies in the database -user chooses which privacy policy should apply to his profile -based on the privacy policy tabs will be hidden when the profile is viewed by someone else than the owner
Demo: http://hondchan.dy.fi/joomla Dev builds: http://hondchan.dy.fi/downloads
Discuss this here: http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,14367
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The topic has been locked. |
|
|
|
Re:Alpha version of Privacy Policy plugin availabl
|
|
Date: 2006/06/06 03:34
|
By: geeffland
|
Status:
|
|
|
Karma: 226  
|
|
Moderator  | Posts: 807 |   | |
|
mikko,
Looks very intersting... had a few questions...
From a high level... how does this plugin prevent items from being shown... noticed the return null; stuf and not sure if that keeps CB from showing its normal stuff or how you supress it... assume it will work similar for getEditTab as it does for getDisplaytab??
Thanks, Greg CB3PD Developer - CB Connector (formerly phpBB Connector) plugin
|
|
The topic has been locked. |
|
|
|
Re:Alpha version of Privacy Policy plugin availabl
|
|
Date: 2006/06/06 03:50
|
By: mikko
|
Status: Moderator
|
|
|
Karma: 106  
|
|
Moderator  | Posts: 2230 |   | |
|
When I was writign listtab, I noticed that if tab has fields set to false and plugin return null or empty string, CB will not draw a tab. (You might need to se description to null as well)
The plugin provides encapsulation for other plugins. This is an alpha version, and not everything is implemented.
When the plugin is installed, it creates a new table and copies all plugin data from tabs table to that back-up table. After this is done, it replaces all other plugins by itself in that table.
When the function getEditTab is called, the plugin will activate and check wether this tab should be drawn. If so, it will fetch the name of the appropriate plugin from the back-up table and then call the getEditTab of that tab and return what ever the other plugin returned.
If the tab is not to be displayed, the real plugin is not called and the fiels attribute of the tab is set to false, so that CB will not draw the fields. Since there is nothing to display in the tab now, it will not be drawn.
The same function needs to be implemented to all other html-generating plugin functions as well to make this universal.
The other tables that the plugin creates are for configuring different kinds of privacy policies.
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The topic has been locked. |
|
|
|
Re:Alpha version of Privacy Policy plugin availabl
|
|
Date: 2006/06/06 03:54
|
By: geeffland
|
Status:
|
|
|
Karma: 226  
|
|
Moderator  | Posts: 807 |   | |
|
Does this also work for individual fields within a tab or just on a tab as a whole? CB3PD Developer - CB Connector (formerly phpBB Connector) plugin
|
|
The topic has been locked. |
|
|