1
seolio
IMG tag problem
  • 2008/1/22 20:27

  • seolio

  • Not too shy to talk

  • Posts: 196

  • Since: 2005/11/2


Hi all, I need some quick help please.
I know there has been a post about this before but I could not find it, the IMG tag does not work when in capitals in CBB 3, but it will work in lower case. Big problem being, my members use photobucket which uses upper case.

I know that I only have to add a line of code as I have done it before, but I am not sure which file it is in???

Thanks in advance.

~seolio~

2
christian
Re: IMG tag problem
  • 2008/1/22 20:43

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

Look the file class/module.textsanitizer.php

Lines 177 to 180 in XOOPS 2.0.18

3
seolio
Re: IMG tag problem
  • 2008/1/22 20:59

  • seolio

  • Not too shy to talk

  • Posts: 196

  • Since: 2005/11/2


Any ideas as to what I need to add, as this is what I have:
//$patterns[] = "/[li](.*)[/li]/sU";
    //$replacements[] = '<li>\1</li>';
    
$patterns[] = "/[[Ii][Mm][Gg] [Aa][Ll][Ii][Gg][Nn]=(['"]?)([Ll][Ee][Ff][Tt]|[Cc][Ee][Nn][Tt][Ee][Rr]|[Rr][Ii][Gg][Hh][Tt])\1]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
    
$patterns[] = "/[[Ii][Mm][Gg]]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
    $patterns[] = "/[[Ii][Mm][Gg] [Aa][Ll][Ii][Gg][Nn]=(['"]?)([Ll][Ee][Ff][Tt]|[Cc][Ee][Nn][Tt][Ee][Rr]|[Rr][Ii][Gg][Hh][Tt])\1 [Ii][Dd]=(['"
]?)([0-9]*)\3]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
    
$patterns[] = "/[[Ii][Mm][Gg] [Ii][Dd]=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/[Ii][Mm][Gg]]/sU";
    if (
$allowimage != 1) {
        
$replacements[] = '<a href="\3" target="_blank">\3</a>';
        
$replacements[] = '<a href="\1" target="_blank">\1</a>';
        
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\4" target="_blank">\4</a>';
        
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\2" target="_blank">\3</a>';
    } else {
        
$replacements[] = '<img src="\3" align="\2" alt="" />';
        
$replacements[] = '<img src="\1" alt="" />';
        
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
        
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\2" alt="\3" />';

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

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

Latest GitHub Commits