•  » Extensions
  •  » Community plugin, new generation for Piwigo 2.2+

#106 2013-02-19 17:45:32

Wade
Member
2012-07-17
36

Re: Community plugin, new generation for Piwigo 2.2+

I'm having a problem with the album permissions while using this plug-in. In general it works fine but it is not inheriting the album permissions from the parent album. I have users set to upload images into a specific album. They can do that. However the parent album is set to private and is only viewer to certain groups. The users are members of that group but the only default permissions that are created in the album they created are those for administrators. Is there a way to set it so it can inherit the group permissions from its parent album?

Offline

 

#107 2013-03-05 20:11:55

Derrick Hawkins
Guest

Re: Community plugin, new generation for Piwigo 2.2+

I upgraded my Piwigo to 2.5 this morning (over 2.4.7). When I went to the Plugins it says that the Community Plugin was not compatible so I went to the Extensions page (http://piwigo.org/ext/index.php?page=19) and got the Community Plugin (and noticed its the same version as the one that says not compatible). Then I went to the Plugins Available just to check and the same version was there so I installed it. It went fine until I tried to activate it.:


Warning:  [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"piwi_community_permissions" (
  "id" INTEGER NOT NULL,
  "type" VARCHAR(255) NO' at line 1

CREATE TABLE "piwi_community_permissions" (
  "id" INTEGER NOT NULL,
  "type" VARCHAR(255) NOT NULL,
  "group_id" INTEGER,
  "user_id" INTEGER,
  "category_id" INTEGER,
  "recursive" BOOLEAN default true,
  "create_subcategories" BOOLEAN default false,
  "moderated" BOOLEAN default true,
  PRIMARY KEY ("id")
)
; in /home/nudefrog/fixshun.com/piwi/include/dblayer/functions_mysqli.inc.php on line 813



Warning:  [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"piwi_community_pendings" (
  image_id INTEGER NOT NULL,
  state VARCHAR(255) NO' at line 1

CREATE TABLE "piwi_community_pendings" (
  image_id INTEGER NOT NULL,
  state VARCHAR(255) NOT NULL,
  added_on TIMESTAMP NOT NULL,
  validated_by INTEGER
)
; in /home/nudefrog/fixshun.com/piwi/include/dblayer/functions_mysqli.inc.php on line 813


Notice: Undefined index: local_data_dir in /home/nudefrog/fixshun.com/piwi/plugins/community/maintain.inc.php on line 149



Warning:  [mysql error 1146] Table 'nudefrog_piwi344.piwi_community_permissions' doesn't exist

SELECT
    COUNT(*)
  FROM piwi_community_permissions
; in /home/nudefrog/fixshun.com/piwi/include/dblayer/functions_mysqli.inc.php on line 813


Fatal error: Call to a member function fetch_row() on a non-object in /home/nudefrog/fixshun.com/piwi/include/dblayer/functions_mysqli.inc.php on line 165

 

#108 2013-03-06 16:35:23

soreilly
Member
2013-03-05
7

Re: Community plugin, new generation for Piwigo 2.2+

My upgrade to 2.5 failed from 2.47, so I installed a clean 2.5 then installed (for the first time) community and am getting the same messages on activate.

Source code from error page uploaded below

Offline

 

#109 2013-03-06 17:32:48

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13908

Re: Community plugin, new generation for Piwigo 2.2+

OK, I reproduce, I investigate.

Offline

 

#110 2013-03-06 17:49:49

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13908

Re: Community plugin, new generation for Piwigo 2.2+

New version 2.5.b available. Thank you for the feedback.

Offline

 

#111 2013-03-06 18:30:46

bnl552
Guest

Re: Community plugin, new generation for Piwigo 2.2+

On Monday I upgraded to Piwigo 2.5 (From 2.47) and since the upgrade I have been having issues with Community and the mobile app. Users have access to upload photos from the website itself but using the android app it does not list any albums. It just lists "-----" and "undefined". Everything was working fine prior to the update and all albums were showing in the list. I am using Community version 2.5.b.

 

#112 2013-03-06 19:43:24

soreilly
Member
2013-03-05
7

Re: Community plugin, new generation for Piwigo 2.2+

Thanks plg Great job

Offline

 

#113 2013-03-21 19:54:59

Jose Coronado
Guest

Re: Community plugin, new generation for Piwigo 2.2+

How can the community plugin is installed manually?

Thanks,
JOSE

 

#114 2013-03-26 00:04:58

MrTall
Guest

Re: Community plugin, new generation for Piwigo 2.2+

I get this error from the admin control panel:

Code:

Warning:  [mysql error 1052] Column 'user_id' in field list is ambiguous

SELECT
    user_id AS id,
    username AS username
  FROM phpbb_users AS u
    INNER JOIN piwigo_user_infos AS uf ON uf.user_id = id
  WHERE uf.status IN ('normal','generic')

The only difference is that my piwigo installation doesn't work of a piwigo user database, but a phpbb user database. Is there anything I can do?

 

#115 2013-03-31 00:12:40

MrTall
Guest

Re: Community plugin, new generation for Piwigo 2.2+

Well I found where the query comes from (plugins/community/admin_permissions.php line 247 onwards):

Code:

$query = '
SELECT
    '.$conf['user_fields']['id'].' AS id,
    '.$conf['user_fields']['username'].' AS username
  FROM '.USERS_TABLE.' AS u
    INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = id
  WHERE uf.status IN (\'normal\',\'generic\')
;';
$result = pwg_query($query);

Anyone know what I could change to prevent the error in my previous post? Thanks for any help! :D

 

#116 2013-03-31 10:31:12

MrTall
Guest

Re: Community plugin, new generation for Piwigo 2.2+

If anyone is having the same problem, this is the fixed query:

Code:

$query = '
SELECT
    u.'.$conf['user_fields']['id'].' AS id,
    '.$conf['user_fields']['username'].' AS username
  FROM '.USERS_TABLE.' AS u
    INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = u.user_id
  WHERE uf.status IN (\'normal\',\'generic\')
;';
$result = pwg_query($query);
 

#117 2013-03-31 19:58:26

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13908

Re: Community plugin, new generation for Piwigo 2.2+

Thank you MrTall, I will change the code. Is it the only bug of this kind you have encountered?

Offline

 

#118 2013-03-31 21:53:51

MrTall
Guest

Re: Community plugin, new generation for Piwigo 2.2+

plg wrote:

Thank you MrTall, I will change the code. Is it the only bug of this kind you have encountered?

At the moment it's the only bug I've found, I suppose many people operate from the piwigo user database table as opposed to third party user databases like phpbb. I'll report back if I see anything else! Great plugin btw exactly what I wanted for the gallery. :D

 

#119 2013-04-05 18:55:00

artcien
Guest

Re: Community plugin, new generation for Piwigo 2.2+

I'm having some problems with Community and IE 9.  It does work with other browsers but not IE.  Anyone else has this issue?  I have search for answers but no luck yet.

 

#120 2013-04-05 19:22:27

flop25
Piwigo Team
2006-07-06
7037

Re: Community plugin, new generation for Piwigo 2.2+

You might be in "compatible mode" Could you check?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Extensions
  •  » Community plugin, new generation for Piwigo 2.2+

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact