Jump to content
TNG Community
Geoff1959

Lazarus Guest Book on TNG11

Recommended Posts

Geoff1959

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?

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
jayat1familytree

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

Share this post


Link to post
Share on other sites
Newfloridian

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

 

Share this post


Link to post
Share on other sites
tngrlkrz

Alan, If it's the space inside the >br /> you're referring to, I don't believe that's an issue.

Ron

Share this post


Link to post
Share on other sites
Newfloridian

No, it's the space that's missing in the original ahref

Alan

Share this post


Link to post
Share on other sites
tngrlkrz

Ah, you meant "note the 'missing' space". OK.

Ron

Share this post


Link to post
Share on other sites
Newfloridian

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

Share this post


Link to post
Share on other sites
Geoff1959

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

Share this post


Link to post
Share on other sites
bhemph

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

Share this post


Link to post
Share on other sites
OttawaBullock

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

Share this post


Link to post
Share on other sites
raisondetre

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!

Share this post


Link to post
Share on other sites
Chris Lloyd

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.

Share this post


Link to post
Share on other sites
raisondetre

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 . . . 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×