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) »
  • How can I use PCP's "honor roll" and "funds raised widget" on another page?
Pages: [1]

Author Topic: How can I use PCP's "honor roll" and "funds raised widget" on another page?  (Read 812 times)

oban

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
How can I use PCP's "honor roll" and "funds raised widget" on another page?
August 16, 2009, 03:57:25 pm
I want to embed these widgets on a Drupal page. Where can I find the logic to use to create them? Specifically, I am looking for the scripts and API calls used to display them? (I tried nailing down the javascript controls from the source code but got nowhere. Maybe a Dojo script?)


I'd really appreciate the help.

thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How can I use PCP's "honor roll" and "funds raised widget" on another page?
August 16, 2009, 04:05:41 pm

Its a combination of PHP/Smarty/HTML/JS

the relevant files are:

CRM/Contribute/Page/PCPInfo.php
templates/CRM/Contribute/Page/PCPInfo.tpl

check lines: 47-92 of the tpl for the relevant code. Search for honor roll and thermometer in the PHP code to find the corresponding parts

i dont think we've abstracted that into an API (as yet). If you do so, please publish your code so others can benefit

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mattlepacek

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7
  • MySQL version: 5.1
  • PHP version: 5
Re: How can I use PCP's "honor roll" and "funds raised widget" on another page?
March 05, 2012, 06:04:31 pm
I would like to do the same thing.  Is there a ready-solution for this?
for me, a method to display the honor roll on another local drupal page.
Thanks!
« Last Edit: March 05, 2012, 06:08:16 pm by mattlepacek »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • How can I use PCP's "honor roll" and "funds raised widget" on another page?

This forum was archived on 2017-11-26.