MyBB Community Forums

Full Version: sceditor is treating my href links as a text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I`m making a little modification. I preg_replace a $post['message'] and replacing chosen words with a href link with target _blank and name of the word as a link.

Everythink is ok in db, but editor is changing the code to a simply text which displays in post.

I need effect like a adwords for example on my site.

So my question is where to look, i need to display those links (prefer admins only links) to display as i want (as _blank target links with name that i choose). I don`t want to change all the links on the page, only those which i need to display.)


p.s.
Sorry if my english isnt well Wink

OK i figured it out.
I needed
[url]and [/url]
tags instead of html tags.