Answers.Body: <p>I'd wager that the template you're looking at calls <a href="https://docs.civicrm.org/dev/en/stable/hooks/hook_civicrm_searchColumns/" rel="nofollow noreferrer">hook_civicrm_searchColumns</a>.  Despite the name referring to "search", it's designed to let you change the values of the columns in tables like the one you display.</p>
  
  <p>I just pushed a simple extension that demonstrates how it's used: <a href="https://github.com/PalanteJon/org.takethestreets.campaignincontributiontab/blob/master/campaignincontributiontab.php" rel="nofollow noreferrer">https://github.com/PalanteJon/org.takethestreets.campaignincontributiontab/blob/master/campaignincontributiontab.php</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-03T06:38:09.443Z
Answers.LastActivityDate: 2017-07-03T06:38:09.443Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I am not sure I am totally following your question. But... have you looked at Soft Credits? 
  <a href="https://docs.civicrm.org/user/en/4.6/contributions/soft-credits/" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/4.6/contributions/soft-credits/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T13:30:30.393Z
Answers.Text: Thanks for responding Carl. This isn't about that. This is modifying a template file to show more information than is stored.
Answers.UserDisplayName: JohnFF
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T03:58:29.820Z
Answers.LastActivityDate: 2017-04-04T03:58:29.820Z
Answers.UserDisplayName: Iowa Boy
Body: <p>My use case is that I want users to be able to pay for another user's Event Participation.</p>
  
  <p>Currently, the display name is baked into the source: <a href="https://i.sstatic.net/zVw5D.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zVw5D.png" alt="enter image description here"></a></p>
  
  <p>I'm hoping to add a column "Contribution By" to record a link to this person instead.</p>
  
  <p>How can I add a column into this table?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-03T13:13:51.017Z
Comments.Text: Hey John, Just to add a little more info to this ticket - there is the registered by field which is populated when multiple registrations are made by a single contact. Is that the scenario your talking about?
Comments.UserDisplayName: Parvez Saleh
Tags: <civievent>
Title: How to add Contribution By column
ThreadText: # How to add Contribution By column
  
  (Asked by: username_0 on 2017-04-02)
  
  My use case is that I want users to be able to pay for another user's Event Participation.
  
  Currently, the display name is baked into the source: [![enter image description here](https://i.sstatic.net/zVw5D.png)](https://i.sstatic.net/zVw5D.png)
  
  I'm hoping to add a column "Contribution By" to record a link to this person instead.
  
  How can I add a column into this table?
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: Hey John, Just to add a little more info to this ticket - there is the registered by field which is populated when multiple registrations are made by a single contact. Is that the scenario your talking about?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-07-03. Score: 1
  
  I'd wager that the template you're looking at calls [hook\_civicrm\_searchColumns](https://docs.civicrm.org/dev/en/stable/hooks/hook_civicrm_searchColumns/). Despite the name referring to "search", it's designed to let you change the values of the columns in tables like the one you display.
  
  I just pushed a simple extension that demonstrates how it's used: <https://github.com/PalanteJon/org.takethestreets.campaignincontributiontab/blob/master/campaignincontributiontab.php>
  
  
  ---
  
  ### Answer by username_3 on 2017-04-04. Score: 0
  
  I am not sure I am totally following your question. But... have you looked at Soft Credits?
  <https://docs.civicrm.org/user/en/4.6/contributions/soft-credits/>
  
  > **Comments:**
  > **username_0**: Thanks for responding Carl. This isn't about that. This is modifying a template file to show more information than is stored.  
  
  ---
  
  