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) »
  • Change Donation Page Included Text?
Pages: [1]

Author Topic: Change Donation Page Included Text?  (Read 2053 times)

danidarling

  • Guest
Change Donation Page Included Text?
August 09, 2010, 05:49:33 am
I need to change some of the text that is generated on the donation page for the personal campaign pages - but only for the personal campaign pages.  My setup works like this....

We are using Personal Campaign pages to allow youth to get "sponsors" for a very costly trip (so that family and friends can help them raise the money).  All seems to be working as we expect, but my client wants to change some of the donation page wording that is autogenerated.  It is directly above the form and says..."This contribution is being made thanks to effort of Jane Doe, who supports our campaign. You can support it as well - once you complete the donation, you will be able to create your own Personal Campaign Page!"

The problem is this, Jane is the youth who setup the page.  So somehow the text needs to change - either to something ambiguous or a different message entirely.  ALSO - we are using PCP's for other reasons too, so if I cannot Only change it on these particular PCP's then the message needs to be really vague. 

So, how would I change the text in that message?  And, is there a way to have more than one version of this message (so not all pcp's have to use the same message)?

Thanks so much :-)

Danielle

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: Change Donation Page Included Text?
August 09, 2010, 06:41:11 am

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customizing+CiviCRM+Screens

contribution pages can have a specific template for each contribution page

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

danidarling

  • Guest
Re: Change Donation Page Included Text?
August 09, 2010, 11:34:34 am
Ok I am trying to follow the directions on that link page, but in my install I find this code in the page source for the template:

<!-- .tpl file invoked: CRM/Contribute/Form/Contribution/Main.tpl. Call via form.tpl if we have a form in the page. -->


But I do not have any template file anywhere called Main.tpl   nor do I see any file in the templates folder that gives any indication of what is creating that text so that I can edit the page.  PLZ Help!

This is a Joomla integration - Civicrm 3.1.3

Thanks :-)


EDIT:-- Ok, I found template files in /media/com-civicrm/ but which folder in there might it be for the page?  I have like 100 folders in that directory and they don't have names that explain anything, just A or 55 - stuff like that.

« Last Edit: August 09, 2010, 12:15:16 pm by danidarling »

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: Change Donation Page Included Text?
August 09, 2010, 12:58:41 pm

check in

administrator/components/com_civicrm/civicrm/templates

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

danidarling

  • Guest
Re: Change Donation Page Included Text?
August 09, 2010, 02:04:13 pm
Thank you so much, Im getting somewhere now.  But - one more question if you dont mind.  The text I need to change is on the contribute personal campaign page DONATE page (after you click the donate button).  will that be in with the contribute templates, pcp's or where? 

Thank you very very much

:-)

Danielle

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: Change Donation Page Included Text?
August 09, 2010, 02:49:12 pm

not sure off hand (have not played with PCP in sometime)

generate the page u want to customize and then check what template is involved (as the documentation recommends)

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

danidarling

  • Guest
Re: Change Donation Page Included Text?
August 09, 2010, 02:57:48 pm
That is what that line I started with is. 
<!-- .tpl file invoked: CRM/Contribute/Form/Contribution/Main.tpl. Call via form.tpl if we have a form in the page. -->

but I do not see that exact file name --

When I go in like this
/administrator/components/com_civicrm/civicrm/templates/CRM/Contribute/Page

I get several files, but no Main.tpl and there is no file I have found anywhere that mentions Donate in the name.  And there are many different Contribute_whatever.tpl files 

Am I looking for just files with the name main.tpl or will I need a form.tpl file?  There is a form in the page.

Thanks,

Danielle

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: Change Donation Page Included Text?
August 09, 2010, 06:10:25 pm

please take some time to read that line carefully, it is:

CRM/Contribute/Form/Contribution/Main.tpl

there will be a file in templates/CRM/Contribute/Form/Contribution/Main.tpl

you might want to consider hiring someone from http://civicrm.org/professional/ and/or attending a civicrm training

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

danidarling

  • Guest
Re: Change Donation Page Included Text?
August 09, 2010, 06:51:11 pm
Ok- can I add a huge DOH!?  I don't know where I went, but it was definitely css he-double hockey sticks and NOT there. 

Thank you so very much for your patience with my scattered brain. :-)  Now to pick out the part I need (honestly, I do edit extension files on a regular basis - it was such a monday today). 

Danielle

danidarling

  • Guest
Re: Change Donation Page Included Text?
August 10, 2010, 07:49:28 am
 ;D

THANK YOU SOO MUCH!  I got it taken care of.  Didn't take more than 5 min. once I found the file :-)

I truly appreciate your time and patience :-)

Have a Great Day!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Change Donation Page Included Text?

This forum was archived on 2017-11-26.