I really like Danland, BUT, when I tried to use it with CiviCRM, a whole bunch of functions wouldn't. Specifically, I was trying to update an Events listing that I had made under another theme and the configuration page would not provide a drop-down calendar, nor would it accept any changes when I clicked on Save or Save and done. Is there any setting I can tweak in Danland to make it more CiviCRM-friendly?

Someone on the CiviCRM board suggested:

"To the folks who can't make the calendar function work: Are you running Adaptivetheme and/or a customization of it? There are a LOT of javascript options built into Adaptivetheme (I use it as our go-to baseline theme here) and I found I had to turn them all off to get the CiviCRM javascript to load up.

Specifically look for "equal column heights" and "horizontal login" as troublemakers. I turned those both off and the rest of CiviCRM is now working just fine."

Is there something similar I can do in Danland, because I really would like to keep using it.
Thanks.

Comments

danpros’s picture

Hello,

Too bad, but I never tested it with Danland. Now I'm downloading the CiviCRM to test it and I will reporting the result sooner.

If because javascript options than you can try to turn them all off by doing this, comment the following code in template.php (try comment the superfish.js first)

drupal_add_js(drupal_get_path('theme', 'danland') . '/jquery.cycle.min.js');
drupal_add_js(drupal_get_path('theme', 'danland') . '/sf/js/superfish.js');
drupal_add_css(drupal_get_path('theme', 'danland') . '/sf/css/superfish.css');

Or you can download the version 1.3 (no JS at all).

Dan

danpros’s picture

This problem is the same as in Acquia Marina. Acquia Marina Theme breaks jQuery when using CiviCRM

danpros’s picture

I'm test the CiviCRM using Marinelli theme and it got the same problems if I turn on the Drop down menu.

danpros’s picture

After testing the CiviCRM finally I got the solutions since it not displayed on the frontpage. The feature that still remains is only the Slideshow. Here's the step to resolve this:

  1. Replace the head of the page.tpl.php with this
  2. <head>
      <?php print $head; ?>
      <title><?php print $head_title; ?></title>
        <meta http-equiv="Content-Style-Type" content="text/css" />
      <?php print $styles; ?>
       <!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->
      <?php print $scripts; ?>
     </head>
    
  3. Replace the head of page-front.tpl.php with this
  4.  <head>
      <?php print $head; ?>
      <title><?php print $head_title; ?></title>
        <meta http-equiv="Content-Style-Type" content="text/css" />
      <?php print $styles; ?>
       <!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->
    <?php print $scripts; ?>
      <script type="text/javascript">
    $(document).ready(function() {
        $('.slideshow').cycle({
    		fx: 'fade' , timeout: 8000, delay: 2000});
    });</script>
     </head>
    
  5. Comment the template.php and leave the jquery.cycle.min.js
  6. drupal_add_js(drupal_get_path('theme', 'danland') . '/jquery.cycle.min.js');
    //drupal_add_js(drupal_get_path('theme', 'danland') . '/sf/js/superfish.js');
    //drupal_add_css(drupal_get_path('theme', 'danland') . '/sf/css/superfish.css');
    

Above is if you are using the version 1.8, but if you using the version 1.7, you only need to do the step 1 and 2 since version 1.7 is no support for Superfish menu. Download the version 1.7.

rflemin’s picture

Thanks for your quick response. I did, as you suggested, revert to 1.3 and it seems to solve the problems, but I lose that cool slideshow. I'm trying the modifications to 1.8 that you suggested, but that seems to lose the slideshow as well. (I've been getting comments that people did not like the banner photo I've been using (I like it a lot), so I thought a slideshow would give them even more to bitch about -----I mean, more choices). I'm having a little trouble testing 1.8.1 (like my modem keeps dropping the link), but I'll let you know how it works. Thanks again.

danpros’s picture

Hello,

I think the problems is here:

$(document).ready(function() {
    $("#superfish ul.menu").superfish({ 
            delay:       100,                           
            animation:   {opacity:'show',height:'show'},  
            speed:       'fast',                          
            autoArrows:  true,                           
            dropShadows: false                   
        });
  });

or

$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' , timeout: 8000, delay: 2000});
});

So every time there is a call using $(document).ready(function(), the Drupal javascript is mess-up, I test it to not call using that function and all work fine (for superfish)

function danland_preprocess(&$variables,$hook) {
drupal_add_js(drupal_get_path('theme', 'danland') . '/sf/js/superfish.js', 'theme');
drupal_add_css(drupal_get_path('theme', 'danland') . '/sf/css/superfish.css', 'theme');
}

Maybe if I can call the slideshow without using that function, than it will resolve the problems.

Thanks you like the theme.

I'll try to find the answer for this bugs.

danpros’s picture

Status: Active » Postponed

I will postponed this untill get the best solutions. Please read the handbook to resolve this problems by changing some part of the theme.

rflemin’s picture

Thanks for all your efforts. I, and I hope a lot of other CiviCRM users, appreciate it.

danpros’s picture

Status: Closed (fixed) » Fixed

I think this problems already solved, we already release new version that contains this big fixes. Download Danland.

Regards,

danpros’s picture

Status: Postponed » Closed (fixed)

You can re-open this again.

Carlos Miranda Levy’s picture

Version: 6.x-1.8 » 7.x-1.0-rc2
Status: Fixed » Active

Fixed

Carlos Miranda Levy’s picture

Status: Active » Fixed

it is fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.