BerryPro : adding the drupal module "Jssor Slider"

Hi,
I would like to add the module "Jssor Slider" to carry out a slideshow in a block of the homepage.
As I installed the module, I do not succeed in in installing the library.
The available documentation is not clear about it.
Could you tell me how to do ?
Thanks in advance.
Best regards,

Comments

user
Submitted by admin on Fri, 06/03/2016 - 14:50

I am sorry but we do not provide support related to third party modules.

user
Submitted by cococom64 on Mon, 06/06/2016 - 15:55

I understand but could you tell me just if the specific connection between jQuery and Berrypro theme may be a problem for the use of jssor module ?
Thanking you in advance,
Best regards

user
Submitted by admin on Wed, 06/08/2016 - 03:12

We have bundled jQuery v1.12.0 with the theme.
You can disable theme's jQuery and use Drupal default jQuery by deleting following codes from template.php

/**
* Use latest jquery
*/
function berrypro_js_alter(&$javascript) {
  $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'berrypro') .
    '/js/jquery.js';
  $javascript['misc/jquery.js']['version'] = '1.12.0';
}
user
Submitted by cococom64 on Thu, 01/25/2018 - 16:12

Hello,
I notice that tab shortcode does not work and I would like to know why and if it could be related with the above mentioned change I made regarding the JQuery version.
Thank you in advance for your help.
Best regards

user
Submitted by cococom64 on Thu, 01/25/2018 - 17:56

Hello,
I confirm you that the problem comes from JQuery.
I tried to solve it by adding this in the template.php :
------
if ($node->nid == 6350) {
function berrypro_js_alter(&$javascript) {
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'berrypro') .
'/js/jquery.js';
$javascript['misc/jquery.js']['version'] = '1.10.2';
}
}
----
the nid node 6350 is the node in which I want to put tab shortcodes.
I have a message error :
---

Notice : Undefined variable: node dans include_once() (ligne 12 dans /var/www/drupal/hiddendossier/drupal7dev/sites/all/themes/berrypro/template.php).
Notice : Trying to get property of non-object dans include_once() (ligne 12 dans /var/www/drupal/hiddendossier/drupal7dev/sites/all/themes/berrypro/template.php).
____
Please help me !!!
Thank you in advance.
Best regards

user
Submitted by cococom64 on Fri, 01/26/2018 - 01:41

Hello,
It seems I found the solution by writing the condition inside the function berrypro_preprocess_node(&$variables) as you can see below :

function berrypro_preprocess_node(&$variables) {
$variables['submitted'] = t('By: !username', array('!username' => $variables['name']));
if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) {
$variables['classes_array'][] = 'node-full';
}
$node = $variables['node'];
$comment = $variables['comment'];
$variables['submitted_day'] = format_date($node->created, 'custom', 'j');
$variables['submitted_month'] = format_date($node->created, 'custom', 'M');
$variables['submitted_year'] = format_date($node->created, 'custom', 'Y');
if ($node->nid == 6350) {
function berrypro_js_alter(&$javascript) {
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'berrypro') .
'/js/jquery.js';
$javascript['misc/jquery.js']['version'] = '1.10.2';
}
}
}
As I am not a developper I hope this solution is correct even if it solves my problem to display tab shortcodes for Berrypro in a specific node.
Thanks in advance for your advise.
Best regards