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

TOPIC:

My pages 3 years 11 months ago #1

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Hello

Have nearly finished my Home page for registered users for my family tree site which contains a public "dummy" tree and have just realsised that when users log in that they are taken to their respective My pages.

Explanation for changes from PGV and instructions are on the registered users Home page (Family trees icon instead of Home Page, why two trees, My pages. etc..) and while I will email users on how to access the real tree, some may be confused by being confronted with a blank My pages and no idea what to do.

Is there a way to make the registred Home page as their default landing page for members where it is all explained instead of their blank My pages?

Or for a message to to be added to all members My pages to click on the Family tree icon and choose the real tree to gain access to the tree?

Thanks
Novice in all webtrees matters and in every respect

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

Last edit: by potain. Reason: duplication

My pages 3 years 11 months ago #2

  • thomas52
  • thomas52's Avatar
  • Away
  • Frequent
  • Frequent
  • Western North Carolina
  • Posts: 900
When you go to your 'My Pages', at the top right you see 'My Pages | Theme | Sign out'
The last option under 'My Pages' is 'Customize this page' - you can customize this page just as you did the Home or Welcome Page.
You can even simply 'copy & paste' your HTML blocks on the Home page to your My Page.
"Failure is an amazing teacher." (L'échec est un professeur extraordinaire.)

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

My pages 3 years 11 months ago #3

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum
  • Platinum
  • Greetings from Utrecht, Holland
  • Posts: 2099
What really helps here is to assign a "Individual Record" to the user. With a bit of luck the user is related, and you can look up his/her person record in the tree. Otherwise you can assign a popular ancestor as the user's individual record.

After logging in, webtrees will switch trees to the first tree where an "individual record" is set. So that mechanism will save you quite a bit of explaining and clicking around for the user.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

My pages 3 years 11 months ago #4

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Thanks thomas52 - the problem is a little more complicated. No problems changing my own My pages, it's the other members that I want to get to and change.

Hello bertkoor, how are you?

bertkoor wrote: What really helps here is to assign a "Individual Record" to the user. With a bit of luck the user is related, and you can look up his/her person record in the tree. Otherwise you can assign a popular ancestor as the user's individual record.


I am sot sure I follow you. The default tree I have assigned when webtrees is started is the dummy one which contains no data. So I can't assign an individual record to users under User administration > Edit the user.

I am using a dummy user (role > member) which I have created to test the different access rights and assigned this user my own id in the real family tree but cannot assign him one in the dummy tree. It makes no difference – when I log in the default tree is still the dummy one with the blank My pages.

Should I create just the one fictitious individual in the dummy tree and assign that id to members in the dummy tree so as to bypass the dummy tree when they log in as you suggest?

Is that what you mean?

----

As an alternative, how would I as admin access members' My pages’ - in which case I could add an HTML block with some instructions for them on how to access the real tree? A bit of work and painstaking but maybe a possible option.
Novice in all webtrees matters and in every respect

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

My pages 3 years 11 months ago #5

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum
  • Platinum
  • Greetings from Utrecht, Holland
  • Posts: 2099
No, the dummy tree contains no persons.
I tested it with assigning an individual record on the private tree.
The behaviour I observe is that the login process will switch tree to the private tree.
There thr user hss role Member and a assigned indi record.
On the dummy tree thr role is still Visitor.

Please try again, it should work.

Also frm the user admin panel you should be able to change blocks for that user.And you can "Masquerade": log in as that user.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

My pages 3 years 11 months ago #6

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Tried it again, bertkoor and still opens up the dummy tree.

Dummy User:

Family treee (private) Role > Member
Dummy tree Role >Visitor
Individual record > My ID

In fact when I log in as admin it's the same - the dummy tree opens up and does not get switched to the private tree.

Any other settings in yours that I might be missing in mine?
Novice in all webtrees matters and in every respect

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

My pages 3 years 11 months ago #7

  • thomas52
  • thomas52's Avatar
  • Away
  • Frequent
  • Frequent
  • Western North Carolina
  • Posts: 900
Sorry, I misspoke. To set up the 'My Page' for other users:
Go to > Control Panel > Users > Set the default blocks for new users
Then you can add an HTML block and any other script you wish.
"Failure is an amazing teacher." (L'échec est un professeur extraordinaire.)

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

Last edit: by thomas52.

My pages 3 years 11 months ago #8

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum
  • Platinum
  • Greetings from Utrecht, Holland
  • Posts: 2099

potain wrote: In fact when I log in as admin it's the same - the dummy tree opens up and does not get switched to the private tree.

Any other settings in yours that I might be missing in mine?


I've tested this now five times, and I always get redirected to the proper tree. The code responsible for this is in login.php, starts at line 127:
// Switch to a tree where we have a genealogy record (or keep to the current/default).

The only explanation I have is that you have set an Individual record also for the Dummy tree. That field should be empty.



Oh wait, maybe you made "Dummy" the "default" tree. You shouldn't do that! I have not set any of both as the default, so the system will figure out which to display based on the actual authorizations. I think you should make the private tree the default tree. Since it is private, regular visitors will only be able to see the Dummy tree.


stamboom.BertKoor.nl runs on webtrees v1.7.13
Attachments:

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

Last edit: by bertkoor.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

My pages 3 years 11 months ago #9

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Thanks again bertkoor for your all your help.

I have done as you told me - the private tree is set as the default. I think that I may have found a possible cause for the problem.

When starting, webtrees is loading the dummy gedcom (ndex.php?ctype=gedcom&ged=tree1). Should it be loading the private gedcom instead? Could be this that is causing it not to switch over?

If so please can you please remind me (I should know but can't recall) where I go to set webtrees to load the private gedcom file instead?

Many thanks.
Novice in all webtrees matters and in every respect

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

My pages 3 years 11 months ago #10

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum
  • Platinum
  • Greetings from Utrecht, Holland
  • Posts: 2099

potain wrote: When starting, webtrees is loading the dummy gedcom (ndex.php?ctype=gedcom&ged=tree1). Should it be loading the private gedcom instead?

No, this is like it should be. Visitors landing on your site can only see the public dummy tree. They have no access to the private tree with all your records. If you try to force visitors to land on the private tree, they will only see an error message since it is forbidden.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

My pages 3 years 11 months ago #11

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Ah well, it looks like I'll have to live with the way it's working as neither of us can figure out why it's not behaving as it should.

Back to adding an HTML block to members My page to instruct them to hover their mouse on the Family trees menu and to select the private tree from the dropdown to get to the Home Page.

Or maybe as well insert a link to the private gedcom to save them clicking all over the place. Can you confirm that this is the right format as per your post in the other topic because when I click it Firefox comes up with Object not found!:

/index.php?ctype=gedcom&ged=private.GED

As does this one pasted in the Source of the editor:

<p>Switch GedCom:</p>

<ul>
<li><u><a href="/index.php?ctype=gedcom&ged=private.GED">Home Page</a></u></li>
</ul>


http://localhost/webtrees/index.php?ctype=gedcom&ged=private.GED works though.
Novice in all webtrees matters and in every respect

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

My pages 3 years 11 months ago #12

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum
  • Platinum
  • Greetings from Utrecht, Holland
  • Posts: 2099

potain wrote: neither of us can figure out why it's not behaving as it should.


I just had an idea... Try this:

* Create a third tree.
* Make that third tree the default tree.
* Delete the third tree.

Then none of your trees have the "default" attribute set, and the system should fall back to the behaviour where only autorizations and presence of a user's Individual Record dictate which tree gets selected after logging in.

potain wrote: when I click it Firefox comes up with Object not found!:

/index.php?ctype=gedcom&ged=private.GED


Ah, my bad... This is usually valid HTML, but apparently not in this case. Just use the full link then.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Last edit: by bertkoor.

My pages 3 years 11 months ago #13

  • potain
  • potain's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 90
Hello bertkoor

/index.php?ctype=gedcom&ged=private.GED - solved.
Added /webtrees to the front of the address and bob's your uncle - hope it still holds true when I upload the tree to the server.

bertkoor wrote: I just had an idea... Try this:

Great idea - done, neither tress are set as default - no luck I'm afraid.

I doubt if this could be causing any interference with the logic but it might be worth mentioning - I have created seperate custom themes for the private tree (based on the webtrees one) and public tree (custom minimal theme).

Would that have any effect on what's not happening?
Novice in all webtrees matters and in every respect

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

  • Page:
  • 1
Powered by Kunena Forum