Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 06:22 pm EST

Geeklog Forums

Ver.1.4.0 - Email addresses in stories


JT

Anonymous
For version 1.4 advanced edit mode, how do you put email addresses in stories? When the user clicks the email address, it should go to a mailto: url.
 Quote

Status: offline

lokki

Forum User
Chatty
Registered: 03/19/05
Posts: 59
There's a button on Fck toolbar which puts a hyperlink in your text. Just select "email" in popup's Type field
 Quote

JT

Anonymous
I was afraid someone would make this suggestion. I tried this, but when I saved the story and hovered the mouse over the link, I did not get a "mailto:" url. It just said "http://www.mysite.com/email@myaddress.com"

 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Isn't it much better to use http://yourdomain.com/contact.php?uid=X, where X is the user you want the e-mail to be sent to?

If it's not someone who has anything to do with your site, just create a dummy user for them.

Starting in Geeklog v1.4, you can even link to http://yourdomain.com/contact.php?uid=X&subject=Y, where Y provides a suggested subject.

P.S.
Is there an autotag for $_CONF['site_url']?
 Quote

JT

Anonymous
Thanks for the reply. I don't think this solution will work because I often have to put in several email addresses that have nothing to do with my site. Creating a dummy user for them doesn't seem workable. I'll just have to forget about it for now.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You have to add "mailto" to the list of allowed protocols in config.php:
Text Formatted Code
// list of protocols that are allowed in links
$_CONF['allowed_protocols'] = array ('http', 'https', 'ftp');
 


bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
What's the problem? Geeklog has a "batch creation" utility. You can prepare a list with as many people as you need. Just use fake addresses because Geeklog forces you to send them joining messages. (unless you can tell them in advance to just ignore them). After it's done, replace them one by one with their real addresses.

Also, if it's, say, just 10 people, create them (as admin) one by one and they won't get joining messages. It takes an admin one click to create a new user (you just specify their username, password and address - the aforementioned utility spares you the password part).

Unless you want multiple addresses in that mailto link. Geeklog doesn't support it, but I think it's hackable (uid="X,Y,Z").

Be it as it may, Dirk - what about a way to tell that batch creation not to send them messages (I know no one will know the passwords but it's good for dummy cases such as these)? Just add a little choice button with the default to send joining messages.
 Quote

JT

Anonymous
Thanks very much, Dirk. Thanks to you too LWC. The solution was indeed to put mailto in the list of protocols in config.php. Works like a charm now.

Thanks again.
 Quote

All times are EST. The time is now 06:22 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content