Welcome, Guest

Re: (Jquery?) conflict with Joomla 1.6 Template Styles
(1 viewing) (1) Guest


Posting guidelines
To help us help you faster please ensure that you include the following details in your forum post:
- A link to your site (you can create a support ticket if you need to provide us with confidential information.
- Please ensure that css and javascript compression is disabled in your template settings.
- Please ensure that you have checked the change log and your template and extension are up to date.
- Please search the forum to see if your answer has already been asked before.
- Please ensure that you only post your request in either the forum or ticket system but not both.
- Please only post in an existing thread if your issue is exactly the same as the one being discussed in the thread.

TOPIC: Re: (Jquery?) conflict with Joomla 1.6 Template Styles

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53061

Hello,

I have this plugin installed and cannot change template styles for individual pages with it enabled. Mine is a test site I installed just for this purpose and it was the second thing I installed. As soon as I did the template assignment stopped working. No settings within the plugin would fix it, just disabling it.

Second question. The changelog lists jblibrary as 1.6/1.7 but there are 2 separate downloads and versions. I am confused by that.

Thank you
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53074

Hi Dave,

Which template are you using?

I can't think of any interference rendered by JB LIbrary on that Joomla function.

Can you point to your site perhaps?

We are phasing out J1.6 downloads so best to install the latest 1.7 now since 1.6 has reached its end of life.

Thanks Anthony
Creative Unique Minimal Joomla Templates

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53111

It is affecting any site with it enabled and templates assigned. Like I said a fresh install using only default templates creates this issue.

The other sites are Artisteer templates, but not on the test site.

I cannot upgrade some sites until all 1.7 extensions are available.

spiralmind.org/

The Home and Test pages are supposed to be different templates. Work fine with the plugin disabled. It is enabled now.

What else could it be? Server? Can't imagine though. It's a VPS

Thanks
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53117

Hi Dave,

Thanks for that - strange behaviour indeed.

Ive added it to the tracker and have a temporary fix for you.

if you open the plugins > system > jblibrary > jblibrary.php file and change the following:

        if (is_array($selectedMenus)){
            $menus = $selectedMenus;
        } elseif (is_string($selectedMenus) && $selectedMenus!=''){
            $menus[] = $selectedMenus;
        } elseif ($selectedMenus == ''){
            $menus[] = $itemid;
        }


to

        if (is_array($selectedMenus)){
            $menus = $selectedMenus;
        } elseif (is_string($selectedMenus) && $selectedMenus!=''){
            $menus[] = $selectedMenus;
        } elseif ($selectedMenus == ''){
             $menus[] = $selectedMenus;
        }


That will fix the issue for you.

Ill get an official release out this afternoon.

Thanks Anthony
Creative Unique Minimal Joomla Templates

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53128

Hi Anthony,

Thanks for your help. You have some great extensions and support here.

Cheers,
Dave
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53133

Thanks Dave, we do try.
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53234

Will the new version be updated in the changelog? I haven't tried adding the code yet, but am adding this plugin to a bunch of sites by the end of the month.

Thanks!
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53246

I just tried the code switch and it broke the site.

Sorry to be a pain.
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53266

Hi Dave,

Prob need more info for this - what do you mean broke your site?

Anthony
Creative Unique Minimal Joomla Templates

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53457

Sorry about that. After changing the code all pages were just white with an error message.

I am going to try to upgrade the site to 1.7 and use that version.

Thanks
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53482

Hi Dave,

What was the error message?
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53504

I updated my site to 1.7 and installed the appropriate version of JB library and it is still not letting me use assigned templates.

No one else having this problem? Even on a clean install it does this.

If you can work this out that's fine, if not that's fine too.

Thanks
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53512

The error message would be a real help here; it will indicate the cause of the problem which will enable us to come up with a solution
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53517

Thanks for all your help.

I will change the code again to see what the error message is. My 2 questions are is the above code change valid for the 1.7 version too. When I changed the code the first time there were 2 places that matched what you said. I used Dreamweaver to find and replace. Are there 2 or which one should I be changing?

thanks
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53539

Hi Dave,

Yes, the code indicated should be valid for both versions, but that whole section shoudl only appear once in that file. Let us know about the error message.
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53631

OK, this time I only found 1 instance of that code and replaced it. Now it works fine!

Thanks for the help. Really great support here.

Is this something you will update in a new release or am I the only one?

Thanks again!
  • DaveOzric
  • OFFLINE
  • Free Extensions
  • Posts: 14
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 9 months ago #53638

Glad that got it sorted for you. Yes, the fix will be included in all new releases moving forward.

Thanks for the kind words.
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 8 months ago #54053

Firstly...Hello!
And secondly, Dave, you're not alone

Very grateful for any further advice if possible on this issue as I downloaded the Library Plugin today, along with the rather brilliant jTweet Module, and experienced the exact same problem.

Thankfully I found this thread and swapped in the code mentioned a few post above (Thanks Seth) which sorted out the template issues. But... (just when you thought it was safe to go back in the browser...)

It broke jTweet! Where previously the Tweet entries were appearing in all their newly styled glory on the page, now I'm left with just 'Follow me on Twitter' and a certain little bluebird - no Tweets. Actually, exactly the same as it was when I first put jTweet in and had forgotten to install the Library Plugin.

Many thanks for any advice you can offer

The template I'm using is one I've put together myself, but as I'm no genius it's very (very) basic. I'm working on the site locally at the moment although if it'll help to see the page in question I can do all the same work on the web server and provide a link to it.

And when that's done, I'll be wanting to get rid of the '1' next to each Tweet; but that's for another day

Oh, by the way, I'm working with J1.7

Cheers,
Frank
  • FranksBank
  • OFFLINE
  • Fresh Bamboo
  • Posts: 8
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 8 months ago #54054

A quick addition: If I reverse the change to jblibrary.php, the Tweets come back (but obviously the templates are scuppered again) so there is a definite cause/effect linked to that small piece of code (I assume?)
  • FranksBank
  • OFFLINE
  • Fresh Bamboo
  • Posts: 8
  • Karma: 0

Re: (Jquery?) conflict with Joomla 1.6 Template Styles 1 year, 8 months ago #54057

Hi Frank,
Have you got anyhting else, another extension or possibly the template, that is loading jQuery? You can try setting 'enable unique' in JB Library to see if that fixes it.
  • Seth
  • OFFLINE
  • Moderator
  • Posts: 8401
  • Karma: 200
Internet Inspired! - Creative Websites (and freelance websmithing!)
Time to create page: 0.69 seconds