Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Doesn't seem to be working...
(1 viewing) (1) Guest
Go to bottomPage: 123456
TOPIC: Doesn't seem to be working...
#1326
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 666
We have fixed it. Problem in the following code in your template:

if ($user->get('guest') == 1 or $user->usertype == 'Registered') {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff);
}

$headerstuff['scripts'] = array(); - clear all javascript including which add any plugin, through standard Joomla API. We changed it:

if ($user->get('guest') == 1 or $user->usertype == 'Registered') {
$headerstuff = $this->getHeadData();
$scripts = array();
foreach ($headerstuff['scripts'] as $key => $script)
{
if (strpos($key, 'mootools.js') !== false || strpos($key, 'caption.js') !== false) continue;

$scripts[$key] = $script;
}
$headerstuff['scripts'] = $scripts;
$this->setHeadData($headerstuff);
}

This remove mootools including.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#1327
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 0
Oke.. thanks.. the mootoolsremover removed more then expected i guess...

I will try an dplay again to get it to work with my other jquery-scripts...

Thanks...
The administrator has disabled public write access.
 
#1328
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 666
One note, pay attention, that 'Frontpage Slideshow' call jQuery.noConflict() and it disable using jQuery through '$' shorthand. But your scripts such as joomlasite.js use this shorthand and javascript error occurs. For resolving this issue you can use full name jQuery.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#1329
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 0
and so i have learned something too

Thanks for the hint!
The administrator has disabled public write access.
 
#1408
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 0
Hi,

I have a similar problem like the one described above (e.g. fancy box not working) with JoomlaJunkie template Mocha.

They use the following:

if ($disable_mootools == "yes") {
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
}

Is there a quick fix to this as well?

BW, ejw
ejw
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1409
Re:Doesn't seem to be working... 8 Years, 7 Months ago Karma: 666
Hello,

Use can use the following:

if ($disable_mootools == "yes")
{
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
if (strpos($key, 'mootools.js') !== false || strpos($key, 'caption.js') !== false) continue;
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
}

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123456