Welcome, Guest. Please Login or Register.
May 11, 2025, 10:33:20 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  No images in signatures « previous next »
Pages: [1] Reply Ignore Print
Author Topic: No images in signatures  (Read 2441 times)
Royce
Noobie
*
Posts: 44


I'm a llama!

No images in signatures
« on: March 28, 2003, 08:17:36 PM »
Reply with quote

Disallow the [img] tags in signature.

I really need this.  Anyone?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:No images in signatures
« Reply #1 on: March 28, 2003, 10:25:17 PM »
Reply with quote

open Load.php, search for:   /* # do some ubbc on the signature if enabled */
   if ($enable_ubbc)
      $userprofile[$user]['signature'] = DoUBBC($userprofile[$user]['signature']);

replace with:   /* # do some ubbc on the signature if enabled */
   if ($enable_ubbc)
   {
      $userprofile[$user]['signature'] = DoUBBC($userprofile[$user]['signature']);
      $userprofile[$user]['signature'] = strip_tags($userprofile[$user]['signature'], "<a><b><u><i><font><table><td><tr><hr><br>");
   }


- havent been tested -
u can add more allowed tags there
i dont know if allowable_tags <br> and <hr> will affect <br /> and <hr > or not, i'm guessing it will
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:No images in signatures
« Reply #2 on: March 28, 2003, 10:27:28 PM »
Reply with quote

Yeah, allowed tags matches /<(\/?tag-name[^>]*)>/.

-[Unknown]
Logged
Royce
Noobie
*
Posts: 44


I'm a llama!

Re:No images in signatures
« Reply #3 on: March 28, 2003, 10:33:25 PM »
Reply with quote

Thank you very much.  I'll try it right now.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  No images in signatures « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.037 seconds with 20 queries.