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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Civi 4.5/Joomla 3 Display Issue
Pages: [1]

Author Topic: Civi 4.5/Joomla 3 Display Issue  (Read 500 times)

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 06:24:29 am
Hey all, I am hoping some of the other developers here can help me sort out an issue in Civi 4.5 and Joomla 3.  I am planning to do the work on this and submit a PR but need some pointing in the right direction.

Joomla 3 has a small, 30px high footer bar within the administrator area.  With Civi 4.5's new popup window UI, this bar causes a problem because it is just high enough to overlay about 80% of the action buttons on the bottom of the screen (see screenshot).  If the height of the content portion of the popup is adjusted, then everything will fall into place, so it is a matter of adjusting the height calculation for Joomla installs, but I'm not sure where that calculation is done and added to the inline style.  Could someone with more knowledge of the inner workings of the new UI point me in the right direction?


CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 11:01:20 am
Hi Dan, we had the same problem with Drupal's toolbar, and came up with the following solution:
https://github.com/civicrm/civicrm-core/blob/4.5/js/crm.drupal.js#L14
Try asking your question on the new CiviCRM help site.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 11:18:07 am
Yeah, that's about right for me, start looking into doing it the hard way :).  I just tested it and it appears that is going to work, I will enter it into Jira and get a pull request created shortly.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 11:23:47 am
You'll have to create the crm.joomla.js file since we don't yet have one. And to have it get included do this:
https://github.com/civicrm/civicrm-core/blob/4.5/CRM/Utils/System/DrupalBase.php#L297
Try asking your question on the new CiviCRM help site.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 11:26:21 am
Ok, thanks for the tips.  Looks easy enough, I'm sure I will find a way to botch it up :).
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Civi 4.5/Joomla 3 Display Issue
December 13, 2014, 12:11:53 pm
Thank you again for the tips Coleman, I have fixed the issue and submitted a PR.

For others with the same issue, it is on that tracker at: https://issues.civicrm.org/jira/browse/CRM-15723
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Civi 4.5/Joomla 3 Display Issue

This forum was archived on 2017-11-26.