Jump to content
TNG Community
Knaldgas

Alternative suggest form

Recommended Posts

Knaldgas

Hi,

I'm starting to get spam through TNG suggest form, which means such mails bypass my spam detection.

I've tried to set the "nosuggest" flag, but the contact page is still shown and active. What is "nosuggest" flag meant for if not for this?

Idea: add two alternatives to the contact form:

  1. Change it to a simple "mailto" link.
  2. Show a contact page with instructions on how to contact, preferably with the mail-address rendered on an image (not in clear text).

~Per

Share this post


Link to post
Share on other sites
Knaldgas

Yes, I've seen that.
I actually still do prefer to have people sending me mail through conventional channels, instead of receiving a mail from myself (when looking in server logs).

I've just been experimenting a bit:
Inserting:

<?php echo "<h2><a href=\"mailto:$emailaddr?subject=TNG $headline\">$emailaddr</a></h2>";?>

gives me a link to click which opens my email client with To: set to my email, and Subject: set to "TNG $headline".
I inserted that into suggest.php instead of the form and the button gives me close to what I'm suggesting.

Thanks!

Share this post


Link to post
Share on other sites
manofmull
27 minutes ago, Knaldgas said:

gives me a link to click which opens my email client with To: set to my email, and Subject: set to "TNG $headline".
I inserted that into suggest.php instead of the form and the button gives me close to what I'm suggesting.

Outwith my skillset!

Hopefully someone more knowledgeable will pick up on this for you.

Share this post


Link to post
Share on other sites
Knaldgas

Thanks for trying to help me :-)!

I've changed my suggest.php, so I just have to be careful when updating I presume. Would be nice if it becomes a setting :-)

~Per

Share this post


Link to post
Share on other sites
Michel KIRSCH
4 hours ago, Knaldgas said:

I just have to be careful when updating

 

Try to do a little mod  with your modifications.

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

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

Michel

Share this post


Link to post
Share on other sites
Knaldgas

Hmm, that doesn't look too difficult...
My new php should probably be cleaned up a bit first.

If I can find the time, I would give it a try.

Thanks for the pointer!

~Per

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

×