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) »
  • PCP links in email sent by CiviCRM
Pages: [1]

Author Topic: PCP links in email sent by CiviCRM  (Read 2956 times)

jrthor2

  • Guest
PCP links in email sent by CiviCRM
January 15, 2010, 04:46:16 am
I have PCP pages enabled on our donation form, and when the admin approves the page, the user gets an email like this:

============================
Your Personal Campaign Page
============================

Your personal campaign page has been approved and is now live.

Whenever you want to preview, update or promote your page:
1. Login to your account at:
http://www.site.org/joomla15/administrator/

2. Click or paste this link into your browser to go to your page:
http://www.site.org/joomla15/index.php?option=com_civicrm&task=civicrm/contribute/pcp/info&reset=1&id=7

When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.

After logging in, you can use this form to promote your fundraising page:
http://www.site.org/joomla15/index.php?option=com_civicrm&task=civicrm/friend&reset=1&eid=7&blockId=3&page=pcp

In #1 above, that link is not correct.  When the user creates a PCP page, civiCRM creates a Joomla user account.  Once the user activates their account, they are activated and are part of the "Registered" group.  This user cannot login to the administrator area.  Where does this link get set, so I can look at changing it to go to the login page I have for my users?

Also, when I create a PCP page, I get an email that says I can login and preview my site, before it is approved.  The link to login for that is;

http://www.site.org/joomla15/index.php?option=com_user&view=login

where can I change this link as well.  I have my own login page (its an article with the login module on it), so that when a user logs in, it takes them to their CiviCRM dashboard.  I don't want to use the Joomla login page (com_user), as I can't easily direct the user where to go after login.

Thanks.


nightlrd

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Joomla 1.5
Re: PCP links in email sent by CiviCRM
January 15, 2010, 01:35:22 pm
Check out this post. it should help.

http://forum.civicrm.org/index.php/topic,10839.msg46726.html#msg46726

jrthor2

  • Guest
Re: PCP links in email sent by CiviCRM
January 17, 2010, 05:00:38 am
I have version 3.0.3, and the code that was posted in that post is present in my PCP.php file, and it is still now working.  I get the links in my first post.

Shailesh Lende

  • Guest
Re: PCP links in email sent by CiviCRM
January 17, 2010, 10:48:24 pm
Hi jrthor2,
Quote
In #1 above, that link is not correct.  When the user creates a PCP ....

Yes, this was a bug in 3.0.3 and fix will be available in next release. Till then you can fix this locally as per
http://fisheye2.atlassian.com/browse/CiviCRM/branches/v3.0/templates/CRM/Contribute/Form/PCP/PCPStatusChange.tpl?r1=23658&r2=25725

Thanks for raising this issue.

Quote
Also, when I create a PCP page, I get an email that says I can login and preview my site, before it is approved.  The link to login for that is;
http://www.site.org/joomla15/index.php?option=com_user&view=login
where can I change this link as well.

You can pass your custom login url at
 templates/CRM/Contribute/Form/PCP/PCPSupporterNotify.tpl Line No. 51

Code: [Select]
{ts}You can still preview your page prior to approval{/ts}:
1. {ts}Login to your account at{/ts}:
>> {$loginUrl}


Hth.

Thanks,
Shailesh

jrthor2

  • Guest
Re: PCP links in email sent by CiviCRM
January 18, 2010, 04:03:51 am
Quote
You can pass your custom login url at
 templates/CRM/Contribute/Form/PCP/PCPSupporterNotify.tpl Line No. 51
Do I just replace {$loginUrl} with http://www.site.org/joomla15/index.php?option=com_content&view=article&id=78?  Does it need to be inside {}?

Thanks!

Shailesh Lende

  • Guest
Re: PCP links in email sent by CiviCRM
January 18, 2010, 04:11:50 am
Quote
Do I just replace {$loginUrl} with http://www.site.org/joomla15/index.php?option=com_content&view=article&id=78?

If your login URL is static means its fixed and same for everybody then you can directly replace your URL at place of {$loginUr}. No need of {}.
like
Code: [Select]
{ts}You can still preview your page prior to approval{/ts}:
1. {ts}Login to your account at{/ts}:
http://www.site.org/joomla15/index.php?option=com_content&view=article&id=78

But if you are building your URL dynamically in PHP and then assigning it, then you have to use like {$url_variable} where $url_variable may be smarty variable used for your login URL.

-Shailesh  
« Last Edit: January 18, 2010, 04:13:56 am by Shailesh Lende »

jrthor2

  • Guest
Re: PCP links in email sent by CiviCRM
January 18, 2010, 04:55:19 am
And where would I change the "click here" link that is displayed in this message"

Your Personal Campaign Page has been created but requires administrator review before you can begin your fundraising efforts. You will receive an email confirmation shortly which includes a link to return to your fundraising page. A notification email has been sent to the site administrator. You will receive a second email as soon as the review process is complete. Once you've received your new account welcome email, you can click here to login and promote your campaign page.

Thanks

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: PCP links in email sent by CiviCRM
January 18, 2010, 05:06:11 am
Quote
And where would I change the "click here" link that is displayed in this message"

You might want to change the $loginUrl variable in run method in CRM/Contribute/Page/PCPInfo.php

HTH
Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

jrthor2

  • Guest
Re: PCP links in email sent by CiviCRM
January 18, 2010, 05:39:52 am
Can I put that change in my civicrm_custom directory so I don't have to modify the base code?  I tried to, but it didn't seem to work.  
« Last Edit: January 18, 2010, 05:50:31 am by jrthor2 »

jrthor2

  • Guest
Re: PCP links in email sent by CiviCRM
January 18, 2010, 05:39:19 pm
I updated the $loginUrl in CRM/Contribute/Page/PCPInfo.php, but this message is not using the link I put in

Please enter a user name to create an account . If you already have an account, please login before completing this form.

Thanks

jursulak

  • I’m new here
  • *
  • Posts: 7
  • Karma: 3
  • CiviCRM version: 4.5.6
  • CMS version: Wordpress 4.1.1
Re: PCP links in email sent by CiviCRM
March 06, 2010, 09:57:37 am
I know this is a bit of an old topic now, however I was trying to do the same thing but I'm using 3.1.3 and PCPSupporterNotify.tpl is not in 3.1.3

I tweeted for help and Dave Greenberg (@dggreenberg on twitter) replied the following to me:

"3.1 system emails now controlled by Message Templates. Stored in DB. Modify from Admin >> Configure >> Msg Templates"

So simple. Thanks.

So if you're using 3.1 and trying to modify PCP links in the email sent by CiviCRM:

  • Go to Administer >> Configure >> Message Templates
  • Click the System Workflow Messages tab
  • Select the template you wish to modify (there are 3 for PCP) - after you make changes you will have the option to Revert to Default and View Default, which is helpful


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • PCP links in email sent by CiviCRM

This forum was archived on 2017-11-26.