2 joelataylor Feb 16, 2006 05:25

I fought that battle extensively. Ended up hacking two files, but have since thrown the hack away because I'm trying to be hack-free. Ended up realizing that the problem MIGHT be due to trying to make text be a mailto link. Try, if you're okay with it, just doing blahblah@blahblah.tld and see if you get a mailto link out of it.
You might not!
Can't hurt to try though eh?
I'll see if I can resurrect my ugly CVS hackage that let me do a linked mailto.
plugins/_bbcode.plugin.php uncomment the following lines :-
// '#\[email](.+?)\[/email]#eis', // E-mail
// '#\[email=(.+?)](.+?)\[/email]#eis'
// '<a href=\"mailto:$1\">$1</a>', // E-mail
// '<a href="mailto:$1">$2</a>'
;)
¥
Hey guys ... thanks for your replies ... Edb, please send me your hack, just placing the email address (without html coding) doesn't work ... nor did the uncommenting Yabba suggested.
Aghhhhhhhhhhhh
I should have been a tad clearer, uncomment the lines I posted and then use [email = spam@me.com]name[/email] or [email]spam@me.com[/email] and tick the box (lower right of posting page) marked "bb code"
¥
Hold up, BB Code plugin wasn't installed .... now it is tho ... however, when I create a new post, check the BBCode checkbox ... it still displays it as text. Doesn't convert into an email link ....
-----------------------------------------------------------------------------------------
Yabba - thank you so much for trying to help me!
Are you sure you're referencing version 1.6? Because I don't see anywhere a checkbox to allow bbcode (like this forum does).
ok, so I just disabled the $use_html_checker = 0; in "_formatting.php" (in the conf directory). I enabled the $use_security_checker so hopefuly I don't get hacked or anything.
Check the mailto links on my spamtrap http://yabba.waffleson.com/spamtrap.php running on 1.6 alpha.
Once you've made the changes (and installed) the bb code plugin, you'll find a checkbox at the very lower right of your admin > write page (same place as smilies and all the other renderers). If you tick it then the code will be rendered as mailto links without having to disable your html checker.
¥
hi,
if i uncomment the 4 relevant lines in _bbcode.plugin.php, upload and install it, then preview a new post with
[email]spam@me.com[/email]
(bbcode box ticked) in the content, the post does not display, and neither does any of the page which follows
what might i be doing wrong?
ideally i would like to be able to use
<a href="mailto:spam@me.com">email</a>
- i assume this isn't possible?
thanks,
david
David,
You might find your solution in [url=http://forums.b2evolution.net/viewtopic.php?t=6521]this post[/url]
I haven't tested Blueyed's code change (as we don't use email address links in our post, because they can be scanned by email harvesting programs). If you're interested, [url=http://randsco.com/index.php/2005/06/23/spam_lovely_spam_wonderful_spam]read more about how/why[/url].
Hope this helps. ;)
ah yes, thanks stk, i'll give it a go!
david
Note: this is using 1.6!
Can someone PLEASE help me!? Even if to turn off the HTML checker!? I need this to work. Thanks