I have customised my admin MyGedView Portal so that the User message is first on the Main block.
When I first login it appears on the right and only gets adjusted to my request when I click on the MyGedView icon and gets refreshed.
The My account icon and other texts also look a bit funny on centred across the columns while the Wecome User text is left aligned. In blocks\user_welcome php you have this code on line 58:
$content .= "</tr><tr><td class=\"center\" colspan=\"3\">";
Would changing "center" to left align those elements to the left and adding margin-left: 2px; to the if statements it above work to indent the items?
As with the Journal change that I made (see New Module: Family Story post) ticking " Use these blocks as the default block configuration for all users? " doesn't automatically change the editor's view as one would expect to reflect those made in the admin's view?
Thanks for your help
Jean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The "use as default" option only applies to users who haven't configured their Portal page.
If you remove the class="center" completely, the block contents should be left-aligned.
It appears as though you might not know the difference between the Welcome page and the Portal page. These two pages seem to be the same, but they actually aren't. They use the same basic code, though.
The Welcome page is the page you see when you first access the site. It's also the page you see after you've logged in if your configuration says that that's the page to be displayed after login.
The Portal page is shown after login when you click the My GedView menu option, and also when the configuration says that that's the page to display after login.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry. Got my welcomes and portals in a twist. Thanks Gerry.
Have removed class=\"center details2\" and class=\"center\" from user_welcome php. The Portal is looking good with the icon and texts left aligned.
For the Welcome page it's the Gedcom Welcome Block that controls isn't it?
If I remove \"center\" from the div that should align the date and customise text to the left.
Hi
I have customised my admin MyGedView Portal so that the User message is first on the Main block.
When I first login it appears on the right and only gets adjusted to my request when I click on the MyGedView icon and gets refreshed.
The My account icon and other texts also look a bit funny on centred across the columns while the Wecome User text is left aligned. In blocks\user_welcome php you have this code on line 58:
$content .= "</tr><tr><td class=\"center\" colspan=\"3\">";
Would changing "center" to left align those elements to the left and adding margin-left: 2px; to the if statements it above work to indent the items?
As with the Journal change that I made (see New Module: Family Story post) ticking " Use these blocks as the default block configuration for all users? " doesn't automatically change the editor's view as one would expect to reflect those made in the admin's view?
Thanks for your help
Jean
The "use as default" option only applies to users who haven't configured their Portal page.
If you remove the class="center" completely, the block contents should be left-aligned.
It appears as though you might not know the difference between the Welcome page and the Portal page. These two pages seem to be the same, but they actually aren't. They use the same basic code, though.
The Welcome page is the page you see when you first access the site. It's also the page you see after you've logged in if your configuration says that that's the page to be displayed after login.
The Portal page is shown after login when you click the My GedView menu option, and also when the configuration says that that's the page to display after login.
Ooops
Sorry. Got my welcomes and portals in a twist. Thanks Gerry.
Have removed class=\"center details2\" and class=\"center\" from user_welcome php. The Portal is looking good with the icon and texts left aligned.
For the Welcome page it's the Gedcom Welcome Block that controls isn't it?
If I remove \"center\" from the div that should align the date and customise text to the left.
How would I go about centering the title instead:
$id = "gedcom_welcome";
$title = PrintReady(get_gedcom_setting(PGV_GED_ID, 'title'));
$content = "<div class=\"center\">";
$content .= "<br />".format_timestamp(client_time())."<br />\n";
if ($SHOW_COUNTER)
$content .= $pgv_lang." ".$hitCount."<br />\n";
$content .= "\n<br />";…………….
Thanks again.
Jean
This is not as easy to as I imagined as changing the css doesn't change anything since you're using a variable. Tried:
$title= "<div class=\"centre\">"; PrintReady(get_gedcom_setting(PGV_GED_ID, 'title')); "</div>";
but the line doesn't print.
Don't seem to be able to use title.= as you do with the content variable to format the title either.