Menu

Logo adgustement

Mes Forems
2016-10-09
2016-10-20
  • Mes Forems

    Mes Forems - 2016-10-09

    Hi

    I am working in my local copy of PhpGed View and have changed the header.jpg that appears on the opening page to my own logo in the standrard template but wondering where I can adgust the attributes to it as the dimensions are not correct. Would I also need to change all the other temp[lates too?

    Also where would I go to make changes to the Welcome page to include some instructions on how to use the program for newcomers and adding thanks (including pictures) for those who contributed to the tree?

    As an aside, would it be preferable to migrate to webtrees and to try it there istead of with PhpGedVieww (which I really like) since it is no longer being developed?

    Thanks for yor help.

     
  • Gerry Kroll

    Gerry Kroll - 2016-10-09

    Are you running PhpGedView version 4.3.0, downloaded from the SVN repository? If not, I'd strongly advise you to upgrade your installation. If PhpGedView suits your needs, there's no need to switch to Webtrees unless you run into an insurmountable problem or discover an attractive feature within Webtrees that PhpGedView hasn't implemented..

    I normally advise new users to start with Webtrees.

    The header.jpg file is called up in the header.php script within the same theme directory. The exact line where this takes place varies, but for the Standard theme, it's line 94. If you specify only one of the dimensions, browsers will adjust the other dimension to preserve the aspect ratio of the original image. So: specify either the width or the height, but not both. If neither the width nor the height are specified, browsers will display the image in its original size.

    Changes to the Welcome page can be made while logged in with Administrator rights. There's a link on the Welcome page, either within the Welcome block itself or at the bottom of the page. You can add an HTML block where you can display text and pictures as you wish. You can also customize the News block to add text, but displaying images in this block is difficult.

    Changes made to the Welcome page by adding or removing blocks or changing their order or placement apply to all themes. Changes made to the header.jpg or header.php files apply only to the theme in which the changes were made.

     

    Last edit: Gerry Kroll 2016-10-09
  • Mes Forems

    Mes Forems - 2016-10-10

    Hi Gerry.

    Yes I have 4.3.0 installed after making enquiries earlier and getting instructions.on how to upgrade.

    Thank you for your prompt and instructive reply which I'll look into straighaway and apply.

     
  • Mes Forems

    Mes Forems - 2016-10-10

    Sorry to bother you again Gerry

    While making changes I noticed that the Themes selector is not shown in the tree (neither on the local or server).

    Any idea of how to bring it back?

    Also on my local copy the Geneaolgy for... link under Logged in as (admin) Admin | Logout goes to PVG rather than the local host adddress, would you please let me know which file I need to accees to change the lnik.

    Thanks

     
  • Gerry Kroll

    Gerry Kroll - 2016-10-10

    You need to make changes to the /config.php file to allow users to make Theme changes. The URL that the Home button on each page links to is part of the the GEDCOM configuration in file index/xxx.config.php. Change the permissions on these files to allow writing, make the configuration changes as described below, and then change these files back to read-only.

    You need to be logged in with Admin rights.

    To show the Theme change selector, launch the Configuration wizard by clicking on the Admin option at the top of each page, and then click on "Configuration" in the Admin menu. The Configuration wizard should show you Step 4, and the Basic configuration tab. One of the options controls whether users are allowed to change the theme. Click Next until the configuration has been saved.

    You can access the "Manage GEDCOMs and edit Privacy" page from the last step of the Configuration wizard or from the Admin menu page. Click on the Edit option to the right of the GEDCOM configuration file, then click on the "Web Site and META Tag Settings" section title to expand that section. Change the contents of the "Main WebSite URL" field to suit your needs, and then save the changed configuration.

     
  • Mes Forems

    Mes Forems - 2016-10-11

    Thanks ever so much Gerry.

    I did have 'Yes' slected under Allow users to select their own theme in the configuration file but the selector would not show.

    I explored the GEDCOM Configuration file and discovered under User Options > Display theme dropdown selector for theme changes - which when I changed it to Yes showed the selector.

    Thank you.

    Just one other query, if I may please Gerry. In readme,txt it mentions:

    'To help with the setting of permissions a file called setpermissions.php
    has been included with the project. This file will attempt to set 777
    permissions to the config.php, ./index, and all of the files inside the
    ./index directory. Because host settings vary on the ability of PHP
    programs to set file permissions, you have to run this file manually.'

    I searched htdocs > PhpGedView but can't find it. Is it still distributed as it would come in handy to run ( if I knew how to on the server) once I finshed my modifications locally and upload the files to the server.

    Thanks again for your invaluable help.

     
  • Gerry Kroll

    Gerry Kroll - 2016-10-11

    That setpermissions.php file doesn't exist. I don't think it ever was part of the project.

    I just use my FTP client to set the permissions as necessary. I use FileZilla.

     
  • Mes Forems

    Mes Forems - 2016-10-13

    Hello Gerry,

    Thank you. Hope you don't mind my bothering you some more. This time a bit more technical in nature.

    I am looking at the URL that open the program:

    localhost/PhpGedView/login.php?url=index.php%3Fctype%3Dgedcom%26ged%3.....GED

    Just wondering how the redirection works so that the login page opens instead of the index page and how and where it is achieved,

    With my elementary knowledge of PHP and cursory look at the documentation I realise that this is done through the header but have no idea of the logic involved.

     
  • Gerry Kroll

    Gerry Kroll - 2016-10-13

    What are you trying to achieve?

    If you want to require all users to log in before they can view anything, there is GEDCOM configuration option for that.

    Make sure that the index/xxx.config.php file is writable.

    Open the Configure GEDCOMs and Edit Privacy page, click on the Edit option on the GEDCOM configuration line, then click on the title of the "Access and Privacy" section to open that section. You'll find the "Require visitor authentication" option, where you can determine whether visitor authentication is required or not. Don't forget to save your changes.

     
  • Mes Forems

    Mes Forems - 2016-10-20

    Hi Gerry

    Not wanting to do anything but merely curious on it works and the code that 'glues it together' and where it occurs and is declared.


    Please tell me if I need to start a new topic for this but when I try to send emails from PGV on the server to users I get an 'Invalid page referer'' reply. I am logged in as admin.

    Not sure what is causing this and how to fix it and will appreciate any help in resolving it.

    Thank you

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.