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) »
  • Language and Locality »
  • UK Users Group (Moderator: Michael McAndrew) »
  • Upcoming Event View
Pages: [1]

Author Topic: Upcoming Event View  (Read 1674 times)

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
Upcoming Event View
December 08, 2011, 02:25:44 am
Hi All

Please bare with me as i'm a relative newcomer to CiviCRM and the coding that sits behind it.

I'd like to be able to modify the upcoming events menu item / front end view in joomla so that it displays the remaining spaces in an event.  Is this possible?

Could anyone point me in the right direction for a complete newb to understand?

Thanks all

Matt

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: Upcoming Event View
December 08, 2011, 07:10:58 am

You will need to do this via hooks. Check:

http://en.flossmanuals.net/civicrm-developer-guide/
wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification

I think u can use the pageRun hook to get the info for all the remaining spaces for all events and then customize the template to add this info to the screen. You will need php / civicrm api / mysql skills to do so

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

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
Re: Upcoming Event View
December 08, 2011, 07:37:21 am

Thanks Lobo

Have been reading and trying to understand the concepts behind the hooks and api calls for the last day or so.  I think my brain is about to explode!

Ok so am I right in saying that I need to code a segment into /CRM/Utils/Hook.php and put the hook_civicrm_pageRun( &$page ) in the template file??? Or is this complete nonsense and I should get someone who knows what they are looking at?

Thanks and Regards

Matt

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: Upcoming Event View
December 08, 2011, 09:50:20 am

u might need to hire someone or get someone to walk you thru this

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

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
Re: Upcoming Event View
December 08, 2011, 09:54:01 am
Yea, I think so, the more I read the more i confuse myself! :-(

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Language and Locality »
  • UK Users Group (Moderator: Michael McAndrew) »
  • Upcoming Event View

This forum was archived on 2017-11-26.