Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
This Help forum is for issues relates to the latest release (1.7.8). 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."
  • Page :
  • 1

SUJET :

Disable Search box in header il y a 4 ans 9 mois #1

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
Hi

On my minimal theme home page, I would like to disable searching of the site using the Search box that is located in the header next to the Language, Sign in boxes in the top right hand side ( header-search I think).

It allows back-door access to tree data. Using it brings up the General search page. When entering a surname in Search for, it returns "Showing 0 to 0 of 0" and "No records to display"in the Families tab.

However in the Sources tab it displays the source details for the source person (Showing 1 to 1 of 1 ), their name/link and number of Individuals referenced by the source.

I have set Show to Members for all the Tabs in Module administration Tabs.

The CSS .header-search says display: none; - should that not stop it from being displayed?

Is there a Control panel option to achieve this or a function that can be used to prevent the loading of the General Search page or to remove header-search altogether from the Home Page. I don't see the necessity for it since users can access the Search options through the menu and in my view superfluous and redundant, specially if it leaks.
Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #2

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
BTW

With PGV and on the home page and perfoming the same operation, the visitor is taken back to the login page and only when logged in is the General Search form displayed.

Please advise.
Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #3

  • bertkoor
  • Portrait de bertkoor
  • Hors Ligne
  • Membre platinium
  • Membre platinium
  • Greetings from Utrecht, Holland
  • Messages : 2360

please advice


My advice? Tbh, my advice is to take webtrees as much "as is" as possible.

webtrees is not PGV anymore. If you liked PhpGedView better than webtrees and you have to take this much effort to tweak it to your likings, then my advice is to stick with PGV.

Another thing you can do: make two trees. One public "dummy" tree with only a home landing page and no content. Then the second private tree contains the actual data. This way the generic search will only query the public tree and won't show any results.

Then finally I'd like to challenge the arguments for hiding last names. What private info is actually given away? You said before this was decided for you. But. What if you and I had a common ancestor? I can do gegealogy on one of your family names and make it all public. Who can stop me? The privacy of living persons is never compromised in webtrees.
stamboom.BertKoor.nl runs on webtrees v1.7.13

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #4

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
Dear bertkoor

Thank you for your reply and suggestions.

Open, homest, uncensored free expression being my credo I shall endeavour to respond to you in an equally forthright and frank manner so treat what I have to say in the cordial, impersonal and tongue-in-cheek nature in which it is intended and not regarded as argumentative, offensive or impolite.

No doubt your aim is to be as helpful as possible which I appreciate but I am duty bound to question some of your statements.

First please endeavour to quote my statements as they were written and not to paraphrase them as you have done – a simple cut and paste will do the trick.

My advice? Tbh, my advice is to take webtrees as much "as is" as possible.

If mankind had taken your advice in a general sense then you would still be playing with flints and dragging your partner from cave to cave. Your lovely country would have sunk under the North Sea ages ago and there’d be no bertkoor to speak of nor tulips, rookworst, or Edam or Cruyff…..

My wise grandparents taught me to always question everything, my even wiser parents taught me to never take anything for granted and to challenge everything.

Has accepting the status quo ever changed anything in this world?

An even greater wise man had this to say on the subject and to which I fully subscribe:- “Nothing ventured, nothing gained!!!” - Ben Franklin.

webtrees is not PGV anymore..

Excuse my saying so but what a blinking statement of the obvious.

If you liked PhpGedView better than webtrees and you have to take this much effort to tweak it to your likings, then my advice is to stick with PGV

On what basis do you make that statement? Have I ever stated that I preferred PGV to webtrees or is this an erronoeous assumption on your part because of the efffort that I am taking to tweak it to my “likings”?

What else I am to compare it with?

It’s been only a couple of weeks since I installed webtrees and ïn all honesty I am more than pleased with my progress so far and with the program and it goes without saying how very grateful, and admiring we all are to have such dedicated, altruistic developers prepared to have taken on and maintain such a complicated project, to have achieved spectacular results when it could have fallen flat on its face and yet always ready and willing to assist.

In my case rather envious of their knowledge and skills.

Another thing you can do: make two trees. One public "dummy" tree with only a home landing page and no content. Then the second private tree contains the actual data. This way the generic search will only query the public tree and won't show any results.

All fine and good but presumably this would entail some code alteration/addition, you may have years of experience with php and the other languages and intimate knowledge of the inner working of webtrees but not I.

So are you prepared to put your money where your mouth is, and that is to provide detailed instructions, code samples to make it work. Not very likely – my pleas so far having informed the forum of my total lack of experience with programming and the like have lead nowhere.

But in any case why complicate matters any further when what I have works but only needs a “tweak” here or there?

So my advice to you is come up with specific, tangible goods or else refrain from offering solutions which I am incapable of implementing by myself.

Need to thank you here bertkoor, as you have forced me to add a signature to my profile which leaves no doubts for those reading my comments as to my status of complete novice and learner when it comes to webtrees.

It’s also worth mentioning here that the issues that I raise are not plucked out of the sky, raised to annoy or harass users or the developers for no good reason. I have better things to do with my time. There are and will be many aspects of the program which as a newcomer to it while I make my way through it that will need clarification, explanation, some causing genuine concern some could be viewed as trivial by more experienced users but nevertheless part of a learning experience for me as an avid learner. And I am always careful to perform a thorough search of forum topics before posting.

In the requests and suggestions that I make, hopefully helpful and constructive alternatives in advancing the usability and efficiency of the program.

You said before this was decided for you. But. What if you and I had a common ancestor? I can do gegealogy on one of your family names and make it all public. Who can stop me.

What you or anyone else might choose to do is your business, not mine and none of my concern. I am only concerned with the expressed instructions from family members that their details and data are held in as a safe, private and secure environment as possible and in taking full responsibility that their wishes are respected.

How far you’d get with a what if “gegealogy“ program of my ancestors is anybody’s guess (I know, I make them all the time – not having a go at your spelling – just having a bit of fun at your expense.)

Then finally I'd like to challenge the arguments for hiding last names. What private info is actually given away? The privacy of living persons is never compromised in webtrees.

I in turn challenge you to prove your bold and unambiguous statements, specially the one contained in the last sentence.



To the developers, please take this issue very seriously else I would not have raised it

Had bertkoor replicated what I have stated in my first post he would have discovered that there indeed is a serious privacy hole, a risk in granting access to the search facility to non-users, visitors to the program because it does compromise unequivocally and with no shadow of a doubt living persons whom I have named as source citations by revealing and publishing the full names in the source tag.

A fix surely cannot be that hard to implement – what about something similar to the code in index. php placed judiciously wherever the search facility is called:

if ($ctype === 'user') {
	echo '<div id="my-page">';
	echo '<h2 class="center">', I18N::translate('My page'), '</h2>';
} else {
	echo '<div id="home-page">';
}

I’d do it myself if only I knew that the code was appropriate and where and in which file to place it.

Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par potain. Raison: spelling

Disable Search box in header il y a 4 ans 8 mois #5

Potain, I don't like your tone. Bert is a long time member of this forum and always willing to answer questions and help people wherever he can. If you don't like his advice, just leave it and move on.

Carmen
Designer of the JustLight theme, Fancy Imagebar and Fancy Research Links for webtrees 2.x


Also designed the JustBlack theme and the other Fancy modules for webtrees 1.x

Check my website at www.justcarmen.nl

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #6

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926

Dear bertkoor

Another thing you can do: make two trees. One public "dummy" tree with only a home landing page and no content. Then the second private tree contains the actual data. This way the generic search will only query the public tree and won't show any results.

All fine and good but presumably this would entail some code alteration/addition, you may have years of experience with php and the other languages and intimate knowledge of the inner working of webtrees but not I.

So are you prepared to put your money where your mouth is, and that is to provide detailed instructions, code samples to make it work. Not very likely – my pleas so far having informed the forum of my total lack of experience with programming and the like have lead nowhere.

The setting up of numerous trees is an easy task within webtrees, requiring no special coding skills to which you refer. Dozens of our admins have configured their sites in just such a manner, to completely block access to anything and everything (still, not sure why personally, but whatever floats your boat).

Then finally I'd like to challenge the arguments for hiding last names. What private info is actually given away? The privacy of living persons is never compromised in webtrees.

I in turn challenge you to prove your bold and unambiguous statements, specially the one contained in the last sentence.


If properly configured (default settings work), I know of no privacy hole or breach of data in webtrees. TMK, my sources are not visible to any visitors, only members.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par ToyGuy.

Disable Search box in header il y a 4 ans 8 mois #7

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrateur
  • Administrateur
  • Messages : 14715
> To the developers, please take this issue very seriously else I would not have raised it

Do you mean this issue:

> However in the Sources tab it displays the source details for the source person

As I understand it, you searched the site for a keyword - this keyword exists in one of the sources - the source is not marked as private - so it is shown.

Note that by default, all sources are marked as private, so I guess you either (a) removed the default privacy rule or (b) added an explicit "public" rule to this record.

If you think you've found a bug/problem, you'll need to provide more information or an example
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #8

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
fisharebest wrote:
> Note that by default, all sources are marked as private, so I guess you either (a) removed the default privacy rule or (b) added an explicit "public" rule to this record.

I am not sure of about the privacy rules but you could be right, I'll get to that in a moment.

The only thing that I have changed since I became aware of this issue is in Module administration Tabs to change Access levels Show to members when previously it was Show to visitors for all listed Tabs from Facts and Events right through all 9 to Google Maps in the hope that it would prevent any tabs from displaying when performing a search from the default minimal home page as a visitor. I have made doubly sure that I am working on the minimal theme and not the custom theme. BTW with the same results no matter what theme i chose as a visitor on the home page which probably rules out themes as a cause of the problem.

I type in a surname which I know is a source in the search box at the top right hand side:
  • The General Search Form is returned with the surmane filled in the Search for box
  • Along with it and underneath of it is the search-result-tabs
  • The Tabs dispalyed are Families and Sources
  • So the 1st question is so why is the Sources tab visible when I have disabled it for viisitors in Tab adminitration?
  • And for that matter why is the Familes Tab showing? Probably come to think of it and going from memory because it is not available as an option in Tab adminitration
After reading ToyGuy's post I went to his site and performed a search for arnold and sure enough Individuals, Families and Notes tabs are displayed in the results but not the Source tab.

So what is it in my configuration that is allowing the Source tab to be displayed? As far as I can see there is nothing in Manage family trees > Preferences or in Website preferences that affetcs Sources unless there is another setting somewhere else of which I am not aware.

As mentioned previously the Families tab says Showing 0 to 0 of 0.

the Sources tab however says Showing 1 to 1 of 1.
Under Title the full name of the source is displayed.

Title : Full name displayed - (a living member of the family) - with a link when clicked showing the source details
Author:
Individuals: 7
Families: 0
Media objects: 0
Shared notes: 0

Same and similar result if I search for any "keyword" which I know is a source whether it be a person's surname / first name / title / abbrevation. Any source present in the tree.

so I guess you either (a) removed the default privacy rule or (b) added an explicit "public" rule to this record.


Would not know how unless I did it without realising it. Have not changed anything in Manage family trees > Privacy, can't see any reference to Sources there either.

Unless the import from PGV changed those without my being aware of it.

What default privacy rule would affect sources? Where would it be?

How do you mark the source as private? Can't see any reference to anything about privacy when I view the page for the source if that's what you mean when you say record.

I am totally baffled.

Had a look at the wt_sources table with PhpMyAdmin and there is an s_file field with all the sources having a 1 assgined to them. Could that be the privacy rule that you refer to?

If so what is the correct default setting to ensure their privacy? how to change it from within webtrees?

All s_gedcom fields follow the same pattern)

0 @S1@ SOUR
1 ABBR (abbreviation)
1 TITL (name of source)...

Not being familar with GEDCOM, can you detect anything there that may indicate their privacy setting?

That's it for now. I am exhausted.
Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

Disable Search box in header il y a 4 ans 8 mois #9

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926
You shouldn't be fooling with TABS.






Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #10

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrateur
  • Administrateur
  • Messages : 14715
The search box in the header feeds directly into the "general" search.

It provides one additional feature. If you type in an "XREF", such as S123, then you will go directly to that record. It's a shortcut for typing the URL directly.

Apart from that, they are the same, so disabling the header search without also disabling the general search will achieve nothing.

The "tabs" that you disabled in the control panel are the tabs on the individual page. They are nothing to do with tabs anywhere else on the site, including the search results.

From what you've said, the most likely cause is that you've deleted the privacy rule that ToyGuy illustrated above. If this is the case, you can add it back easily.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #11

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrateur
  • Administrateur
  • Messages : 14715

All s_gedcom fields follow the same pattern)

0 @S1@ SOUR
1 ABBR (abbreviation)
1 TITL (name of source)...

Not being familar with GEDCOM, can you detect anything there that may indicate their privacy setting?


GEDCOM files can contain privacy restrictions. These look like

1 RESN privacy
1 RESN confidential

The first means "show to members" and the second means "show to managers"

webtrees adds a third one

1 RESN none

which means "show to public".

If the record does not contain one of these explicit restrictions, then we look to the privacy rules described above.

If there are no explicit privacy restrictions, and no privacy rules, then webtrees will (by default)

1) hide living individuals and their families
2) hide media/notes that are linked to living individuals
3) show everything else

Note that when you create a new tree, webtrees will create a set of default privacy rules. These include ones to hide sources/repositories/submitters.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #12

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
Thank you ToyGuy and Greg

Those snapshots of yours Toyguy certainly helped to sort out my issue.

To be noted however that on my installation and I had not touched anything in Privacy restrictions (not being aware of its uses / purpose and had no cause to refer to it) only the Social security number and Unique identifier were listed.

Having now added Source to the list the results of doing a search from the visitor home page only shows the Family tab.

The issue then has probably something to do with the PGV import and it setting the default webtrees privacy rules appropriately (as opposed to when creating a new tree in webtrees). I will also add the other ones that you mention Greg and the Submission, Last change ones that can be seen on ToyGuy's snapshot.

Will also restore the Module administration Tabs back to Show to visitors.

Phew....what a relief, so pleased to have resolved this and not to worry about private information being divulged to the casual visitor.

Glad also that while I still have no idea of how to go about implementing Bert's public "dummy" tree suggestion if needs be, that I may not have to resort to it.

Thanks also for the GEDOM file tutorial.

It all helps with my better understanding of the program and its features and thank you all again for the time and effort that you've expanded on helping me sort out this problem.

Much appreciated.

@bertkoor thanks again for your input and suggestions, keep them coming as they are most welcome and please treat the previous post in the “jestful” manner in which it was meant and not intended to offend you in any shape or form. I retract my challenge to you unreservedly.

@Carmen, lighten will you. I don't like the tone or contents of your intervention. So what should I do about it?

Cheers, potain.
Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #13

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926
To achieve bertkoor's suggestion

Create a new tree.
Leave the tree at default settings.
Make that tree the default tree (change the John Doe if you want).
Add an introduction to the site and purpose on the welcome page.

Go to your private tree.
Make it TRULY private - no show to visitors at all. Require registration / membership.

BINGO. No coding. Your tree is hidden and members logging in to the public tree will (after you set them as members to the private tree) be able to see it too.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Connexion ou Créer un compte pour participer à la conversation.

Disable Search box in header il y a 4 ans 8 mois #14

  • potain
  • Portrait de potain Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 95
Hello Santa Stephen

Ho, ho, ho, it looks like my stockings are filling up pretty quick with your gifts. Gingerbread biscuits and a pint of your favourite sherry (milk if you are a teetotaller) await you - sorry about that, you must get it all the time - could not resist it.

If only I'd known about this earlier it could have saved much work and many hassles.

Excellent, will give it a try and see how we go. Ta very much.

And a Merry day to you.

PS. could it be used as a way of encouraging non-active members to shape up under the "threat" of being transfered to the dummy tree?
Novice in all webtrees matters and in every respect

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par potain. Raison: spelling

Disable Search box in header il y a 4 ans 8 mois #15

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926
You are quite welcome. Lots of features and great flexibility to expose or block specific information.
This Santa is about to be VERY busy.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

  • Page :
  • 1
Propulsé par Kunena