Three boxes, two roll over, one falls out
So this is an article to note an oddity when I was working with a Yootheme template called "yoo_sync". Some clever scripts (both mootools and jquery) using the equalize method to make div layers the same height, and in this case, the same width. It isn't so much a miscalculation of 100% divided by 3 that leaves 1 pixel left over, more the fact that the scripts use that 1 pixel (ceiling rather than floor?).
Why?
We have a row on a website of three boxes made of div layers. When viewed normally on a 15" Laptop, all was good using Chrome and tolerable using MS Internet Explorer. If we maximized the Google Chrome browser, the row would split and there would be 2 boxes on the top row and the third would pop under these. As for MSIE, that was ok when maximized.
How?
You could do loads of code hacks which is what I tested but all for nothing because you always end up needing to specify a third of the width.
Warning call_user_func: First argument is expected to be a valid callback
What?
If you get something like the following error:
Warning: call_user_func() [function.call-user-func]: First argument is expected to be a valid callback in /home/.../templates/rt_affinity/rt_sectionrows.php on line 311
How?
- Copy & backup the file /public_html/.../templates/rt_affinity/rt_sectionrows.php
- Find the following piece of code around line 311:
- foreach($this->horizontalCookie[$row] as $block) {
- $block = str_replace('-', '', $block);
- $this->module_row1 .= call_user_func($block, $this, $mClasses);
- }
- And change it to:
- foreach($this->horizontalCookie[$row] as $block) {
- if(!empty($block)) {
- $block = str_replace('-', '', $block);
- $this->module_row1 .= call_user_func($block, $this, $mClasses);
- }
- }
Adding a selectable background to a Yootheme template
- Joomla 2.5.8
- Yootheme Template 2012
What?
For any web-developer who can program in PHP/HTML, this would be easy to hard-code and override. However, the article below demonstrates how to make this an option that your client can switch off/on using the Joomla Admin Panel.
How?
RokDownloads Manager does not list files
I am in the middle of writing a component that will hopefully comprise bug-tracking and download management all in one.
Until then, I thought I'd STFW (google) this issue and post a solution considering that even RocketTheme don't want to share this solution unless we continue to pay for the subscription. Understandable to some extent, greedy in another.
So far the solution has been to open this with Internet Explorer with a cleared-cache. A little annoying in view how much I hate Internet Explorer and it's various versions which only work with particular systems... Do not uninstall/install other modules/components as I believe this is some issue with overloading or with the actual code and you can get to this file manager to work without changing your Joomla! setup.
Watch this space for when I find a definitive answer!
K2 Items disappear
Basically you've woken up this morning, visited your website, and all your K2 articles are gone !!!!
If you login to your Joomla! administration panel (back-end) and look under k2 items, you should get the following error:
- Warning: Invalid argument supplied for foreach() in /home/public_html/administrator/components/com_k2/views/items/tmpl/default.php on line 80
If I went to K2 Comments, I'd get an additional error:
- Warning: Invalid argument supplied for foreach() in /home/public_html/administrator/components/com_k2/views/items/tmpl/default.php on line 80
- Warning: Invalid argument supplied for foreach() in /home/public_html/administrator/components/com_k2/views/comments/tmpl/default.php on line 145

