11
Daethian
Re: CBB - img tags case sensitive?
  • 2008/8/28 0:20

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


CHecking for a follow up on this
http://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

12
Daethian
Re: CBB - img tags case sensitive?
  • 2010/3/11 0:29

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


After having to restore my site after a failed upgrade, I have this problem again. I can't get any form of image tag to work on my site
[img] [IMG] or <img src


I tried restoring the two files mentioned in this thread from my back up but that didn't fix the problem. Cleared my cache/cookies to make sure. I must have done something else to correct this but I can't find any notes on what I did.

I'm using CBB 3.08

13
Daethian
Re: CBB - img tags case sensitive?
  • 2010/4/23 14:37

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


So VampireTrix complete upgraded my site so the [img] and <img src are working. The IMG still does not work. Is this in the CBB code? I'm going to link VT to this topic as well since I've asked him to help me try to fix this also.
http://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

14
ghia
Re: CBB - img tags case sensitive?
  • 2010/4/23 15:01

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You must add the i to the pattern for the various img tag patterns, as explained in this thread before.

15
Daethian
Re: CBB - img tags case sensitive?
  • 2010/4/23 15:04

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


Thanks Ghia, hopefully he can help me. When I went back to review the files I couldn't find those same lines of code. Of course the file versions could have been wrong or something considering how jacked up my install was!
http://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

16
ghia
Re: CBB - img tags case sensitive?
  • 2010/4/23 15:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


They are in /class/textsanitizer/image/image.php

17
vamptrix
Re: CBB - img tags case sensitive?
  • 2010/4/23 17:57

  • vamptrix

  • Theme Designer

  • Posts: 424

  • Since: 2008/5/3 1


If anyone could change phpp's post to a a code tag instead, I might be able to understand it ;p
I used to use this account, but no longer.

18
Daethian
Re: CBB - img tags case sensitive?
  • 2010/4/24 0:03

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


Okay opened the image.php file and added one line, updated to add the $ts at the beginning. And it made the site inaccessible.

class MytsImage extends MyTextSanitizerExtension {     function load(&$ts)     {         static $jsLoaded;          $config $this->loadConfig(dirname(__FILE__));         $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 width=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";         $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";         $ts->patterns[] = "/[img width=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";         $ts->patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";         $ts->patterns[] = "/[IMG]([^"()?&<>]*)[/IMG]/sU";          // Added for script driven images         $ts->patterns[] = "/[img align=(left|right|centerwidth=([0-9]*)](.*)[/img]/sU";         $ts->patterns[] = "/[img width=([0-9]*) align=(left|right|center)](.*)[/img]/sU";         $ts->patterns[] = "/[img align=(left|right|center)](.*)[/img]/sU";         $ts->patterns[] = "/[img width=([0-9]*)](.*)[/img]/sU";         $ts->patterns[] = "/[img](.*)[/img]/sU";          $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";         $ts->patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
http://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

19
Daethian
Re: CBB - img tags case sensitive?
  • 2010/4/24 0:11

  • Daethian

  • Quite a regular

  • Posts: 305

  • Since: 2005/3/4 1


Tried adding:

$ts->patterns[] = "/Open in new window/isU";
and that doesn't fix IMG
http://www.artfire.com/daethian
My Artfire store- Vintage Jewelry and New Bead Jewelry

20
ghia
Re: CBB - img tags case sensitive?
  • 2010/4/24 18:30

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The modification is not about adding lines, but changing lines by adding the modifier i to the pattern.

$ts->patterns[] = "/[img](.*)[/img]/sU";
=>
$ts->patterns[] = "/[img](.*)[/img]/isU";

and this for all patterns containing [img].

Login

Who's Online

255 user(s) are online (187 user(s) are browsing Support Forums)


Members: 0


Guests: 255


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