Loading...
 
Skip to main content

Features / Usability


tiki-contact.php

why does my tiki-contact.php page display this:

Contact us

Contact us by email
click here to send us an email: suporte(DOT)forum(AT)pdh(DOT)com(DOT)br

  • what are those "(DOT)" "(AT)" things? why doesen't it display su...@pd...? the link gets unusable since it get pasted in outlook with this (DOT) stuff.
  • the "send a message to us" screen, with the "in browser" message sending system is only displayed to registered users. can i change that? I'd prefer to do a separate contact page for unregistered users rather than using a blank page with only the phrase "click here to send us an email:"


well, after that the webpage i am working on will be finished...
so pleeease hurry so i can finaly "turn it on" 😁
thanks!

It is an antispam protection method. You can specify how an email is displayed on the General Preferences page (MyTiki > Preferences).

To allow non-registered (i.e., "anonymous") users to use the contact form, I think you need to enable the Contact Us (Anonymous) feature on tiki-admin.php?page=features

HTH,

-RickQuestion

> why does my tiki-contact.php page display this:
>

>
Contact us

> Contact us by email
> click here to send us an email: suporte(DOT)forum(AT)pdh(DOT)com(DOT)br

>

>
> *what are those "(DOT)" "(AT)" things? why doesen't it display su...@pd...? the link gets unusable since it get pasted in outlook with this (DOT) stuff.
> *the "send a message to us" screen, with the "in browser" message sending system is only displayed to registered users. can i change that? I'd prefer to do a separate contact page for unregistered users rather than using a blank page with only the phrase "click here to send us an email:"
>
> well, after that the webpage i am working on will be finished...
> so pleeease hurry so i can finaly "turn it on" 😁
> thanks!


this changes the displayed email for my profile
but it doesn't change the email format at the "tiki-contact.php" page


> It is an antispam protection method. You can specify
> how an email is displayed on the General Preferences
> page (MyTiki > Preferences)

Really, I don't see it. Unless you mean thisL

> To allow non-registered (i.e., "anonymous") users to
> use the contact form, I think you need to enable the
> Contact Us (Anonymous) feature on tiki-admin.php?page=features

It's probably true, but it doesn't fix the problem. I have both "contact" boxes checked, and "user messages" turned on, but my contact page still shows:

"click here to send us an email: info(AT)agilecoachcamp(DOT)org

As mentioned in the initial note, above, the "mailto" behind this has bad syntax, it just says

mailto: info(AT)agilecoachcamp(DOT)org

resulting in an email with a nonsensical email address of
"AT DOT "

I have searched for help with this but found nothing helpful. I'm a newbie wiki admin, but usually pretty good with doco...

help!

Sorry, I included reserved characters. Here it is again.

AT DOT

results in a nonsensical email address...

display name: ATDOT
email address: infoagilecoachcamporg (doesn't even include an AT sign!)

> > It is an antispam protection method.

> Really, I don't see it.

Email addresses written in their standard format are routinely found in web pages and harvested by scripts/bots that add them to spam mailing lists. Unless you are eager to have your Tiki contact address added to these spam lists, it's a good idea to leave it obfuscated as it is (which, being modified only slightly, probably means the address is still vulnerable but this level of obfuscation is better than nothing). True, it has to be "processed" slightly by the human user (copy, paste and a little editing rather than simply being clicked), but that added step is what distinguishes human visitors from the bots and prevents the spam.

If you are determined to offer up your email address, you can edit the templates/tiki-contact.tpl file like this:

In line 33 (in the 1.9.9. version) replace

Copy to clipboard
{mailto address="$email" encode="javascript" extra='class="link"'}

with

Copy to clipboard
< a href="mailto:(your_email_address_here" class="link">your_email_address_here< /a >

(but with the spaces after the opening angle brackets removed). But once again, this is very ill-advised, so please consider the consequences carefully before taking this step.

-- Gary

Of course I want my email address obfuscated to foil robots. But I also want the mailto: address to create some kind of useable email address.

To this end, instead of putting my email address, I usually put something like "username AT domain DOT org", so the person sending the email can guess how to fix the email address so it works. Right now, there isn't any way for them to guess what the right email address is.

So:
< a href="mailto:user AT domain DOT org" class="link" >user AT domain DOT org< /a >

Though, I'd rather change this value in the source location (rather than hardcoding it).

But then I have a different problem: I can't tell where it's picking up the value for $email - I changed the value in General Preferences / Contact User to a different user name with a different email address, but to no effect. It must be picking it up somewhere else. Any idea where?

Thanks
deb

> Of course I want my email address obfuscated to foil robots. But I also want the mailto: address to create some kind of useable email address.

If the link is clicked, yes, I see what you mean. Using Firefox and clicking the link, I get a new message in Thunderbird with this address: AT DOT < mynamemydomain >. I guess the intention is that the address should not be clicked but rather copied, pasted, and edited. This isn't consistent with making it a link, though. In 1.10cvs, BTW, the contact-us email address isn't obfuscated at all, or if there is a setting for that, I haven't found it yet. So clearly there's a problem here (yes, I know you knew that already 😉).

> To this end, instead of putting my email address, I usually put something like "username AT domain DOT org", so the person sending the email can guess how to fix the email address so it works. Right now, there isn't any way for them to guess what the right email address is.

Only if they copy/paste rather than click. But I agree there's a problem with how the contact address is presented. I'll file a bug report.

> So:
> < a href="mailto:user AT domain DOT org" class="link" >user AT domain DOT org< /a >

Yeah, I meant to suggest using that kind of formatting. 😡

> Though, I'd rather change this value in the source location (rather than hardcoding it).
>
> But then I have a different problem: I can't tell where it's picking up the value for $email - I changed the value in General Preferences / Contact User to a different user name with a different email address, but to no effect. It must be picking it up somewhere else. Any idea where?

It's General Preferences / Contact User; anyway making the change there changes the address on my contact page. Maybe you need to clear your caches?

-- Gary

Ah, I see, the tricky mailto: that I suggest probably works no better than the (at) (dot) one. Sigh.

My inclination, then, is to make it NOT a link, so they have to cut-and-paste. That would work.

Your suggestion about clearing the cache is a good one. I'll look it up in the documentation.

Thanks for your help 😊

deb

Well, clearing the caches didn't help. Instead of using the email of the wiki user I specify under "contact email" it continues to use the email of the admin user. Whatever.

Thanks for the pointer to wiki-contact.tpl. I customized it with hardcoded addresses. Better than a broken page! You can see it here
http://wiki.agilecoachcamp.org/tiki-contact.phpQuestion

ciao!