Jump to content
TNG Community
Appelmus

Link and page "Impressum"

Recommended Posts

Appelmus

Hello!

Can someone explain to me how the link and the page Impressum in TNG becomes possible! (See illustration)

Best regards

Appelmus

PS. I use tng 12. My website is a standalone project and not published. I test it with Mamp.

Impressum.jpg

Share this post


Link to post
Share on other sites
Appelmus
vor 13 Minuten schrieb manofmull:

What do you mean by "not published"?

http://www.genealogie-bohrer.de/tng/index.php

My own website is running locally on a Mampserver. The picture shows the website of another tng user.
vor 14 Minuten schrieb manofmull:

I was able to search for your site and found it with the Impressum (Imprint) link on the homepage

Anthing to do with this site in Switzerland?

https://www.espros.com/impressum_imprint/

No

Share this post


Link to post
Share on other sites
Kare
1 time siden, Appelmus skrev:

My own website is running locally on a Mampserver. The picture shows the website of another tng user.

No

Another user with the same name?? ... Peter Bohrer...

Or have you copied and posted the Impressum/contact page from another person’s site??

Share this post


Link to post
Share on other sites
manofmull

The way I'm reading this now is that it's not your site, but you're using it as an example?

You want to know how to add a link to your site?

 

Michael

Share this post


Link to post
Share on other sites
Ken Roy

You might need to be at least at TNG 12.0.1 which added the GDPR requirements  Some European users may have replaced the Privacy Policy with an Impressum page. 

Share this post


Link to post
Share on other sites
Appelmus

Thank you, Ken!

I try both to bring the privacy and the imprint page on one page.
I would then only convert the link name Privacy into Privacy + Imprint.
Is that possible?
Appelmus

Share this post


Link to post
Share on other sites
Appelmus
vor einer Stunde schrieb manofmull:

The way I'm reading this now is that it's not your site, but you're using it as an example?

You want to know how to add a link to your site?

 

Michael

That's the way it is.

Thank you

Share this post


Link to post
Share on other sites
manofmull

I'm not 100% sure if this is what you want, but the following html will give you that link and just show "Privacy" (without quotes)

It will also open in a new window/tab.

<p><a target="_blank" href="http://www.genealogie-bohrer.de/tng/impressum.php?">
Privacy</a></p>

 

Michael

Share this post


Link to post
Share on other sites
Appelmus

Thank you, Michael!

  Where do I write this line?

Appelmus

Share this post


Link to post
Share on other sites
manofmull

You can edit the index.php page of the template you are using by adding the code to that.

You cannot use the exact code I gave because that address belongs to another website (at least not with a "live" site).

Substitute that site address with the one which has the Impressum message.

You might have to create a page for the Privacy message.

Before you edit the template index.php page, make a backup first.

https://tng.lythgoes.net/wiki/index.php?title=Customization

Some templates have feature links that can be added/edited in Admin/Template Settings.

For "cookies" message, It's much easier just adding a script.

Michael

Share this post


Link to post
Share on other sites
XerxX

Hi Appelmus,

The attached mod installs a link at the bottom of the left-hand menu the same way as all other links are added, in index.php as well as topmenu.php

It also installs the text "Impressum" in the language-folders
English, English-UTF8, German and German-UTF8

If you want to replace the English/English-UTF8 word "Impressum" with something else, you should do it in the .cfg-file before you install.
Simply edit the strings in Textedit (? your plaintext editor).

Do like this:

1) Open historytemplate.php in Textedit.
2) Save it as impressum.php in the histories folder.
3) Edit this impressum.php, following the instructions in there. Add your "Impressum-text" where the instructions says so.
4) Save the file.

5) Copy the attached mod Add_Impressum_link_to_Template_4.cfg to your mods folder.
6) Install it.

HTH
Erik

Add_Impressum_link_to_Template_4.cfg

Share this post


Link to post
Share on other sites
manofmull

Erik

I didn't know that mod existed!.

I learn something new every day here :)

So much easier with a mod.

M

Share this post


Link to post
Share on other sites
XerxX

It didn't. I wrote it just now.

For reasons to be revield later, it isn't in the Wiki.

/Erik

Share this post


Link to post
Share on other sites
manofmull

Erik

Ahh, that makes me feel less silly now that you have "revealed" it to me :)

 

M

Share this post


Link to post
Share on other sites
Appelmus
vor einer Stunde schrieb XerxX:

HI Erik, thank you for your help, but I am completely clueless.

I copied the link into the mod folder, but nothing happens.

I use the template 15 myself, but also in the template 4 the Impressum link is not shown.

Can you tell me what I'm doing wrong? Can the mod also be used for template 15?
Best regards

Appelmus

Share this post


Link to post
Share on other sites
Appelmus

Hello Michael!

Thank you for your efforts. Help me to follow now Eriks way.

🙂 Appelmus

Share this post


Link to post
Share on other sites
XerxX
18 minutes ago, Appelmus said:

Can you tell me what I'm doing wrong? Can the mod also be used for template 15?

No, Applemus, it's only for template 4.

You showed in the OP what you want and I supplied. There is no such menu in template 15.

 

18 minutes ago, Appelmus said:

I copied the link into the mod folder, but nothing happens.

I suppose you mean that you copied the attached file..? Did you try to Install it..? (Probably "Cannot install")

But it will only work in template 4 (I tested it before I posted it).

 

Another solution can be to add your "impressum-text" to the data_protection_policy.php file and activate it by

Administration >> Setup >> General Settings >> Privacy >> Show link to data protection policy = Yes.

The link is in the footer.

 

/Erik

P.S. Thanks for the correction, Michael. I should know it but I didn't think. (Why don't we all speak Swedish ;) )

Edited by XerxX
Added PS

Share this post


Link to post
Share on other sites
manofmull

Appelmus

I knew Erik would respond to you. Change your template to 4.

Just to be clear, after clicking on Erik's cfg file (mod), save it to your computer.

Then upload it to your mods folder and instal it in Admin/Mod Manager

 

M

Share this post


Link to post
Share on other sites
Appelmus

Hello, Erik, Hello Michael!

Very nice, the link appears in template 4. All I have to do is insert the imprint text.

It is not possible to make a similar mod for template 15, where the imprint link appears in the footer. About this way: Imprint - users - data protection

Appelmus

 

Share this post


Link to post
Share on other sites
XerxX

Applemus,

If you add your text to the data_protection_policy.php file you can simply add:

$text['dataprotect'] = "Imprint - users - data protection";

to the cust_text.php file in the language folder(s) that you use.

Write it on a new line just before the ending

?>

line.

This will change the text in the footer.

 

Remember to make a note of this, should you ever happen to delete/overwrite it.

This will change the link in all templates - also in template 4 (you can Uninstall the mod and then - if you want to - delete the mod and the impressum.php file you created in the histories folder).

HTH

Erik

Share this post


Link to post
Share on other sites
Ken Roy

The Privacy Policy file provided by TNG 12.0.1 was designed to be multi-language since it does not make sense to display a file in a language other than what is being viewed by the user.  If I access a site in English, for example, it does not make sense to display an Impressum file in German that I do not read nor understand.

A better approach would be for you to update the data_protection_policy.php in the language folder to include what you consider to be the impressum requirement and then to change the text variable being used for the link in the footer by copying that variable to the appropriate cust_text.php files and changing the value of that variable

Share this post


Link to post
Share on other sites
XerxX

Hi Ken,

Thanks for that info!

I didn't know about it: In TNG 12 (still not on-line), I have only been using the Swedish folder and there is no such file there 😕

/Erik

Share this post


Link to post
Share on other sites
Ken Roy

Erik,

That is likely because those who were beta testing TNG 12 never provided the Swedish translation for the English file in TNG 12.0.1  You should probably translate it and send the translation to Darrin.

The TNG code is setup to display the English version of the data_protection_policy.php if it is not found in the language folder.

Edited - by the way, the language translation provided to Darrin for inclusion into TNG should be a translation of the English text and not an interpretation of what users thing should be in the English file.  If the English text needs to be change that should be reported to Darrin, although the Germans were not successful in that effort, so there are German translations on local sites that are different than what is distributed by TNG.

Share this post


Link to post
Share on other sites
XerxX
9 minutes ago, Ken Roy said:

You should probably translate it and send the translation to Darrin.

I'm preparing... I can make a "raw" translation and post it for other Swedish users to check.

May take a day or three, though.

/Erik

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

×