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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contributions Widget - unable to resize
Pages: [1]

Author Topic: Contributions Widget - unable to resize  (Read 1041 times)

DefileMetal

  • Guest
Contributions Widget - unable to resize
February 07, 2009, 04:33:14 pm
Greetings,

The contribution widget code does not save when changed - reverts to the same size.  Is there a place where I can change it? 

For example:
<div style="text-align: center; width:260px">
   <object type="application/x-shockwave-flash" data="http://DOMAIN.org/administrator/components/com_civicrm/civicrm/extern/Widget/widget.swf" width="220" height="220"

Tried changing to:
<div style="text-align: center; width:360px">
   <object type="application/x-shockwave-flash" data="http://DOMAIN.org/administrator/components/com_civicrm/civicrm/extern/Widget/widget.swf" width="320" height="220"

But after clicking on "save and preview" reverts -  ???


The text in the "about" tab section doesn't display as desired - that is secondary though.  Would really be nice to resize the whole thing and then be able to play with the text appearance. 

Thanks much - this is an awesome work - I'm starting out with the contributions and will incorporate other parts soon - thanks to all who are involved with this super service to all of us - not to mention all those who give their time to assist others - - thank you thank you thank you

Ron
« Last Edit: February 08, 2009, 06:04:51 am by DefileMetal »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Contributions Widget - unable to resize
February 08, 2009, 05:29:58 pm
Hi Ron - The size of the widget and containing div is not stored in the database. I'm not sure how much you can change without editing the Flash source file (widget.fla) - which BTW is included in the downloads and in our repository. If you haven't already experimented with changing those values as you "paste the widget code" into the HTML page where you want to display a widget - then that's a good start.

Then, if you want to change what HTML code the admin users see on the configure widget page ("Add this widget to any web page by copying and pasting the code below. ") - then you can create a custom copy of the template the renders that form:

templates/CRM/Contribute/Form/ContributionPage/Widget.tpl

Check here for info on custom templates: http://wiki.civicrm.org/confluence/display/CRM/Customizing+CiviCRM+Screens
Protect your investment in CiviCRM by  becoming a Member!

DefileMetal

  • Guest
Re: Contributions Widget - unable to resize
February 09, 2009, 05:50:48 am
Thank you very much Dave - I'll go through the info and see what I can come up with and greatly appreciate the assistance. 

I'm really lovin' CiviCRM! 

Ron

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contributions Widget - unable to resize

This forum was archived on 2017-11-26.