front end user edit

More
9 years 5 months ago #6706 by Dima
Replied by Dima on topic front end user edit
You have to notice: if you apply my new release (in future), it remove yours changes. Ie you have to do again :)

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

  • mr_sarge
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #6708 by mr_sarge
Replied by mr_sarge on topic front end user edit
Just in case it could help someone else, I've also modified the "Delete" button so user can only delete their own placemark.

In the same file, I've changed:
Code:
// Form Delete if ((int)$map->usermarkersdelete == 1) {

To:
Code:
// Form Delete if (((int)$map->usermarkersdelete == 1) && (isset($currentmarker->createdbyuser)) && ((int)$currentmarker->createdbyuser == $currentUserID )) {

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

Time to create page: 0.180 seconds
Powered by Kunena Forum