Jump to content
TNG Community
John Paul

Template 19 question(s)

Recommended Posts

John Paul

Hello again, John Paul here.  I have a couple of questions about template 19:

1.  On the main page at the bottom there's a Quick Links and a Contact Us column.  In the Contact Us column there's a link for Footer Text (no link there).  right below that is Link or email address also with no link.  What would be a example of those 2 items and what file(s) would I edit? 

Starting to get my head wrapped around this stuff....

Share this post


Link to post
Share on other sites
Chris Lloyd

Go to your admin template setup and work through the various fields - they are all there but the sequence logic is a little confusing to find.

Share this post


Link to post
Share on other sites
John Paul

Thanks Chris.  I'll let you know how it works out.

Share this post


Link to post
Share on other sites
Chris Lloyd

What I did was instal AMPPS on my PC - Wamp and others work just as well, so I could 'fiddle' with setting up the template the way I want it. That way I didn't mess up my public site.

Share this post


Link to post
Share on other sites
Rob Severijns

For the changes to occur you can also edit the footer.php and mobile_footer.php in the template 19 folder

Share this post


Link to post
Share on other sites
John Paul

OK, Chris.  Looked at the teplate19 setup in admin.  The next to the last 2 fields are Text: Footer Text and Link: Send Email.  You can't use html or php in either field.  I looked in template19's folder and looked thru footer.php and index.php.  I couldn't see where you would add to it, if you know what I mean.....

Share this post


Link to post
Share on other sites
John Paul

Rob I wouldn't know what or where in those files to edit.  I'm no php programming guy by no means.  Thanks for the replies you guys, but I need a little more detail on this one.

Share this post


Link to post
Share on other sites
Rob Severijns

Here's a copy of my footer.php that ypu could use as an example

   <article class="contentBox3a">
	  <h4><?php echo $text['quicklinks']; ?></h4>
		<ul class="list1">
<?php 	if ($text['mnuwhatsnew'] != ""){ ?>
 			<li><a href="<?php echo $cms['tngpath']; ?>whatsnew.php"><?php echo $text['mnuwhatsnew']; ?></a></li>
<!-- next menu not handled by the mod !-->
			<li><a href="<?php echo $cms['tngpath']; ?>heatmap.php"><?php echo $text['heatmap']; ?></a></li>
<?php }	if ($text['maps'] != ""){ ?>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=maps"><?php echo $text['maps']; ?></a></li>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=histories"><?php echo $text['histories']; ?></a></li>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=news"><?php echo $text['news']; ?></a></li>
			<br>
 			<li><a href="<?php echo $cms['tngpath']; ?>Sev_histories/Nederland_ddeh.php">Nederland door de eeuwen heen</a></li>

          
   <article class="contentBox3b">
	  <h4>Externe Links</h4>
	  <ul class="list1">
		<li><a href="https://cbg.nl/kennis/basiskennis/" target="_blank" title="CBG - Stamboomnderzoek - Basiskennis">CBG - Onderzoek - Basiskennis</a></li>
		<li><a href="https://cbg.nl/kennis/stappenplan/" target="_blank" title="CBG - Stamboomnderzoek - Stappenplan">CBG - Onderzoek - Stappenplan</a></li>
		<li><a href="https://cbg.nl/kennis/themas/indische-voorouders/" target="_blank" title="CBG - Stamboomnderzoek - Indische voorouders">CBG - Onderzoek - Indische voorouders</a></li>
		<li><a href="https://cbg.nl/kennis/themas/militaire-voorouders/" target="_blank" title="CBG - Stamboomnderzoek - Militaire voorouders">CBG - Onderzoek - Militaire voorouders</a></li>
		<br>
		<li><a href="https://www.delpher.nl/" target="_blank" title="Zoeken in oude Nederlandse kranten en tijdschriften">Delpher</a></li>
		<li><a href="https://www.geneaknowhow.net/digi/bronnen.html" target="_blank" title="Digitale Bronbewerkingen Nederland en Belgie">GeneaKnowHow</a></li>
		<li><a href="https://www.krancher.com/doopregister-katholieke-kerk-soerabaja/" target="_blank" title="Doopregister Soerabaja">Krancher dot Com</a></li>
		<li><a href="https://www.roosjeroos.nl/" target="_blank" title="Zoeken in de Nederlands Indische Burgerlijke Stand">Roosje Roos</a></li>
		<li><a href="https://www.wiewaswie.nl/" target="_blank" title="Zoeken in de Nederlandse Burgerlijke Stand">Wie Was Wie</a></li>
	  </ul>
   </article>
   <article class="contentBox3c">
		 <h4><?php echo $text['webmastermsg']; ?></h4>
		 <p><?php echo getTemplateMessage('t207_latestnews'); ?></p>
   </article>
<div class="clear"></div>
</div></div>

You can use Notepad++ to edit the footer.php.

See my website for the effects Severijns Family

 

Edited by Rob Severijns
Deleted the non interesting parts of code

Share this post


Link to post
Share on other sites
John Paul

Rob, in what area of footer.php  would i insert this code?  thanks

I'm looking at it now.....

Rob I think I got the idea of what I'm doing now. lol  I'll get back if it all goes sideways...

Edited by John Paul
ammended

Share this post


Link to post
Share on other sites
Rob Severijns

There where it says contentBox3a and contentBox3b

You can put your own links there. The format is in my example.

Look at the lines that start with <li>

Share this post


Link to post
Share on other sites
John Paul

Thanks Rob, I think I have a handle on it now...a little older and a little slower after 6-7 years out of the game...

Share this post


Link to post
Share on other sites
John Paul

Hey Rob, could you send me your addon to footer.php templste19 again but in english...if possible...I don't want to put you out...maybe there's a site out there that can traslate it online...for free.  haha

Share this post


Link to post
Share on other sites
Chris Lloyd
2 hours ago, RickM said:

Hi John Paul

You could try DeepL https://www.deepl.com/translator

 

I think he is after a translation of the php code :)

Share this post


Link to post
Share on other sites
John Paul

Well it's actually anything written in his native language, not the php code ( can probably figure that out)

Share this post


Link to post
Share on other sites
Chris Lloyd
25 minutes ago, John Paul said:

Well it's actually anything written in his native language, not the php code ( can probably figure that out)

but all the pertinent bits for you i.e. not his links are all in english :)

Share this post


Link to post
Share on other sites
RickM

Do try DeepL it is free..

Share this post


Link to post
Share on other sites
Rob Severijns

John Paul,

Everything that's written in the Dutch language is mostly irrelevant for you because the links that contain the Dutch language link to either a map in my TNG files directory that you don't have, a personal php template that you don't have or to a website in Dutch of which some of them have the option to see the pages in Englisch.

So links to a php file with Dutch text will end up in a 404 error

My intention with the piece of code was to give you an example of how to link to php files in your TNG directory or to websites on the internet.

It was merely an example of what the code could look like.

From there on you can create your own links.

For more info on HTML or PHP coding see w3schools.com and an online editor can be found here Onlin HTML Editor

If you still want me to translate the Dutch text let me know and I'll do it for you.

Rob

Share this post


Link to post
Share on other sites
John Paul

ok forget about the translations,,  It was a bit much to ask I guess and you all are right, I just need the code and I'll figure it out.  Sorry for the misunderstanding.  Don't know what I was thinking.  I do appreciate all the replies and info from you guys.

I was looking on the net about the redirecting to anothers site.  It says that the primary reason for it is if you have a malicious redirect malware on you pc.  I scanned my pc with malwarebytes premium and it found nothing.  It,s weird because I had it all working, then all of a sudden it started to redirect....I'll try looking at all the code in the lazarus gb foler and see if I can find something....

FOUND IT:  this is in the lazarus gb index.htm :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<meta http-equiv="refresh" content="0; url=https://www.mirelle-sound.ch/lazarus/index.php" />
<title>Umleitung auf index.php</title>
</head>

<body></body>

</html>

Don't know why it's there

Share this post


Link to post
Share on other sites
Rob Severijns

John Paul,

No need to apoligize.

Is there a redirect in your .htaccess file?

You can find it in the root of your TNG directory and in the public_html directory

Share this post


Link to post
Share on other sites
John Paul

The only hyaccess file are in the lazarusgb folder.  no redirect there. Not sure how I should change this line?

<!-- <meta http-equiv="refresh" content="0; url=https://www.mirelle-sound.ch/lazarus/index.php" /> -->

I commented it out and just get a blank screen now. looking on the net about the meta tag....

UPDATE:  Don't remember what I did, but I finally got the guestbook working....

Share this post


Link to post
Share on other sites
Rob Severijns

You can change the url part to any location you want.

Basicly your Guestbooks startingpage.

Share this post


Link to post
Share on other sites
John Paul

I'll keep that in mind.  I'm going to start work on the guestbook on the hosted site this morning sometime.  Been up half the night trying to figure it out...

Share this post


Link to post
Share on other sites
John Paul
On 12/9/2021 at 2:39 PM, Rob Severijns said:

Here's a copy of my footer.php that ypu could use as an example


   <article class="contentBox3a">
	  <h4><?php echo $text['quicklinks']; ?></h4>
		<ul class="list1">
<?php 	if ($text['mnuwhatsnew'] != ""){ ?>
 			<li><a href="<?php echo $cms['tngpath']; ?>whatsnew.php"><?php echo $text['mnuwhatsnew']; ?></a></li>
<!-- next menu not handled by the mod !-->
			<li><a href="<?php echo $cms['tngpath']; ?>heatmap.php"><?php echo $text['heatmap']; ?></a></li>
<?php }	if ($text['maps'] != ""){ ?>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=maps"><?php echo $text['maps']; ?></a></li>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=histories"><?php echo $text['histories']; ?></a></li>
			<li><a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=news"><?php echo $text['news']; ?></a></li>
			<br>
 			<li><a href="<?php echo $cms['tngpath']; ?>Sev_histories/Nederland_ddeh.php">Nederland door de eeuwen heen</a></li>

          
   <article class="contentBox3b">
	  <h4>Externe Links</h4>
	  <ul class="list1">
		<li><a href="https://cbg.nl/kennis/basiskennis/" target="_blank" title="CBG - Stamboomnderzoek - Basiskennis">CBG - Onderzoek - Basiskennis</a></li>
		<li><a href="https://cbg.nl/kennis/stappenplan/" target="_blank" title="CBG - Stamboomnderzoek - Stappenplan">CBG - Onderzoek - Stappenplan</a></li>
		<li><a href="https://cbg.nl/kennis/themas/indische-voorouders/" target="_blank" title="CBG - Stamboomnderzoek - Indische voorouders">CBG - Onderzoek - Indische voorouders</a></li>
		<li><a href="https://cbg.nl/kennis/themas/militaire-voorouders/" target="_blank" title="CBG - Stamboomnderzoek - Militaire voorouders">CBG - Onderzoek - Militaire voorouders</a></li>
		<br>
		<li><a href="https://www.delpher.nl/" target="_blank" title="Zoeken in oude Nederlandse kranten en tijdschriften">Delpher</a></li>
		<li><a href="https://www.geneaknowhow.net/digi/bronnen.html" target="_blank" title="Digitale Bronbewerkingen Nederland en Belgie">GeneaKnowHow</a></li>
		<li><a href="https://www.krancher.com/doopregister-katholieke-kerk-soerabaja/" target="_blank" title="Doopregister Soerabaja">Krancher dot Com</a></li>
		<li><a href="https://www.roosjeroos.nl/" target="_blank" title="Zoeken in de Nederlands Indische Burgerlijke Stand">Roosje Roos</a></li>
		<li><a href="https://www.wiewaswie.nl/" target="_blank" title="Zoeken in de Nederlandse Burgerlijke Stand">Wie Was Wie</a></li>
	  </ul>
   </article>
   <article class="contentBox3c">
		 <h4><?php echo $text['webmastermsg']; ?></h4>
		 <p><?php echo getTemplateMessage('t207_latestnews'); ?></p>
   </article>
<div class="clear"></div>
</div></div>

You can use Notepad++ to edit the footer.php.

See my website for the effects Severijns Family

 

 

 

Edited by John Paul

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

×