1
nem2k2
Smilies in links?
  • 2005/1/28 2:43

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


Hi,

I have a smilies on my site for '_b' and it breaks links in seactions such as the Sections module; it turns the "_b" in into the smilie. Is there somewhere I can do a quick hack/fix to insert smilies before things that look like links are turned into links to prevent this from happening?

Cheers

2
m0nty
Re: Smilies in links?
  • 2005/1/28 4:17

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


click the disable smilies tick box (if it has 1)

or don't use _b as a smilie code :B: would be a better code or (B) or :b

3
nem2k2
Re: Smilies in links?
  • 2005/1/28 4:42

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


n/m, I just hacked module.textsanitiser.php to process the smilies before the links

ie change this:
$text =& $this->makeClickable($text);
        if (
$smiley != 0) {
            
// process smiley
            
$text =& $this->smiley($text);
        }


to this:
if ($smiley != 0) {
            
// process smiley
            
$text =& $this->smiley($text);
        }
        
$text =& $this->makeClickable($text);

4
nem2k2
Re: Smilies in links?
  • 2005/2/1 10:35

  • nem2k2

  • Just popping in

  • Posts: 14

  • Since: 2003/9/18


Hmm it works good, except when there are emoticon codes in a URL eg.

http://somesite.com/my_blank_page

The _b is still turned into the smilie :(

Login

Who's Online

345 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 345


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits