Page 1 of 2

Bugs in Parameters and Tags

Posted: 29 Sep 2022, 12:23
by Tartine
Hi,
I suggest corrective for some bugs in Phocagallery :
In Phocagallery Parameters Rights dont work
In "User" the "Authorized (Avatar)" dont work
When When I modify an image insert tag dont work

I modify :
config.xml in line 1082 and change the component by "com_phocagallery"
in models phocagalleryuser.php with this :

Code: Select all

	function delete(&$pks) {
		$pks = (array) $pks;
		if (count( $pks )) {
			\Joomla\Utilities\ArrayHelper::toInteger($pks);
			$cids = implode( ',', $pks );
in library/phocagallery/tag.php in line 66 i modify this :

Code: Select all

$valuesString = implode(',', $values);
I fund this function in helpers but i dont knows if it is in use.

Where is un other bug in params that prevent to change "Users" for the Registered Users.
Best regards

Re: Bugs in Parameters and Tags

Posted: 29 Sep 2022, 17:46
by Jan
Hi, which Phoca Gallery version and Joomla version do you use?

Jan

Re: Bugs in Parameters and Tags

Posted: 29 Sep 2022, 18:25
by Tartine
Phocagallery 4.4.3 and Joomla 4.2.2

Re: Bugs in Parameters and Tags

Posted: 29 Sep 2022, 19:01
by Tartine
Oups!
Phocagallery 4.5.1

Re: Bugs in Parameters and Tags

Posted: 03 Oct 2022, 23:40
by Jan
And do you still get the same problem in 4.5.1?

Jan

Re: Bugs in Parameters and Tags

Posted: 04 Oct 2022, 17:39
by Tartine
Yes I have this problem with the 4.5.1.
Sorry Jan, I was wrong by putting 4.4.3 with Joomla 4.2.2. I always used 4.5.1

I answer you a little late, i went to climb today. But I am not at the level of your champion, Adam Ondra ;)

Re: Bugs in Parameters and Tags

Posted: 08 Oct 2022, 01:36
by Jan
Can you paste me a screenshot of what do you exactly mean. I don't understand the connection between Authorize/Avatar and deleting function, etc. :idea:

Jan

Re: Bugs in Parameters and Tags

Posted: 08 Oct 2022, 10:46
by Tartine
The list I had sent was in order with the corrective i suggest. I organize my message a little better.

In Phocagallery Parameters Rights dont work, my solution:
i modify config.xml in line 1082 and change the component by "com_phocagallery"

In Phocagallery Parameters Rights dont work, in models phocagalleryuser.php i modify this function:

Code: Select all

function delete(&$pks) {
		$pks = (array) $pks;
		if (count( $pks )) {
			\Joomla\Utilities\ArrayHelper::toInteger($pks);
			$cids = implode( ',', $pks );
When I modify an image insert tag dont work, in library/phocagallery/tag.php in line 66 i modify this:

Code: Select all

$valuesString = implode(',', $values);
I fund the same function in helpers but i dont knows if it is in use.

Where is un other bug in params that prevent to change "Users" for the Registered Users but i don't find the solution.

Best regards

Re: Bugs in Parameters and Tags

Posted: 11 Oct 2022, 23:00
by Jan
Hi, yes, I will update the com_phocacart to com_phocagallery

But do you speak about frontend rights or only backend rights. These rights are only valid for administrators in administration. If we speak about frontend upload in UCP e.g., then the rights which are set for category are valid (there is access rights, upload rights and delete rights)

Jan

Re: Bugs in Parameters and Tags

Posted: 12 Oct 2022, 11:18
by Tartine
Hi,
with the modifs the right work. (resolved)

But "Where is un other bug in params that prevent to change "Users" for the Registered Users but i don't find the solution."
The params stay the same for all access (I do not know if it's normal).

The params save for Super Users :
Image

The params when i select "Guest" :
Image