CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CIVIContribute Widget
Pages: [1]

Author Topic: CIVIContribute Widget  (Read 3557 times)

lalan7

  • Guest
CIVIContribute Widget
April 17, 2008, 12:00:50 pm
hi all,
         I need to be able to change the text inside the flash widget for CIVIcontribute. example:

like
Donors
About
The campaign ends

can someone show me how

Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CIVIContribute Widget
April 17, 2008, 04:09:48 pm
Those labels are stored in the widget's Flash action script. We distribute the uncompiled version of the widget - extern/Widget/widget.fla. If you have access to a Flash editor (like Adobe Flash CS3) - you can open the following file in that editor, modify the script and re-publish the flash movie (widget.swf).

When / if the widget starts getting a bit of traction, we'll probably revisit this and figure out how to make all the strings "translatable" like the other strings in CiviCRM. :-)
Protect your investment in CiviCRM by  becoming a Member!

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: CIVIContribute Widget
February 27, 2009, 12:18:39 pm
is there a trick to editing the widget.fla? I'm using CS4 flash to change the colors, not touching or changing the action script, but when I post my new widget.swf and browse to my campaign page the widget flickers no-stop between loading and viewing....

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CIVIContribute Widget
February 27, 2009, 04:51:17 pm
Hmm - the widget was built w/ Adobe Flash CS3. Not sure if there's compatibility issues or ?? Also, there is logic in the action script to pass in colors for most of the elements in the widget. These are set in the Configure Widget screen (under Configure Online Contribution Page), stored in your database and passed to the widget when it "connects" to your CiviCRM installation.  If you're changing colors in the .fla - that might cause a problem.

Note that we don't have a resident Flash expert on the core team - so we may not be able to offer a lot of debugging help :-(
Protect your investment in CiviCRM by  becoming a Member!

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: CIVIContribute Widget
February 27, 2009, 08:15:08 pm
Thanks, I know this is out of the realm of this forum so I appreciate your response. I changed the colors using the widget screen but I don't like how the default colors are visible until the flashvars finish loading. Visually wierd, first it's tourquoise then seconds later my custom colors...

I tried saving the file as CS3 but it still freaks out, something must happen when I open the original with CS4, I'm not a  flash expert but if I find a solution I will  post it

jimyhuang

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 3
Re: CIVIContribute Widget
January 30, 2011, 09:11:32 am
We just figure out the flash CS3 problem. Here is our solution:
1. Follow the link below to download the service library of flash.
http://blog.alastairdawson.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/

2. Extract library files into correct location:
http://blog.alastairdawson.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/#comment-448

3. Re-publish the flash to swf. Then the exported swf movie will play correctly.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CIVIContribute Widget
January 31, 2011, 10:25:23 am
Note that the CiviContribute widget has been converted to Javascript from Flash as of 3.2. I would recommend distributing the updated Javascript based widget code to sites which are displaying your widgets to the extent possible (although your CiviCRM site will still "communicate" with the previously distributed instances of the Flash widget).
Protect your investment in CiviCRM by  becoming a Member!

jimyhuang

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 3
Re: CIVIContribute Widget
February 01, 2011, 07:08:19 am
Hi Dave,
Thanks for the suggestion. We have a client using 3.1, that's is why us need to fix that in flash.
But thanks god we don't have to take care flash anymore because of 3.2 support javascript!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CIVIContribute Widget

This forum was archived on 2017-11-26.