Web based family history software

This Help forum is for issues relates to the latest release (1.7.4). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

Question Disable Search & Replace

  • markus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 9 months ago #1 by markus
Disable Search & Replace was created by markus
Is there any way to disable the "Search & Replace" button?

These days I do lot of work on my tree. Unfortunately I replace a family name with nothing because I just pressed "replace" too early.

As there is no UNDO I had to go through the log and change everything back manually... :(

Of course I do daily backups...but I did not want to loose 23h of work.

Thanks, Markus

Best regards /Markus
webtrees 2.1.x + several addons

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

More
7 years 9 months ago #2 by fisharebest
Replied by fisharebest on topic Disable Search & Replace
1) wait for 1.7.5

2) create a custom theme (copy the template themes/_custom),

3) add this function:
Code:
protected function menuSearchAndReplace() { return null; }

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • markus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 9 months ago #3 by markus
Replied by markus on topic Disable Search & Replace
OK thanks..will wait for the next release.

Best regards /Markus
webtrees 2.1.x + several addons

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 years 9 months ago #4 by bertkoor
Replied by bertkoor on topic Disable Search & Replace
Question: why use search & Replace if you only want to search and not replace?
Alternatives:
* Advanced Search (available in the menu for all visitors)
* Export to gedcom text file format and use a powerful text editor

stamboom.BertKoor.nl runs on webtrees v1.7.13

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

  • markus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 9 months ago #5 by markus
Replied by markus on topic Disable Search & Replace
Hi Bert,

I wanted to replace some text but unintentionally hit the return-button. My fault!
Usually I (as admin) work on the exported gedcom-file.

The Search&Replace function is available for members as well. So anybody could replace anything by any other text. This will be quite some work for the moderator...therefore I would like to disable this feature.
Question solved as Greg has shown some options.

Regards, Markus

Best regards /Markus
webtrees 2.1.x + several addons

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

Powered by Kunena Forum
}