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


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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... 15 Years, 2 Months ago Karma: 747
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... 15 Years, 2 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... 15 Years, 2 Months ago Karma: 747
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... 15 Years, 2 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... 15 Years, 1 Month 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... 15 Years, 1 Month ago Karma: 747
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