| Author |
Message |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 955
|
Posted: Mon Oct 29, 2007 5:11 pm Post subject: Re: Test release available |
|
|
IngerK wrote: › mrmikehammond wrote: ›
1) If I use G2img button or image tags PHPBB says "It was not possible to determine the dimensions of the image." when you try to submit the post ? is this a G2 issue or a phpbb3 issue ?
I have seen this before. I think had configured a max size for images in posts, and I had a .htaccess-file with username/password on my test-server. phpBB tries to find out the imagesize, but fails because of .htaccess.
Is that related to the .htaccess file that the url rewrite module uses? |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: Test release available |
|
|
|
|
|
| Back to top |
|
 |
mrmikehammond
Novice


Joined: Jun 12, 2007 Posts: 23 Location: U.K.
|
Posted: Mon Oct 29, 2007 5:18 pm Post subject: Re: Test release available |
|
|
| If I set the posting picture size in PHPBB's ACP to unlimited then it works fine, as soon as I reapply a limit eg 800x600 I get the problem again. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 955
|
Posted: Mon Oct 29, 2007 6:44 pm Post subject: Re: Test release available |
|
|
ok...I'm able to reproduce that now. It's because the image tag generated by g2image is not linked to an actual image, but rather info about the image that allows gallery to fetch it. phpbb will never be able to check the size of the image the way it is.
That's going to require mods to the phpbb code that checks the image to just allow the g2 tag and the check will have to happen in g2image or a new function in g2helper when the user first tries to insert the image.
I'll have to give that some more thought when I get caught up on some of the other issues... |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 955
|
Posted: Mon Oct 29, 2007 11:17 pm Post subject: Re: Test release available |
|
|
Here is a quick and dirty fix for this issue. You will have to set the same size limit restrictions within gallery using the sizelimit module as within phpbb and the mod allows phpbb to ignore any images posted from gallery.
sizelimit module [gallery2.org]
includes/message_parser.phpCode: ›
#
#-----[ FIND ]------------------------------------------
#
if ($stats === false)
#
#-----[ REPLACE WITH ]-------------------------------
#
if ($stats === false && !strstr($in, 'g2_view=core.DownloadItem'))
|
|
| Back to top |
|
|
mrmikehammond
Novice


Joined: Jun 12, 2007 Posts: 23 Location: U.K.
|
Posted: Tue Oct 30, 2007 5:34 am Post subject: Re: Test release available |
|
|
Might be dirty but it works
Cheers
Mike  |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 955
|
Posted: Mon Nov 05, 2007 5:18 pm Post subject: Re: Test release available |
|
|
| I've deleted the test release link above since we are getting close to a real release version now. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6261 Location: Washington Township, NJ, USA
|
Posted: Mon Nov 05, 2007 9:12 pm Post subject: Re: Test release available |
|
|
w00000000t _________________
 |
|
| Back to top |
|
|
|
|
|
|
|