Category Archives: Joomla

JoomGallery Element Width

Have you always wondered why the heck your thumbnails always defaults to around 99%? It’s because it’s set to 99 all the time! Now I have no idea why they did that. But as far as I’m concerned, it should be 100 divide by your number of columns. AGAIN, not 99/$numcols.

Go to interface.php and change it to the following.

$elem_width =  floor(100 / $numcols);

Done!

How to add new jQuery versions/links to JB’s plg_jdlibrary plugin

So I’ve been using Joomla Bamboo’s jQuery plugin for all my Joomla installations now since it makes it easier for me to specify which jQuery version so use. However, there’s something lacking after you download the plugin and that is the ability to add 3rd party hosted jQuery plugins. The only options you have are your local install (same location as your Joomla install) and Google’s FREE CDN hosted jQuery. Also, the latest version you can use with their plugin is 1.4.2 (IIRC). At the time of this blog post, the latest jQuery version is at 1.5.2 already and there’s already a lot of bug fixes done. As a webmaster you always want to have your JavaScript  libraries up-to-date just in-case someone discovers a 0day exploit you know.

Anyway, there were two things I wanted to do. One is to be able to use my own jQuery files hosted in Google (not the one’s Google hosts – google-cdn.joinpgn.com) and second, the latest jQuery 1.5.2. So…let’s get it on shall we?

Continue reading

jConnector and Joomla 1.5.X Infinite Refresh Solution

If you’re using WebScribble’s jConnector module for Joomla 1.5.x and you’re one of the unlucky website owners to have the infinite refresh problem (doesn’t affect FireFox usesrs). Then this is the solution you’re looking for! Thanks to styleware from the WebScribble forums as he was able to figure out the cost of the problem which is running jConnector and Joomla SEF URLs. jConnector’s tmpl/default.php file has the incorrect path. So all you have to do is look for the following line…

Continue reading

Reducing the Amount of Joomla Queries

So I’ve been obsessed with this for a few weeks now ever since I discovered that PGN’s  frontpage generates more than 350+ queries after turning on the debug mode for Joomla. I was literally shocked because when PGN was still using Joomla 1.0.x it was only using around 100+ queries and here I am thinking that Joomla 1.5.x was better right? Anyway, I tried to figure out what’s causing this massive amount of queries. My first thought would be the SEF component that I’m using which. After disabling it, queries went down by half. So my second guess would be that Joomla’s SEF is generating those queries since obviously my 3rd party SEF manager was generating more right? So I turned it off and queries has gone down to just 120+. So I was already satisfied because it was close to the old website’s amount of queries. Then I told myself, well I can’t really run a live website like this right? I mean the URLs are ugly so I had to turn everything back on and figure out how.

So here’s my initial steps…oh and you’d be surprised at the end too. Enjoy!

3rd party SEF turned on – 331 queries logged

3rd party SEF turned on with Permanent Cache – 145 queries logged

Cache Settings (not the system cache) turned on – 53 queries logged

Did it reduce page load time? I’m not really sure I can feel any difference. It still loads fast for me.