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) »
  • Widget Links in Joomla!
Pages: [1]

Author Topic: Widget Links in Joomla!  (Read 1383 times)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Widget Links in Joomla!
April 26, 2008, 08:23:06 am
When I make a widget in Joomla! and click contribute it sends me to the contribute page inside the administrator instead of in the front end.

I thought maybe it should work like a standalone profile and use a joomla! menu link for the url but that didn't work it just gives me the background no text and no modifications to the colors.


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Widget Links in Joomla!
April 26, 2008, 10:13:36 pm
Elin - This is a bug. :-( Fortunately the fix should be quite easy. Can you try making this change and confirming that it works?

The file to change is: CRM/Widget/Widget.php

at line 96 add one more parameter (true)...

Code: [Select]

// Current code starting at line 94
        $data->button_url = CRM_Utils_System::url( 'civicrm/contribute/transact',
                                                   "reset=1&id=$contributionPageID",
                                                   true, null, false );

// New code
        $data->button_url = CRM_Utils_System::url( 'civicrm/contribute/transact',
                                                   "reset=1&id=$contributionPageID",
                                                   true, null, false, true );

Assuming this works for you, we'll post this fix for 2.0.3 - but you can keep the change in your site. (I think the code is the same for 1.9 in case that's what you're running.)

http://issues.civicrm.org/jira/browse/CRM-3035
Protect your investment in CiviCRM by  becoming a Member!

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Widget Links in Joomla!
April 26, 2008, 11:02:29 pm
Works great for me, thanks Dave :). (I'm trying this in 2.0.2)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Widget Links in Joomla!
April 27, 2008, 01:13:41 am
Cool - I've committed the fix for inclusion in 2.0.3.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Widget Links in Joomla!

This forum was archived on 2017-11-26.