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 not showing up properly
Pages: [1]

Author Topic: Widget not showing up properly  (Read 1846 times)

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Widget not showing up properly
November 29, 2011, 07:18:57 pm
I am able to see the widget in Configure Page::Configure Widget, but the widget does not show up correctly in the node on on the front page.

The only change I made to the widget code was adding:
        float: left;
        margin-right: 10px;
        margin-bottom: 2px;

under
<style>
    .crm-contribute-widget {

so that the widget would show up on left with text to the right of it (See attached image). But even without that change the widget does not show up correctly.

Any assistance or insight would be much appreciated. Thanks!

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Widget not showing up properly
November 29, 2011, 07:19:40 pm
And this is how it appears on the Configure Widget page...

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Widget not showing up properly
December 03, 2011, 03:31:43 pm
For those who've experienced the same or a similar problem...

In going through the code I copied from the Widget Configure page, I discovered there was an extra "/" (highlighted in yellow, below) in the final section, between "civicrm" and "extern" in the source URL in the final section of javascript:

<script type="text/javascript" src="https://www.yoursite.org/sites/default/modules/civicrm//extern/widget.php?cpageId=4&widgetId=3&format=3"></script>

Once I removed that extra "/" the widget showed up properly in the node and on the front page.

ncoughlin

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Joomla 2.5
  • MySQL version: MySQL5
  • PHP version: 5.3.10
Re: Widget not showing up properly
March 15, 2012, 11:36:00 am
Thank you for these tips! My widget has been displaying for a short period of time (maybe five minutes?) and then disappearing. I was also trying to figure out how to place it to the left of my text - and both of your fixes seemed to solve the issues.

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Widget not showing up properly
March 15, 2012, 11:40:54 am
Glad to have been helpful! I know how frustrating it can be, and am happy that I was able to spare someone else the aggravation.

ncoughlin

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Joomla 2.5
  • MySQL version: MySQL5
  • PHP version: 5.3.10
Re: Widget not showing up properly
March 15, 2012, 12:11:16 pm
Well, I spoke a little prematurely...turns out my widget disappears after I save and close my K2 item. Sigh. Now off to figure this mystery out!

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Widget not showing up properly
March 17, 2012, 01:19:53 pm
Same issue here,

I can only see the color and the button, all txt disappears and not data is shown, even if i remove the /
The widget show up only correctly on the configure page

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Widget not showing up properly
June 04, 2012, 02:17:02 pm
I'm having exactly this issue right now.  Widget Preview did work, edited contribution page and now not working.  See: http://screencast.com/t/5TaZVu2Tb .
Tried in FF and Google Chrome.  Any thoughts on how to debug?

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
RESOLVED: Widget not showing up properly
June 04, 2012, 02:23:56 pm
The issue is related to URL resource path: see http://forum.civicrm.org/index.php/topic,20830.msg87137.html#msg87137

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Widget not showing up properly

This forum was archived on 2017-11-26.