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) »
  • Adding an image to the event footer text ?
Pages: [1]

Author Topic: Adding an image to the event footer text ?  (Read 964 times)

martinb1

  • Guest
Adding an image to the event footer text ?
August 31, 2009, 02:49:16 pm
Hi all,

Is it possible to add an image (and therefore using HTML) in the Registration Screen > Footer Text ? If so any ideas on which path to use for the image ?

Thanks
« Last Edit: August 31, 2009, 04:05:16 pm by martinb1 »

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Adding an image to the event footer text ?
August 31, 2009, 10:55:10 pm
martinb1 :
You could do custom coding to change the event "Footer Text" which is a textarea to a WYSIWYG editor using :

Code: [Select]
Index: CRM/Event/Form/ManageEvent/Registration.php
===================================================================
--- CRM/Event/Form/ManageEvent/Registration.php (revision 23464)
+++ CRM/Event/Form/ManageEvent/Registration.php (working copy)
@@ -190,7 +190,7 @@
     {
         $attributes = CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event');
         $form->add('textarea','intro_text',ts('Introductory Text'), $attributes['intro_text']);
-        $form->add('textarea','footer_text',ts('Footer Text'), $attributes['footer_text']);
+        $form->addWysiwyg('footer_text',ts('Footer Text'), $attributes['footer_text']);

I recommend using Custom PHP Path Directory (http://issues.civicrm.org/jira/browse/CRM-3084)

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

martinb1

  • Guest
Re: Adding an image to the event footer text ?
September 02, 2009, 11:53:03 pm
Bingo ! thanks solved two of my outstanding problems  :D

Can I ask whats a "Custom PHP Path Directory" ?

Cheers

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Adding an image to the event footer text ?
September 03, 2009, 08:25:31 am
Quote
Can I ask whats a "Custom PHP Path Directory" ?

You can specify Custom PHP Path Directory  here :
http://sandbox.civicrm.org/civicrm/admin/setting/path?reset=1

It searches user code path before CiviCRM code path and allows the user to add a new directory setting for new code path.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Adding an image to the event footer text ?

This forum was archived on 2017-11-26.