1
3lr0n
problem with img tag and caricafoto
  • 2010/5/16 19:43

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hello,

I have a problem with the xoopscodes and caricafoto.

the img tag is getting this

<a href="javascript:CaricaFoto("");"><img width="" border="0" align="'http://mysite/uploads/image.gif'" onload="javascript:imageResize(this, 500)" alt="Open in new window" src="">a>


If i turn the caricafoto off in the /class/texsanitizer/image/config.php setting the values to 0, the images are not shown.

Its a problem with the tags i suppose because forums with html images are shown correctly.

I planned to upgrade all my site ( a major upgrade that its ready in a 99%) today, but i cant open the new site with this issue.

Pls help me so I can fix this and re open the site asap.

Regards
3lr0n

Spanish Overclocking Community xoops based site : http://www.overclocking.es

2
ghia
Re: problem with img tag and caricafoto
  • 2010/5/16 21:43

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The html source is that with the standard config?
It looks like some parmeters are shifted.
What was the code with the [img] tag in the editor for it?
Are you sure all the files of the right version are in place?
Check with the file check (see release notes).

3
3lr0n
Re: problem with img tag and caricafoto
  • 2010/5/16 21:52

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Quote:
The html source is that with the standard config?


Yes I think is the standard config, is a fresh install of xoops 2.3 and upgrade before (several times) until 2.4.4

Quote:
What was the code with the [img] tag in the editor for it?


Dont understand what do you mean

Quote:
Are you sure all the files of the right version are in place?
Check with the file check (see release notes).


I think so, but i read the release notes and cant find any file checker...

Ta for the quick answer, guia

Its realley frustating to have a site 99% done and have problems that dont know how to solve in the near end.

I check the code several times, but cant find where the error is....

3lr0n



Spanish Overclocking Community xoops based site : http://www.overclocking.es

4
3lr0n
Re: problem with img tag and caricafoto
  • 2010/5/16 22:06

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


solved

I check the code and find in module.textsanitizer this line that i have added in the old instalation to allow IMG tag in caps.

$patterns[] = "/[IMG]([^"()?&'<>]*)[/IMG]/sU";


As in 2.4.4 the image replacements are made in another file this was causing the problem.

Thks for all

Hope soon you can see the version 2.0 of my site ;)
Spanish Overclocking Community xoops based site : http://www.overclocking.es

Login

Who's Online

283 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 283


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