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) »
  • Create a frontend search for Personal Campaign Pages
Pages: [1]

Author Topic: Create a frontend search for Personal Campaign Pages  (Read 1671 times)

alexmglover

  • Guest
Create a frontend search for Personal Campaign Pages
September 15, 2009, 09:01:25 am
Is there a way to create a search field for the users of the site to search for certain members that would have personal campaign pages, instead of having to have a direct link sent to them?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 10:30:08 am
Currently no.

Kurund
Found this reply helpful? Support CiviCRM

alexmglover

  • Guest
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 10:34:50 am
What about just listing all the personal campaign pages on the front end?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 10:37:16 am
Quote
What about just listing all the personal campaign pages on the front end?

Nope.

Kurund
Found this reply helpful? Support CiviCRM

alexmglover

  • Guest
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 10:38:00 am
There is not even php code for doing this?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 10:48:04 am
You can write a module for listing pcp pages in front-end and contribute back to the community.

Kurund
Found this reply helpful? Support CiviCRM

alexmglover

  • Guest
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 12:27:31 pm
Can you point me in the direction of the API for that or at least DB connection for Civicrm?  I have looked and cannot find it. 

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Create a frontend search for Personal Campaign Pages
September 15, 2009, 05:56:48 pm
Currently I don't think there are api's to retrieve pcp pages. So you will have manually fire sql to retrieve data from civicrm database.

Kurund
Found this reply helpful? Support CiviCRM

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: Create a frontend search for Personal Campaign Pages
September 15, 2009, 07:49:34 pm
Quote from: alexmglover on September 15, 2009, 12:27:31 pm
Can you point me in the direction of the API for that or at least DB connection for Civicrm?  I have looked and cannot find it. 

once civicrm is initialized, you can execute queries against the civicrm DB using:

CRM_Core_DAO::executeQuery( $sqlCode, $parameters );

check the civicrm codebase for examples of the above

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Create a frontend search for Personal Campaign Pages

This forum was archived on 2017-11-26.