This Help forum is for issues relates to the latest release (1.7.2). 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

TOPIC:

main site.. 5 years 1 month ago #1

  • bobek
  • bobek's Avatar Topic Author
  • Visitor
  • Visitor
hi,
please help me to find how to set /for everyone/ open MAIN site not MY site.

All the best!

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

Last edit: by bobek.

main site.. 5 years 1 month ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14515
To make a site open, (e.g. show all individuals to everyone) -

Control panel -> Family trees -> Privacy -> Show living individuals = Show to visitors

You should only do this if all the data in the tree is public.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

main site.. 5 years 1 month ago #3

  • bobek
  • bobek's Avatar Topic Author
  • Visitor
  • Visitor
"for everyone"... i thought about USERS . i want to set that USERS open MAIN site not USER site.
Living or not - its not important.
I want set all USERS see main site our family website .
i have one family tree

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

Last edit: by bobek.

main site.. 5 years 1 month ago #4

  • bertkoor
  • bertkoor's Avatar
  • Away
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
In index.php lines 36-41:
// The default view depends on whether we are logged in
if (Auth::check()) {
	$ctype = Filter::get('ctype', 'gedcom|user', 'user');
} else {
	$ctype = 'gedcom';
}

Replace this block with only "$ctype = 'gedcom';" and no one (not even you) will ever be able to see "My" page anymore.

There are probably more elegant solutions, look where "ctype=user" is set in the query parameter of the redirect URL.
Another option is teach your users there is a difference and they can switch from one to the other using the menu, and customise it to their own needs.
Or change the blocks for all users so there is no difference anymore. I recall there was a config section somewhere to set the default blocks.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Last edit: by bertkoor.

main site.. 5 years 1 month ago #5

  • bobek
  • bobek's Avatar Topic Author
  • Visitor
  • Visitor
thank for replies and answer. Well...i dont want to delate "my site". I want to set for everyone that "main site" open as default. if someone want to chceck messages or something else can open "my site".

so "main site " as default.

thank for answer and help. please help me.

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

main site.. 5 years 1 month ago #6

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 4755
Hello Bobek,

Your members could enter the site from any page. By default, when they log in they stay on the page they are.

For example, you decide to enter the site on your grandfather's page. You log in, and webtrees will display your grandfather's indiividual page.
To change this, you will need to change the code.

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

main site.. 5 years 1 month ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14515
I haven't tested this, but you could try changing index.php

$ctype = Filter::get('ctype', 'gedcom|user', 'user');

to

$ctype = Filter::get('ctype', 'gedcom|user', 'gedcom');
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Last edit: by fisharebest.
  • Page:
  • 1
Powered by Kunena Forum