Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Profile configuration problems

7 years 3 months ago
  • Mensa's Avatar
    Topic Author
  • Mensa
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

When users update Their profile, they also overwrite fields visible only to administrators
In addition I can not set date fields as readonly: i see that readonly attribute is set on database but the style is not kept on site

7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mensa

- This is valid bug, thank you for reporting
- this is valid bug as well :D

cheers!

7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mensa,

Here is the patch for fixing this issue :
- open file components/com_community/libraries/fields/date.php
- find this code :

$readonly = $params->get('readonly') && !COwnerHelper::isCommunityAdmin() ? ' disabled=""' : ' readonly=""';
replace to :
$readonly = ($params->get('readonly') && !COwnerHelper::isCommunityAdmin()) ? ' disabled' : ' readonly';
- find this code :
. ' data-value="' . $value . '" title="' . $title . '" style="cursor:text">';
replace to :
. ' data-value="' . $value . '" title="' . $title . '"' . $readonly . ' style="cursor:text">';

I hope it will fix the issue :)

thank you!

7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Another fix
- open this file components/com_community/tables/fieldvalue.php
- find this code :

$fields = implode(",", array_keys($fields));
  
 		$db	= $this->getDBO();
replace to :
$db	= $this->getDBO();
$query = 'SELECT ' . $db->quoteName('id') . ' FROM ' . $db->quoteName('#__community_fields')
                 . ' WHERE ' . $db->quoteName('visible') . '=' . $db->Quote('2');
         $db->setQuery($query);
         $adminOnlyFields = $db->loadColumn();
 
         // merge admin only field list
 		$fields = implode(",", array_merge(array_keys($fields), $adminOnlyFields));

7 years 3 months ago
  • Mensa's Avatar
    Topic Author
  • Mensa
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Hi Dimas
i have already problem with date fields set as readonly.
First of all i can not set it from administrative control panel, this is params setting in jos_community_fields table:
{"readonly":"0","maxrange":"","minrange":"","date_format":"","style":""}
but the style is not kept on site

7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mensa,

have you applied the patch above ?

7 years 3 months ago
  • Mensa's Avatar
    Topic Author
  • Mensa
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Yes of course

7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

so what is the remain issue? can you explain more, please with screenshoot maybe..

7 years 3 months ago
  • Mensa's Avatar
    Topic Author
  • Mensa
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

I still have problems to set the date as readonly (particurarly for FIELD_MEMBERSHIPDATE and FIELD_EXPIRYDATE)
before.jpg is what I see when I try to change the settings as shown in setting.jpg.
But after saving the system settings return as after.jpg
Database,png show database setting.

Attachments:
7 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mensa,

Oh ya that is bug from us, but actaully the data stored to database well.. this issue will be fine in version 4.3.1

thank you!

7 years 2 months ago
  • Mensa's Avatar
    Topic Author
  • Mensa
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

when will it be released?

7 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mensa,

Please check your private message i gave you the latest package to fix this issue.

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW