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 CiviEvent (Moderator: Yashodha Chaku) »
  • Customize "Help spread the word" feature 4.1 event
Pages: [1]

Author Topic: Customize "Help spread the word" feature 4.1 event  (Read 1119 times)

LintonConsult

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Customize "Help spread the word" feature 4.1 event
April 16, 2012, 08:04:04 am
I really like the Help spread the word feature, however it give as very "ugly" link for people to share.

In newer versions of joomla (and other CMS) there are SEF controls built in or by using a addon. So I can replace:

<my site>/index.php?option=com_civicrm&task=civicrm/event/info&id=1&reset=1

with

<my site>/event2012

Which is what we use in our press realeases and mailings.

I would like to change the "spread the word" widget to reflect a SEF link or maybe just send people to the main event site.

Any one have an idea where this code is .... I have searched through the PHP event files and have yet to find it.

rd

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: Customize "Help spread the word" feature 4.1 event
April 16, 2012, 09:48:39 am

ideally u should do this outside of CiviCRM.

when the user hits that url, redirect the user to the:

<my site>/index.php?option=com_civicrm&task=civicrm/event/info&id=1&reset=1

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

LintonConsult

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: Customize "Help spread the word" feature 4.1 event
April 16, 2012, 10:01:52 am
You misunderstood.....

I already have the redirection outside of Civicrm (using the Joomla built in redirector) and that is working.

The "help spread the word" widgit....has the "ugly" url in it and that is what is offered to be shared. It also uses that Url when any of the share functions are used e.g.

If you tweet from that widget it uses:

<my site>/index.php?option=com_civicrm&task=civicrm/event/info&id=1&reset=1

Which is not as friendly as having a SEF one.

I would like to overide that link, but I can't find the JS, PHP or TPL that creates those links.

rd

LintonConsult

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: Customize "Help spread the word" feature 4.1 event
April 16, 2012, 07:42:13 pm
I finally found it ....hidden in the common directory.

templates/crm/common/SocialNetwork.tpl

modified it to pull a custom field...would be nice to over ride this from the Backend Directly though.

rd

lesley

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 1
Re: Customize "Help spread the word" feature 4.1 event
February 18, 2014, 04:27:25 pm
What a great idea - fancy sharing the mod?  :-*
cheers
Lesley

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Customize "Help spread the word" feature 4.1 event

This forum was archived on 2017-11-26.