Menu problems

Phoca Download - download manager
eebee
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Sep 2013, 08:17

Menu problems

Post by eebee »

Hi Jan!

I found a little problem on my site with PhocaDownload. When I just enter the file archive, it lloks just fine, but when I enter one of the categories or files there, all of my subobjects in the top menu displays.

Root of archive:
http://sff2.governor.se/index.php/fakta ... umentarkiv

Category:
http://sff2.governor.se/index.php/fakta ... kument2014

Can it be something related to the component or is it only in the template? We're stuck finding why..

/ Emil
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu problems

Post by Jan »

Hi, I see, hard to say, but maybe yes. I think, testing it with another template does not make any sense, as another template does not have any such menu.

In Firebug, I have disables all the styles loaded by Phoca Download, so there is no conflict as the site is the same after deactivation of all three Phoca Download CSS files.

But I see some javascript errors (check the javascript console in firebug, e.g.) so this can be the problem.

What happen when you disable the preview button in Phoca Download?

Jan
If you find Phoca extensions useful, please support the project
eebee
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Sep 2013, 08:17

Re: Menu problems

Post by eebee »

Hi!

Sorry for the late reply..
I had the preview disabled already. It didn't matter.. I'm a little desperate here, and I cannot figure this out. Debugging javascript ani't my speciality.. ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu problems

Post by Jan »

Can you disable the "detail" too?
If you find Phoca extensions useful, please support the project
eebee
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Sep 2013, 08:17

Re: Menu problems

Post by eebee »

Hi!
Turned off just about everything, still nothing.
It's so strange, I've only got this on these pages under phoca download, not in the top page and not in any other components or pages.
First error I've got is 'module' is undefined (bootstrap-transition). I've really got no idea what to do with that. It also looked like squeezebox wasn't defined.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu problems

Post by Jan »

There are the following javascript errors on the site:

ReferenceError: Hash is not defined
http://sff2.governor.se/media/system/js/modal.js
Line 7

ReferenceError: module is not defined
http://sff2.governor.se/templates/webbr ... hp?b=1&v=1
Line 193

TypeError: SqueezeBox is undefined
http://sff2.governor.se/index.php/fakta ... kument2014
Line 29

Seems like the modal is somehow in conflict with the template.

Try to test, open this file:
components\com_phocadownload\views\category\view.html.php

line cca 124:

FROM:

Code: Select all

JHTML::_('behavior.modal', 'a.pd-modal-button');
TO:

Code: Select all

//JHTML::_('behavior.modal', 'a.pd-modal-button');
Jan
If you find Phoca extensions useful, please support the project
eebee
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Sep 2013, 08:17

Re: Menu problems

Post by eebee »

Hi!

That did remove the menu problem. Can it mess up something else to remove that line?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu problems

Post by Jan »

Hi, in fact, you need to discover it :-) The modal is used when you use e.g. file view in modal box. If not then I think, it is not needed.

Jan
If you find Phoca extensions useful, please support the project
Post Reply