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 Tell-a-Friend Link
Pages: [1]

Author Topic: PCP Tell-a-Friend Link  (Read 1362 times)

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
PCP Tell-a-Friend Link
August 21, 2011, 08:45:19 pm
We seem to be having an issue with the PCP Tell-a-Friend Make a Contribution link.  Clicking on the link results in the "friend" getting the login screen.  Here are the examples:

https://dsapgh.org/index.php?option=com_civicrm&task=civicrm/contribute/pcp/info&Itemid=97&reset=1&id=26
This is the link sent when the user Tells a friend and their friend get this link as Make a Contribution from the auto email.
 
https://www.dsapgh.org/index.php?option=com_civicrm&task=civicrm/contribute/pcp/info&reset=1&id=26
This is direct the direct link to the PCP.  The only difference I see is "Itemid=97" is in the other one.

How can I fix the Tell-a-Friend Make a Contribution Link in the email to correctly point to the second one above?  Thanks for any assistance.

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: PCP Tell-a-Friend Link
August 23, 2011, 02:20:09 pm
Bump, sorry but we are already live and folks are having issues with this.

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: PCP Tell-a-Friend Link
August 23, 2011, 03:33:36 pm

this seems related to the ItemID fix which we did for joomla. i've asked our joomla expert to take a look at it and see if we can figure out a quick fix

thanx

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

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: PCP Tell-a-Friend Link
August 23, 2011, 03:44:29 pm
Thank you.  I have found a quick work-around in the meantime.  This issue is related to the menu item for the Your Participation Details.  I had it set to Registered so that only those individuals that were registered would see it in the menu.  However, the Tell-a-Friend link somehow uses this within the string, but not that I found.  So the easy solution for now was to change the menu button to public.  Once I did, no more login was required for the individuals receiving the email.  The problem is that the menu link is now visible to the public, but when the click on it they get the civicrm-100 error page.

I hope there is a more permanent solution that you can suggest.  Thanks again for any suggestions.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: PCP Tell-a-Friend Link
August 23, 2011, 05:09:54 pm
yes -- your assessment looks correct.

in general, when working in Joomla, we want to retain the Itemid through multipage processes, as the itemid (which is associated with the menu item) is how you assign module positions and such. that's why the contribution page Itemid is passed to the PCP page. in your case -- if i understand correctly -- your contrib page is restricted access, but the PCP page signup should be public access. thus the permissioning attached to the menu item is clashing.

if you're not overly sensitive to the exposure of the originating contrib page, you could try this workaround:

* create a new "link setting" menu (this is common -- basically a menu for the purpose of generating links but which won't be visibly exposed to your site; that means the links are accessible, but you're not advertising them)
* create your link to the contrib page here, set to public access
* in the location in your menu where you actually want the contrib page link, create a menu item of type alias, select your new item from the link setting menu, and set this to registered visibility

an alias menu type just points to another menu item. but what is nice is that your alias can have a different access level than its linked menu item. so you are effectively allowing your contrib page to be publicly access, but hiding the link behind the registered access alias. make sense?

you'll want to test it. but this should meet your need without requiring any code changes. however -- your contrib page itself is technically publicly accessible. the link is hidden, so practically speaking, its unlikely anyone will get to it. but if the url was copied and emailed or otherwise distributed, it's not going to prevent public access.

if that's not suitable, I can take a look at a possible code alteration. i'm hesitant to modify code in core because i think the normal usage of the contrib page > pcp functionality is to retain the same menu item.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: PCP Tell-a-Friend Link
August 24, 2011, 04:09:21 am
I think I follow you, however, let me add some clarification and see if you think I messed up somewhere:

1. I don't have a direct link to a Contribution page, but I do have the Widget in a module.
2. The menu link is for the Your Participation Details page which is for registered only by design

The fix as I understand it:
1. Create an "invisible" menu.
2. Add an alias link to the Personal Contribution Page (the one with ItemId=97) in the invisible menu

I will give this a try and I really appreciate your assistance.  The forum is truly a top-notch resource.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: PCP Tell-a-Friend Link
August 24, 2011, 04:38:02 am
hmmm.... you're using the widget. so it may be picking up the Itemid from whereever the widget is placed.
well, give it a try. if you want to include links, or PM me the links, i can take a closer look at your setup.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

sgraypgh

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: PCP Tell-a-Friend Link
August 24, 2011, 04:40:45 am
I just did the Alias solution and it worked great!!!

BTW - the Itemid is for the Your Participation Details for some reason and not the widget.  Nevertheless, problem solved thanks to you.  Very much appreciated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • PCP Tell-a-Friend Link

This forum was archived on 2017-11-26.