Skip to Content Skip to Menu

I've created seperate CB User Groups...kind of...

  • Styles
  • Styles
  • OFFLINE
  • Posts: 25
  • Thanks: 0
  • Karma: 6
17 years 11 months ago #26157 by Styles
Well... since i'm not getting an answer to my question... I'll skip to the next question:

This being the original code:
[code:1] if($my->id!=$user->id&&$ui=1){
$database->setQuery('select cb_privacypolicy_'.$tab->tabid.' from #__comprofiler where user_id='.$user->id);
$policy=$database->loadResult();
}
else
$policy='public'; [/code:1]

Now, I have a new field called cb_newfield
and the feild has OptionA and OptionB.

Would I modify the above code with
select cb_newfield_'.$tab->tabid.' from #__comprofiler
or
select cb_newfield from #__comprofiler

Then your code divides in two groups Public and Connections
[code:1]if($policy=='public')
$show=true;
else if($policy=='connections'){
$database->setQuery('select referenceid from #__comprofiler_member where referenceid='.$my->id.
' and memberid='.$user->id.' and accepted=1 and pending =0');
$policy=$database->loadResult();[/code:1]

This is where i'm lost

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

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

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 11 months ago #26162 by mikko
Styles wrote:

Befor we go any further, I just want to be clear on something:

Lets say I have
Member1 in GroupA
and
Member2 in GroupB

I want GroupA to have a "TAB1" on their profile
and GroupB to have a "TAB2" om their profile

BUT... When Member1 visits Member2's profile
he WILL see TAB2 there and vice versa...right?

So the privacy plugin will control what group has access to what Tab


Currently it allows the user to choose which tabs to display (if it was not buggy). It contains a mechanism for showing or not showing tabs, and you are free to code what ever checking you wish here.

mikko

Post edited by: mikko, at: 2006/12/04 00:08

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

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 11 months ago #26164 by mikko
Styles wrote:

This is where i'm lost



Included this quote to show which post I reply to.

The idea of the code above is that you have the variable $show. If that variable is true, the tab which the privacy policy is controlling is shown, if it is false then hidden.

The second sql just checks if there is a cnonnection between the viewing user and the user being viewed.

mikko

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

  • nortkele
  • nortkele
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
13 years 4 months ago #166711 by nortkele
Hello Mikko,
i have installed your Privacy Policy, but i can not remove that plugin. Why? From CB Pluginq i start to remove but ... is not possible. Could you advise me how to remove that plugin...

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

Moderators: beatnantkrileon
Powered by Kunena Forum