Skip to Content Skip to Menu

ListTab "Table Mod"

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 8 months ago #32889 by mikko
Replied by mikko on topic Re:ListTab "Table Mod"
Are you asking about privacy policy plugin, or list tab plugin?

If you read the readme inside the plugin zip packages, you will find an answer to this question.

mikko

Please Log in or Create an account to join the conversation.

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 8 months ago #32890 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
i mean the policy plugin. but, to use it- i have to install the list plugin before?

Iam very confused. The only thing i want, is that the user can set the permission to each tab.

My english is not the best- so probably this is why i dont understand the install introduction.

1. i made the hack in comprofiler.php
2. then i installed the listtab plugin and published it
3. then i installed the policy plugin and published it
4. then i configured the policy plugin which tab i want to influence

what i made wrong?

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 8 months ago #32891 by mikko
Replied by mikko on topic Re:ListTab
dennisth19 wrote:

i mean the policy plugin. but, to use it- i have to install the list plugin before?


Where did you read that you need to do this? These are independent plugins and you do not need listtab to use privacy policy.

PrivacyPolicy reuses some ListTab code, though.

Iam very confused. The only thing i want, is that the user can set the permission to each tab.

My english is not the best- so probably this is why i dont understand the install introduction.

1. i made the hack in comprofiler.php
2. then i installed the listtab plugin and published it
3. then i installed the policy plugin and published it
4. then i configured the policy plugin which tab i want to influence
what i made wrong?


Privacy Policy does not need any hacking. You just install it and configure it as explained in the readme.

mikko

Please Log in or Create an account to join the conversation.

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 8 months ago #32892 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
i read it in the readme file below:
Anyway, i try once more.

i activated all tabs in the policy plugin, but it looks like on the image you can see...





ReadMe for Community Builder plugin PrivacyPolicy

Copyright: (C) 2006-2007 Mikko Rönkkö</copyright>
License: www.gnu.org/copyleft/gpl.html GNU/GPL

For support, bug reports, etc see www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,14367/


Introduction
PrivacyPolicy is a plugin that allows configuring privacy levels for tabs.

The plugin overwrites itself as the manager for the tabs for which it is enabled and moves
the plugin which was previously configured to a tab to backup database table. This is
perfectly safe and you can be rolled back by disabling this plugin for a tab or by
uninstalling this plugin.


Instructions

Installing

0) Back up your data

1) Ensure you have Joomla 1.0.1X and Community Builder 1.0.X
If you have CB 1.0.2 you need to make a small customization which is described here
forge.joomla.org/sf/go/artf6990?nav=1 .

2) Install listtab.zip as a Community Builder Plugin:
Administrator/Components/Plugin Management
From the "Install New Plugin" section (at the bottom of the page), upload privacypolicy.zip
and Install.

Once Installed, continue to the Community Builder Plugin Manager, verify that "Privacy Policy" is
listed and is "Installed"

3) Populate new data
Administrator/Components/Tab Management
Create a "New Tab" for every category you wish to add to a user's profile.
Ensure that the "Publish" dropdown is set to "Yes" (or remember to set it later)
Ensure that the "Display type" dropdown is set to "Tabbed pane"

Administrator/Components/Field Management
Create a "New Field" for every piece of data you wish to add to the Tab you created
in the previous step.
Ensure that the "Tab" dropdown is set to the Tab name you created in the previous
step.
Ensure that the "Publish" Dropdown is set to "Yes" (or remember to set it later)


4) Modify the List Tab Plugin settings
Administrator/Components/Plugin Management/Privacy Policy
Ensure that the "Publish" Dropdown is set to "Yes" (or remember to set it later)

Select which tabs this plugin should control. These tabs can contain other plugins.
(note: ListTab MUST be configured before Privacy Policy if used);

Select which tabs' privacy setting users can control. All other tabs are automatically
set to default privacy policy.


You can configure up to five different privacy policies. Each policy has a title and
an SQL query. You can write any query and use the following variables which will
be substituted when the query is executed. The tab is shown if the query returns a
single 'cell' containing number 1.

{my} = id of the user which is trying to view a tab. Null if the user is not logged in.
{user} = id of the user whose profile is being viewed

Three sample policies are included:
-show tab to all
-show tab to registered users only
-show tab to connected users only

Feel free to make your own policies and publish them to the support thread.

The last settign is the default policy. This policy does not need to be user selectable.

5) All the changes to database will be done next time when someone views a profile. Do this now.
If you chose any tabs to be user controlled, a new tab and fields are created.

6) Configure the new tab and fields at the backend. You probably want to change the titles,
but nothing else.

Uninstalling
1) Delete the Privacy Policy Plugin
Administrator/Components/Plugin Management

Attachments:

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 8 months ago #32893 by mikko
Replied by mikko on topic Re:ListTab "Table Mod"
OK, there was an outdated readme. Get a new version from my server.

mikko

Please Log in or Create an account to join the conversation.

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 8 months ago #32895 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
ohhh, what a mistake:silly:

i tried to uninstall the old version of privacy, but i got this error:


Uninstall Plugin - Failed
SQL Error DB function failed with error number 1109
Unknown table 'jos_comprofiler_fields' in MULTI DELETE SQL=DELETE jos_comprofiler_fields, jos_comprofiler_field_values FROM jos_comprofiler_field_values v, jos_comprofiler_fields f WHERE v.fieldid=f.fieldid and f.name like 'cb_privacypolicy_%';
SQL =
DELETE jos_comprofiler_fields, jos_comprofiler_field_values
FROM jos_comprofiler_field_values v, jos_comprofiler_fields f
WHERE v.fieldid=f.fieldid and f.name like 'cb_privacypolicy_%';




iam only a beginner coder, what i had to do?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum