1
suico
How to hack the code to accept [IMG] uppercase?
  • 2005/3/23 18:55

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


As many knows www.imageshack.us hosts images for free.
I would like to simplify the process of copying their code forun for xoops, but they use ponly uppercase and in my foruns uppercases tags does not work.I imagined that maybe there is a way to hack the code of XOOPS in a way to allow the uppercase too. Anyone can help?

2
Dave_L
Re: How to hack the code to accept [IMG] uppercase?
  • 2005/3/23 19:53

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


class/module.textsanitizer.php

$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"
]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";


Change each "/sU" to "/isU".

3
Mithrandir
Re: How to hack the code to accept [IMG] uppercase?

(sorry m0nty - your reply deleted as Dave's requires less changes and is using the features available in regular expressions. Don't want to confuse other readers )

4
m0nty
Re: How to hack the code to accept [IMG] uppercase?
  • 2005/3/23 20:07

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


no probs mith :) i was just abt to edit my post after seeing daves reply when i posted lol

5
suico
Re: How to hack the code to accept [IMG] uppercase?
  • 2005/3/23 20:25

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Thanks i did the same for url and it works foine for it too , thanks again !! As always the XOOPS comunity sows its power: Suppport!!!!

Login

Who's Online

215 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

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

Latest GitHub Commits