1
kamax
cbb 3.0.8 Pictures only visible in preview mode
  • 2007/9/20 13:52

  • kamax

  • Friend of XOOPS

  • Posts: 44

  • Since: 2005/1/15


If i try to publish pictures on a post with the
xoops picture manager, i see it correct in preview mode. After i push the publish button, i only see the path to the uploads directory. All html and xoopscode settings are correct. (xoops 2.0.17, cbb 3.0.8)

2
DarinAllan
Re: cbb 3.0.8 Pictures only visible in preview mode

You can attach pictures in CBB, I think there is a setting somewhere when you create a forum where you can say what files are allowed to be uploaded and displayed. eg. .jpg .gif .png

Have a look at all the settings eg. in CBB admin preferences as well.

Cheers....Darin ;o)

3
kamax
Re: cbb 3.0.8 Pictures only visible in preview mode
  • 2007/9/20 14:15

  • kamax

  • Friend of XOOPS

  • Posts: 44

  • Since: 2005/1/15


Thanks, Darin, finally i did it with attached files, but it's not the solution for my problem with the invisible pics from the picture manager ...

4
DarinAllan
Re: cbb 3.0.8 Pictures only visible in preview mode

I think we are all waiting for a better general picture manager lol, for me at least the existing one can be a bit hit and miss, although I admit I have not played with it extensively, for some things it is good enough though ;o)

5
frankblack
Re: cbb 3.0.8 Pictures only visible in preview mode
  • 2007/9/20 20:23

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Here is my "obscure" solution:

Edit file Frameworks / textsanitizer / module.textsanitizer.php and add under following line:

$replacements[] = '\1';


this code:

$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";
        if (
$allowimage != 1) {
            
$replacements[] = '\3';
            
$replacements[] = '\1';
            
$replacements[] = '.XOOPS_URL.'/image.php?id=\4" target="_blank">\5';
            
$replacements[] = '.XOOPS_URL.'/image.php?id=\2" target="_blank">\3';
        } else {
            
$replacements[] = '';
            
$replacements[] = '';
            
$replacements[] = '.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\5" />';
            
$replacements[] = '.XOOPS_URL.'/image.php?id=\2" alt="\3" />';
        }


Seems stupid to me, because this pattern-replacement should be executed in the included normal textsanitizer. But what do I know?

6
kamax
Re: cbb 3.0.8 Pictures only visible in preview mode
  • 2007/9/20 20:59

  • kamax

  • Friend of XOOPS

  • Posts: 44

  • Since: 2005/1/15


Whow, indeed, that is it. Thanks to all for help and frankblack for an exotic solution for an exotic problem...

7
DarinAllan
Re: cbb 3.0.8 Pictures only visible in preview mode

Quote:

frankblack wrote:

Seems stupid to me, because this pattern-replacement should be executed in the included normal textsanitizer. But what do I know?


hehehe excellent thanks frankblack and kamax for asking the question ;o)

8
hervet
Re: cbb 3.0.8 Pictures only visible in preview mode
  • 2007/9/22 11:57

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


We had exactly the same problem here :
http://www.parent-solo.fr/modules/newbb/viewtopic.php?post_id=90791#forumpost90791

Thank you for the solution (to this strange problem) !

Login

Who's Online

155 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 155


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