Support Forum

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

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
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
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
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
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

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

Cheers,
Dave
  • DaveOzric's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
:laugh: Thanks Dave, we do try.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
I just tried the code switch and it broke the site.

Sorry to be a pain. :(
  • DaveOzric's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Dave,

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

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Dave,

What was the error message?
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
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's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
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's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
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's Avatar
  • DaveOzric
  • Free Extensions
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
B) 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's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Firstly...Hello!
And secondly, Dave, you're not alone :cheer:

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. :blink:

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's Avatar
  • FranksBank
  • JB Pro
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
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's Avatar
  • FranksBank
  • JB Pro
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
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's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers