Bugs in Parameters and Tags

Phoca Gallery - image gallery extension
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Bugs in Parameters and Tags

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45847
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bugs in Parameters and Tags

Post by Jan »

Hi, which Phoca Gallery version and Joomla version do you use?

Jan
If you find Phoca extensions useful, please support the project
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Re: Bugs in Parameters and Tags

Post by Tartine »

Phocagallery 4.4.3 and Joomla 4.2.2
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Re: Bugs in Parameters and Tags

Post by Tartine »

Oups!
Phocagallery 4.5.1
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45847
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bugs in Parameters and Tags

Post by Jan »

And do you still get the same problem in 4.5.1?

Jan
If you find Phoca extensions useful, please support the project
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Re: Bugs in Parameters and Tags

Post 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 ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45847
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bugs in Parameters and Tags

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Re: Bugs in Parameters and Tags

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45847
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bugs in Parameters and Tags

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Tartine
Phoca Member
Phoca Member
Posts: 15
Joined: 31 Dec 2021, 16:31

Re: Bugs in Parameters and Tags

Post 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
Post Reply