Flash banner type idea
hedac - February 26, 2009 - 13:20
| Project: | Affiliates |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | paulbooker |
| Status: | active |
Description
We have text and image banners. What about adding an option for Flash banners? Flash banners can be coll with animations and can be more eye catchy.
It's not the mission of this module to create the flash file but to be able to generate the code that passes the user and number to the flash.
We can pass the variables like:
so the flash can read those variables and generate links inside the flash with the final URL: examplesite.com/aff/5/3
What would be great is to be able to paste the code for the flash object with all custom parameters... and the module will add only the "?userid=5&id=3" string to it when renders the page for users to get codes.

#1
one sentence missing in previous post
We can pass the variables like:
< param value="example.swf?userid=5&id=3" >
#2
Its an v.interesting idea, ill definitely look into this .
Does anyone else have any thoughts on this ?
Thanks, Paul
#3
thank you for considering this feature
I am not good at drupal module development but I know php. Tell me if I can help
instead of the image URL anchor ... we would have to use a textarea... to paste our < object .... > flash code...
then it is needed a function to insert in the string of that code.... search for ".swf" and insert "?user=5&id=3" (just as example) it has to do it twice. because there are two locations where you have to add it... in the param object for ie and in the embed for firefox...
#4
Would anyone like to take this and work on this now ?
I don't have much experience with flash so i'm not certain right now if i would end up starting something
that i couldn't finish quickly enough.
But for the record i think the idea of flash banners is an awesome idea!
Best, Paul
#5
I have a bit more time now to exaplain how can it be done... you don't need to know about the flash... only the html output to insert the flash object with the variables passed into the flash... example
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="flashaff" align="middle" width="200" height="100"><param name="wmode" value="transparent">
<param name="movie" value="example.swf?userid=5&id=3">
<param name="quality" value="high"><param name="bgcolor" value="#000000">
<embed src="example.swf?userid=5&id=3" quality="high" bgcolor="#000000" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" width="200" height="100">
</object>
now replace "?userid=5&id=3" with the values of the user and id... and let the user to put all the rest of the code so they can customize the background color... or different parameters on the flash object... but before outputting the html code for the flash... you have to insert the "?userid=xxx&id=yyy" code in those 2 locations of the above code... and it's done.
tomorrow I'll attach here an example of swf flash file and how to program it to accept those variables so when someone clicks in the flash banner they go to the correct url.
#6
sorry I was busy some weeks...
I have just changed some things to have a flash type banner. forget about previous posts.
I'm using the anchor field as the form field to store the flash code... so we need again to increase the size from 256 to 1024 or 2048....
have to do minor changes and will upload a patch so you can see if it is ok.
#7
ok here is the temporary patch for review
#8