Welcome to Geeklog, Anonymous Tuesday, October 04 2022 @ 04:58 pm EDT

Geeklog Forums

mailto: problem


Status: offline

blueberry

Forum User
Junior
Registered: 10/22/08
Posts: 21
i have a problem my web site. i cannot use <a> tag in the story or static pages, for example
<a href="mailto:abc@gmail.com">abc@gmail.com</a>

did you know where can i find that problem? pls teach me how to do. :pray:
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
"mailto:" is filtered out by default. You need to add it to the list of allowed protocols under

Configuration > Geeklog > Miscellaneous > HTML Filtering > Allowed Protocols

bye, Dirk
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Did you notice that you can link like this and avoid visible email addresses?
http://www.geeklog.net/profiles.php?uid=14481
 Quote

Status: offline

blueberry

Forum User
Junior
Registered: 10/22/08
Posts: 21
dear drik,

can u tell me where is it? config.php? I want to get this one very urgent.
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Are you using GL 1.5.1? Then it is on the left side.
 Quote

Status: offline

blueberry

Forum User
Junior
Registered: 10/22/08
Posts: 21
no i was using geeklog 1.4.1
$_CONF['allowed_protocols'] = array ('http', 'https', 'ftp'Wink;
I've already had in config.php but it's useless things
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
True that`s useless.

Look for this line:
$_CONF['user_html'] = array (

after that there is a line similar to this:
'a' => array('href' => 1, 'title' => 1, 'rel' => 1),

change it to:
'a' => array('href' => 1, 'title' => 1, 'rel' => 1, 'mailto' => 1),
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: 1000ideen

change it to:
'a' => array('href' => 1, 'title' => 1, 'rel' => 1, 'mailto' => 1),


That doesn't make sense. "mailto" is not an attribute but a protocol. As such, it should be added to $_CONF['allowed_protocols'].

bye, Dirk
 Quote

All times are EDT. The time is now 04:58 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