Closed (fixed)
Project:
Ad Flash
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Jun 2009 at 02:11 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Within Ads > Settings > Flash Ad you can set the max and min width for any ad groups (which are just taxonomy terms). You can also set a 'default' max/min width which is used for any ads that are not placed within a group.
The issue is that only the default is ever validated against. If max and min is set for a group this is not honoured upon add/update.
Attached is a patch that fixes this issue. I simply copied the code from the ad_image.module for the relevant functions.
Note that like the ad_image.module this change will allow support for validating against multiple ad groups.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ad_flash_validate_size_plus_getid3_implementation.patch | 6.64 KB | Alex Andrascu |
| ad_flash_validate_size.patch | 5.74 KB | zanuxzan |
Comments
Comment #1
Alex Andrascu commentedBefore the patch
After the patch
quick peak with Firebut revealed this
where width and height is 0 but why is that ?
Comment #2
Alex Andrascu commentedI found out that getimagesize() won't always work for flash. Mostly it won't work and it will cause problems for internet explorer 6 or higher. I'm coming up with a solution using getID3 to get the width and height for the swf file. I'll post it here as soon as i've test it.
Comment #3
Alex Andrascu commentedAfter a little while and some requests beeing made i will post my implementation of getid3 solution for the getimagesize() issue.
Installation instructions provided bellow:
1. Install, enable, configure and verify the getID3 module and getid3 php library
2. Install the ad_flash 6.x-1.x-dev as instructed there.
3. Apply this patch.
Hug me :)
Comment #4
petr illekBig hug :) - it is working.
There is only one small mistake in the patch where is the require of the GETID3 library - which is located in sites/all/libraries/getid3/getid3 (like the getid3 modul wants) and not in the sites/all/libraries/getid3.
Thanks a lot.
Comment #5
Alex Andrascu commentedi know of it but it's getid3 module related. we should post it there :)
Comment #6
Alex Andrascu commentedfixed in the 6.x-2.1 version
Note that ad_flash requires getid3 module and library to work properly now