13 March 2012 Community Builder Phoca Gallery Plugin
Check out our Community Builder plugin for the Phoca Gallery extension.
12 September 2011 Front Page Slideshow Link Problem
We wrote a quick fix for this. Open up the default.php template file for the FPSS layout you're using. We used JJ-Oobs so we opened up /modules/mod_fpss/tmpl/JJ-Obs/default.php. Right after "foreach($slides as $slide):" insert the following:
26 April 2011 VirtueMart Category Dropdown Module
Rather than writing it as a separate module, I have extended the the normal product categories module to have this as an option in addition to all the other options such as Transmenu, Links List, and so on. This should make it easier to incorporate in the next release since the work's already done.
The following is in use on a site running Joomla 1.5.23 and VirtueMart 1.1.8. You can download VirtueMart here. Download the "complete package", unzip it, and look in the modules directory for mod_product_categories_1.1.8.j15.zip. This is the module that need to be modified.
After making the following modifications, you will need to edit your categories module and set the category display type to "Dropdown select menu".
There are two file modifications and one new file:
- modules/mod_product_categories/mod_product_categories.php (modified)
- modules/mod_product_categories/mod_product_categories.xml (modified)
- modules/mod_virtuemart/vm_select.php (new file).
Paste this into a new file at modules/mod_virtuemart/vm_select.php:
20 April 2011 Phoca Download CommunityBuilder - new 1.6 plugin
We're pleased to announce a new version of our CommunityBuilder Phoca Download plugin. The new version works in both Joomla 1.6 and 1.5, and allows users to edit their files' titles and descriptions, and lets them delete their own files. We are working on adding more refined group-based access controls in the plugin parameters.
The editing interface is still a bit clunky and will also be improved.
11 January 2011 Fixing Itemids for Joomla / K2's tag view
This article is about K2, which works with Joomla.
We created menu items pointing to “generic” tag views. Each tag has its own Itemid, which is fine. However, when you click on “read more” for any of the items on the generic tag page, the ‘read more’ link uses the default K2 Itemid rather than the Itemid of the current page / menu item. This does seem like a bug to me. The read more links should use the Itemids of the current page or at least the menu item that brought the viewer to that ‘read more’ link.
In our case, K2′s default Itemid is 17 (as set in the menu). We also have a menu item for a tag view, with an Itemid of 37.
The ‘read more’ URLs should have been in this format:
.. but were showing up as:
We have written a small override that solved this for us, since I could find no other way to solve this. We dislike core modifications but in this case it seemed to be the only way:
In /components/k2/models/item.php around line 62 (search for “read more link” .. it should be the first one), add this:
28 December 2010 Joomla / K2; disabling modal image popups on some items
We are in the middle of designing a new version of plethoradesign.com using Joomla and K2. Most images in our web design portfolio have a large version that can be clicked and enlarged, but in some cases this was not desirable; for example for logos. There was no way to turn off this feature (not easily anyway), so it was time to add this option to K2.
Thanks to a post over at the K2 Forums, we customized our K2 installation so it is now possible to turn off the popup modal link on an item-by-item basis.
The code in item.php is set up so items will show popup links on images by default, but if the item options have been set to disable the popup, it will not be linked.
08 October 2010 Phoca Download CB Plugin
22 June 2010 Client login for Joomla 1.5 banner component
For the longest time I have been frustrated that the standard banner component doesn't let banner clients login and view theirbanner statistics. I had been using OpenX but it is a resource hog and is really overkill when all I want is to be able to show a client how many clicks they've had so far. I don't want them to just take my word for it.
Well, after trying out various solutions besides OpenX, I thought to myself 2 hours ago, "why can't I just use Contact field in thebanner client area and enter a Joomla username, and then write a custom model for com_banners to display the statistics if the current Joomla user is the same as the one listed as the contact for a client?"
So that's what I did. It is actually two queries. #1 checks the current username and selects all clients with that username (should be just one .. I limited it to one in the query), and selects the correct cid (client id). #2 selects all active banners for a given cid and spits them out, showing the banner, clicks, impressions, and CTR. I also added in some custom HTML to display a PayPal button … ideally this should be done in a View, not a Model, but the Banners component doesn't seem to follow the MVC structure 100% so I didn't either.
I did have to modify a few other files. Here are my modifications – this is on Joomla 1.5.18 but should work for any 1.5 release.
It's as easy as 1-2-3;
Add this after the end of function click():
Note that some older Joomla code might read:
PHP 5 requires:
This is a new file – containing this code:
This is a new file containing this code:
You can then create a link in the User Menu pointing to index.php?option=com_banners&task=bannerstats.
It will detect the current logged-in user's username, check the "contact" field of the banner clients, and select the active banners for that client. Needless to say, the contact field should contain that person's username and nothing else, or it will not work.
In the future maybe there can be a special field allowing us to choose a username or enter one, instead of using the Contact field which is not really meant for that. I had considered making this a separate component, but it is really something I would like to see become part of the regular com_banners component.
Feedback is welcome – as far as I can tell this is secure and works, but others may have a better idea about that.
16 June 2010 Monitoring Joomla for file changes
It is often desirable to monitor a site for file changes, so that you can be alerted to unwanted file changes. Those could indicate hacker activity. There is server-side software that can do this for sites, but since our focus is Joomla, we wanted to take a moment to recommend the Eyesite component: http://extensions.lesarbresdesign.info/eyesite. To get the most out of this, you will need to set up a cron job so that it will email you whenever there are outstanding file changes.
01 June 2010 Find Joomla section ID for article or category
Sometimes when coding a Joomla template it may be handy to know the section ID of the article or category the user is viewing.
Here is some PHP code you could insert in your template to achieve this (for Joomla 1.5);
Using this, you could for example control which graphics or CSS file are loaded depending on the section of the article/category.
Page 1 of 2