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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • URL Link Change via PHP Help Needed
Pages: [1]

Author Topic: URL Link Change via PHP Help Needed  (Read 577 times)

waynejb

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.21
  • CMS version: Joomla 2.5
  • MySQL version: 5
  • PHP version: 5.3.10
URL Link Change via PHP Help Needed
October 30, 2012, 01:49:29 pm
We are working on a solution to allow the public to see all PCP pages listed, fundraising status and then allow them to click to their PCP page.

We need assistance with getting the url to insert civicrm_pcp.id field instead of civicrm_contact_id.

We are modifying CRM/report/form/contribute/pcp.php

Around Lines: 300-310 (near end of PHP file)

Here is what we are trying without luck:
   
$url = CRM_Utils_System::url("civicrm/pcp/info",'reset=1&id=' . $row['civicrm_pcp_id'], $this->_absoluteUrl);
$rows[$rowNum]['civicrm_contact_sort_name_link'] = $url;
$rows[$rowNum]['civicrm_contact_sort_name_hover'] = ts("View Fundraiser Page");
$entryFound = TRUE;

Site to view: http://www.msugranfondo.com/civicrm/report/instance/15?force=1

Can $query replace $row as an option?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • URL Link Change via PHP Help Needed

This forum was archived on 2017-11-26.