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 (Moderator: Dave Greenberg) »
  • Joomla Dashboard "Renew Now" wrong url
Pages: [1]

Author Topic: Joomla Dashboard "Renew Now" wrong url  (Read 1242 times)

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Joomla Dashboard "Renew Now" wrong url
September 17, 2009, 05:00:48 pm
In my Joomla Dashboard front-end, I have the 'Your Membership' part active, with a corresponding 'Renew Now' link when applicable. The problem is, when I click on the 'Renew Now' link, it takes me to a different user's dashboard. Specifically, it's taking me to the dashboard of one of my Super Administrators.

Any advice? Where does this url get put together?

Thanks,
Phil

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Joomla Dashboard "Renew Now" wrong url
September 21, 2009, 03:19:37 pm
I fixed this by changing line 20 in administrator/components/com_civicrm/civicrm/templates/CRM/Member/Page from:

<td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>

to

<td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.contact_id`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>

and while I was at it, I changed line 50 (although I don't know where it is called), because it is essentially the same as the above, from:

<td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>

to

<td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.contact_id`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>

Hope this helps someone. Perhaps this needs to be fixed in the code.

Thanks,
Phil


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Joomla Dashboard "Renew Now" wrong url

This forum was archived on 2017-11-26.