Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: Module doesn´t work

Module doesn´t work 10 years, 3 months ago #17205

I can't configure this module to work properly.
I have the same problem in module SJ K2 SPLASH.


Thanks a lot

Re: Module doesn´t work 10 years, 2 months ago #17366

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear Cesário Camacho,

For module Sj K2 Accordion, please open file (/mod_sj_k2_accordion/default.php) and add this code to header:

<?php  $script = '
    window.addEvent("load", function() {
        $$("#yt-accordion-'.$module->id.'").each( function( item ){
           new Accordion( item, ".yt-toggler-'.$module->id.'", ".yt-element-'.$module->id.'", {
                opacity: false,
                alwaysHide:false,
                display:'.$options->item_first_display.',
                onActive: function(toggler, element){
                    toggler.addClass("open");
                    element.addClass("active");
                },
                onBackground: function(toggler, element){
                    toggler.removeClass("open");
                    element.removeClass("active");
                }
            });'; ?>
            <?php if($options->accmouseenter == 'mouseenter'){?>
            <?php $script .= '$$(".yt-toggler-'.$module->id.'").addEvent('.$options->accmouseenter.', function() {  this.fireEvent("click"); });';?>
            <?php } ?>                               
       <?php  $script .= ' } );                                 
    });';
$doc = JFactory::getDocument();
$doc->addScriptDeclaration( $script );	
?>


For the module Sj k2 Splash, please open file(/mod_sj_k2_splash/tmp/default.php) and add this code to header:

<?php 
$script = '
	window.addEvent("domready",function(){
		featuredcontentslider.init({
			id: "yttitleflash'.$module->id.'", 
			contentsource: ["inline", ""],  
			toc: "markup",  
			nextprev: ["Previous", "Next"],  
			revealtype: "click",
			enablefade: [true, 0.1],
			autorotate: [true, 5000], 
			onChange: function(previndex, curindex){  
				
			}
		});
	});';
	
$doc = JFactory::getDocument();
$doc->addScriptDeclaration( $script );?>


We fixed this issue, please check your site again.

Thanks!
The following user(s) said Thank You: cantinho
  • Page:
  • 1
Time to create page: 0.21 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes