Geoff1959 Posted November 13, 2016 Report Share Posted November 13, 2016 Can any one help me with Lazarus on TNG11 template 14 [web site www.serlefamilyhistory.geoff-searle.co.uk] I have downloaded and installed Lazarus following the instructions in the wiki article. If you follow it word for word there are a couple of things that you should be aware of :- 1. Under the section "Creating a php file in TNG to access your guest book" Create a new file (let's call it ourguestbook.php) If you create the name of this file in ALL lower case letters you must use that name when it comes to trying to access your guest book later on. In the Wiki there are two typo's that could catch you out. http://www.yourwebsite.com/Ourguestbook.php or http://www.yourwebsite.com/tng-install-folder/Ourguestbook.php The "ourguestbook" has a capital letter it should be lowercase This will give you a 404 error as the url will be incorrect. 2. If your url is good you will get a dialogue box telling you that you need to update the database. There is a clickable link "install.php" by default this will take you to localhost/geanealogy/lazarusgb/install.php When I tried the link it could not find anything. I think this is because it was looking at localhost/genealogy and I do not use the genealogy folder. On my site I entered www.serlefamilyhistory.geoff-searle.co.uk/lazarusgb/install.php and that displayed the "smartupdater" I clicked on that and it did the update fine. My site is English only but I do have multiple languages installed (i think). The language folder has other country character sets both in utf8 and standard. I then went on to modify the Index.php file by inserting one of the lines below. (I tried both in turn) echo "<li><a href=\"ourguestbook.php \">$text[Mygblink]</a></li>\n"; echo "<li><a href=\"ourguestbook.php \">Please sign our Guest Book</a></li>\n"; The Wiki says:- Modify the index.php that belongs to your TNG installation and any other secondary php files, as necessary. Somewhere, in an appropriate place on TNG's home panel, insert the following text: But does not give much of a clue as where an "appropriate" place would be within your index.php. or what the secondary php files might be. I put it at the end of the big list of href satements like this:- echo "<li><a href=\"suggest.php\">{$text['contactus']}</a></li>\n"; echo "<li><a href=\"ourguestbook.php \">$text[Mygblink]</a></li>\n"; I would like the guestbook icon and link to appear below the contact us option but at the moment no Guestbook link is being shown. Does anyone have any ideas on how I can fix this? Quote Link to comment Share on other sites More sharing options...
jayat1familytree Posted November 14, 2016 Report Share Posted November 14, 2016 Geoff, When i look at the index.php page for template14 the section where you want to add your link looks like about line 113-116. <div class="left-indent"> <h3><?php echo $text['contactus']; ?></h3> <p class="contact"><img src="<?php echo $cms['tngpath'] . $templatepath; ?>img/email.gif" alt="email image" class="emailimg" /><?php echo $text['contactus_long']; ?></p> </div> But that is not what you listed above. echo "<li><a href=\"suggest.php\">{$text['contactus']}</a></li>\n"; Anyway i think you could just add a 'break row' after the "We look forward to hearing from you." (Which is contained in the $text['contactus_long'] variable in the english and english utf8 language folders.) I think the code would look like this, but I cannot test it to be sure; <div class="left-indent"> <h3><?php echo $text['contactus']; ?></h3> <p class="contact"><img src="<?php echo $cms['tngpath'] . $templatepath; ?>img/email.gif" alt="email image" class="emailimg" /><?php echo $text['contactus_long']; ?> <br />Please visit our <ahref="<?php echo $cms['tngpath'] . $templatepath; ?>ourguestbook.php">Guestbook.</a></p> </div> Hope that helps Jay Quote Link to comment Share on other sites More sharing options...
Geoff1959 Posted November 14, 2016 Author Report Share Posted November 14, 2016 Hi Jay, Did try your code, still unable to get it to work. Regards, Quote Link to comment Share on other sites More sharing options...
Newfloridian Posted November 14, 2016 Report Share Posted November 14, 2016 Hi Geoff Have you left the code on the page? I've tried looking at your page's "view source" but can't see it. btw: there is a typo in Jay's code: <br />Please visit our <a href="<?php echo $cms['tngpath'] . $templatepath; ?>ourguestbook.php">Guestbook.</a></p> </div> Note the space Alan Quote Link to comment Share on other sites More sharing options...
tngrlkrz Posted November 14, 2016 Report Share Posted November 14, 2016 Alan, If it's the space inside the >br /> you're referring to, I don't believe that's an issue. Ron Quote Link to comment Share on other sites More sharing options...
Newfloridian Posted November 14, 2016 Report Share Posted November 14, 2016 No, it's the space that's missing in the original ahref Alan Quote Link to comment Share on other sites More sharing options...
tngrlkrz Posted November 15, 2016 Report Share Posted November 15, 2016 Ah, you meant "note the 'missing' space". OK. Ron Quote Link to comment Share on other sites More sharing options...
Geoff1959 Posted November 15, 2016 Author Report Share Posted November 15, 2016 Thank you gents will try this when I get home. Quote Link to comment Share on other sites More sharing options...
Newfloridian Posted November 16, 2016 Report Share Posted November 16, 2016 Hi Geoff Where exactly in relation to your root directory have you installed ourguestbook.php? The 404 Not Found error suggests it isn't in /templates/template14/ Alan Quote Link to comment Share on other sites More sharing options...
Geoff1959 Posted November 17, 2016 Author Report Share Posted November 17, 2016 Hi Alan, Originally I was going to have multiple "sites" on one URL so serlefamilyhistory is a sub directory (folder) in public_html. TNG is installed straight in serlefamilyhistory so there is no /genealogy folder. Ourguestbook.php is installed in the TNG root [www.serlefamilyhistory.geoff-searle/ourguestbook.php] The TNG Lazarus wiki says "Using the folder that you used to install TNG" so thats where I put it cant understand why it is looking in the templates folder. unless it is to do with Index.php?. Is there something to do with Template switching that means it uses the index.php file in the template folder of the selected template ? That was the index file I had to change to get TNG to show the Guestbook link. Regards, Geoff Quote Link to comment Share on other sites More sharing options...
bhemph Posted November 17, 2016 Report Share Posted November 17, 2016 Geoff, Yes, the template switching uses the index.php in the template/template14 folder since you chose that particular template. So then the link you have is starting from that folder, so if you change it to ../../ourguestbook.php that will tell it to look two folders up where you have the file located or you may just not need the ' . $templatepath' so that it looks like: <br />Please visit our <ahref="<?php echo $cms['tngpath']; ?>ourguestbook.php">Guestbook.</a></p> Brent Quote Link to comment Share on other sites More sharing options...
Newfloridian Posted November 18, 2016 Report Share Posted November 18, 2016 Glad to see you got it working Alan Quote Link to comment Share on other sites More sharing options...
OttawaBullock Posted April 14, 2017 Report Share Posted April 14, 2017 Hi Geoff, I'm usuing template 4 and am interested in setting up a guest book for my site. What is the url for your site. I would like to see how it works. Bob Quote Link to comment Share on other sites More sharing options...
DelG Posted April 14, 2017 Report Share Posted April 14, 2017 I also use Lazarus - here's a link to my site. Quote Link to comment Share on other sites More sharing options...
OttawaBullock Posted April 14, 2017 Report Share Posted April 14, 2017 Thanks Del. Bob Quote Link to comment Share on other sites More sharing options...
klooster Posted April 15, 2017 Report Share Posted April 15, 2017 Lazarus guestbook works also fine on my website, no spam so far: Read my guestbook Quote Link to comment Share on other sites More sharing options...
raisondetre Posted July 27, 2017 Report Share Posted July 27, 2017 As a newbie to management of php files, the installation of this guest book has me stumped right here: "Word of caution when making changes to files" . . . you must always make a backup copy of any file you expect to modify, just in case you make an error" I know how to make backups of course and have a brand new TNG Backup but I have no idea which files I will be 'expected to modify' so how do I know which to backup? I am capable of following clear instructions but this is just too vague. Before I go further, can someone advise which files I should protect and backup? Thanks! Quote Link to comment Share on other sites More sharing options...
Chris Lloyd Posted July 27, 2017 Report Share Posted July 27, 2017 As a precaution do a back up of all your files and then instal - as you go through the instal you may find that there are some files that need to be modified. Don't know for sure as I don't use Lazarus GB. Quote Link to comment Share on other sites More sharing options...
raisondetre Posted July 28, 2017 Report Share Posted July 28, 2017 I was able to install the guest book in the right place but somehow the style path is wrong. I started a new thread concerning that aspect . . . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.