Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Alpha version of Privacy Policy plugin available
Date: 2006/06/01 15:07 By: mikko Status: Moderator  
Karma: 107  
Moderator

Posts: 2230
graphgraph
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)

Click here to see the profile of this user The topic has been locked.

Re:Alpha version of Privacy Policy plugin available
Date: 2006/06/02 05:50 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 6011
graph
Mikko,

this sounds awesome!
Can't wait to look at your code!
Thanks for sharing!
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The topic has been locked.

Re:Alpha version of Privacy Policy plugin available
Date: 2006/06/02 05:57 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 6011
graph
Just installed it locally ..

I guess you have PHP5 on your end because I get

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in W:wwwCB10_J108componentscom_comprofilerpluginuserplug_privacypolicyprivacypolicy.php on line 14

on
private $tab_plugins=null;
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The topic has been locked.

Re:Alpha version of Privacy Policy plugin availabl
Date: 2006/06/06 03:34 By: geeffland Status: CB Doc subscriber  
Karma: 226  
Moderator

Posts: 811
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Alpha version of Privacy Policy plugin availabl
Date: 2006/06/06 03:50 By: mikko Status: Moderator  
Karma: 107  
Moderator

Posts: 2230
graphgraph
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)

Click here to see the profile of this user The topic has been locked.

Re:Alpha version of Privacy Policy plugin availabl
Date: 2006/06/06 03:54 By: geeffland Status: CB Doc subscriber  
Karma: 226  
Moderator

Posts: 811
graphgraph
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
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login