Skip to Content Skip to Menu

Privacy Policy won't hide Tab

  • deko
  • deko
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #35332 by deko
Privacy Policy won't hide Tab was created by deko
I have created 2 Tabs
1) Tab with some general user informations, 5 fields from registration prozess.

2) second Tab is an editor Tab, like "more informations" About

Tabs are controled by Privacy Policy with settings connection only.

Problem is Tabs are shown olso for everyone without connection.
:(

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

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #35336 by mikko
Replied by mikko on topic Re:Privacy Policy won't hide Tab
File a bug report at my tracker and I will take a look at that when i have the time. Alternatively, you can try to debug it yourself. I am 100% certain that the SQL query for connections in the plugin backend is faulty.

mikko

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

  • deko
  • deko
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #35337 by deko
Replied by deko on topic Re:Privacy Policy won't hide Tab
Any other Tab is hiden by Plugin. Only Self-Made Tabs aren't hiden.
No Query can hide own-maded Tabs, it's BUG

> Query is korrekt.

and i'like to share an nice query names "FairPlay"made by me
select 1 from #__users u,#__comprofiler c where u.usertype="Author" and c.id=u.id and (c.id={$my} and c.cb_privacypolicy_23 <> "Connections") or exists (select 1 from #__comprofiler_members where referenceid={$my} and memberid={$user} and accepted=1 and pending=0);

This code allow user status Author (only with Private Pictures in Album., on my site) to protect own Album.
as example from other users who have only "Connections" as own Policy..
or from users without private pics (no author status)
but in case of connection == Tab is shown anyway

Please check korrekt privacypolicy_23 Nr in yours db and change "Connections" in query to fit your needs.

Will see later 4 BUG, du u have any quick fix or ideaa ?

Thanks,

Greetings

Post edited by: deko, at: 2007/04/11 21:28

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

  • deko
  • deko
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #35510 by deko
Replied by deko on topic Re:Privacy Policy won't hide Tab
i'm using PHP Version 4.4.6 and MySQL 4.1.22

i have tried to fix but without success
BUG is in your tracker
I would be very grateful for help.

Thanx anyway

Greetings

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

  • phlux0r
  • phlux0r
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 6
17 years 6 months ago #36997 by phlux0r
Replied by phlux0r on topic Re:Privacy Policy won't hide Tab
I have the exact same problem. I have submitted the bug to the tracker.

I've tried to debug myself but without success. It seems to be a problem with the PHP version maybe as on my home setup this plugin works with extended profile tabs fine. At home I run PHP 5.2.0. However on my live server i have PHP 4.4.6 and the problem appears.

I hope this can be looked at and fixed soon. I would've done it myself (and I found a couple of minor bugs as well) but this I can't seem to figure out.

The code seems to do all that it's supposed to do but just doesn't hide the extended profile tab set under the PP plugin settings. Where is this supposed to happen??

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

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 6 months ago #36999 by mikko
Replied by mikko on topic Re:Privacy Policy won't hide Tab
phlux0r wrote:

I have the exact same problem. I have submitted the bug to the tracker.

I've tried to debug myself but without success. It seems to be a problem with the PHP version maybe as on my home setup this plugin works with extended profile tabs fine. At home I run PHP 5.2.0. However on my live server i have PHP 4.4.6 and the problem appears.


This is a very good bug report, because it tells what is the likely cause of this problem.

Can you email or PM me the other bugs?

Mikko

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

Moderators: beatnantkrileon
Powered by Kunena Forum