Developer Blog

31
January
2017

Make dropdown menu items wrap text in Gantry 5

Make dropdown menu items wrap text in Gantry 5

If you have dropdown items that have text hanging off the side like the image below:

gantry 5 menu problem

Add this code to /custom/scss/custom.scss

 

.g-main-nav .g-toplevel > li > .g-menu-item-container, .g-main-nav .g-sublevel > li > .g-menu-item-container {whitespace:normal;}

Categories: Gantry 5

29
July
2016

Fixing open_basedir in Joomla

Many security tools and blogs suggest setting the open_basedir in the php.ini file.  The open_basedir directive "Limits the files that can be accessed by PHP to the specified directory-tree, including the file itself. ... When the file is outside the specified directory-tree, PHP will refuse to access it." *

 

However, it can often trigger the error:

JFolder::create: Path not in open_basedir paths

 

In order to solve this, you have three options:

Categories: Error Fixes, Server Settings, .htaccess, php.ini, Security

12
July
2016

Wrong breadcrumbs in Joomla content

If you have ever had your site's breadcrumbs show totally random entries that have nothing to do with the page you are looking at, this can be a cache issue.  Go to Module Manager and open your Breadcrumbs module (mod_breadcrumb).  On the Advanced tab, change Caching to "No Caching"

Categories: Joomla Core

11
July
2016

Remove duplicates from breadcrumbs in Joomla content

This is a common scenario:  Your single articles show a duplicate breadcrumb when the article doesn't have an associated menu item.  Typically the first one is the menu item for the category blog menu item that the article would fall under.  The second is the category itself.

The reason this happens is that the conditional statement in the template for mod_breadcrumbs checks to see if the LINK of the previous breadcrumb is the same as the LINK for one it is generating.  Since those items I mentioned have different links, it doesn't see them as duplicates. You have to add the condition to see if the NAME is the same as the previous one.  To fix this, 

Categories: Joomla Core

07
July
2016

Removing the Temporary Url ~username out of Your Link after Going Live

Ever used a temporary URL with your IP address like http://xxx.xxx.xxx.xxx/~username when building your site but then had the pesky /~username/ stay in the link after going live?  An example would be looking like http://www.mysite.com/~username/contact-us.  Here are some things to check to fix this:

 

1. Hard-coded links

Check your database to see if you put the /~username/ in your actual links. The quickest way if you are comfortable is to go to phpMyAdmin, select your database and use the SEARCH tab.  This is fastest because it checks all tables at once.  If you don't want to touch that, try NoNumbers DB Replacer and check the content table (introtext and fulltext), modules (content), and menu tables (link) for ~username.

 

2. RewriteBase in .htaccess

Check your .htaccess file (via FTP in root folder) to see if you have it has it in the RewriteBase.  It would look something like:

RewriteBase /~username/

Categories: .htaccess

06
July
2016

Hiding MijoShop sections on Category view using CSS

Sometimes you want to hide sections or images in Mijoshop without using an extension.  Here are some fields.  I will add as I use others in sites:

 

Category Title

.mijoshop.common-home h3:first-of-type {display:none;}

 

Category Image

.mijoshop.common-home h2 + div {display:none;}

Categories: Mijoshop/Opencart

05
July
2016

Hiding Opencart/MijoShop Fields using CSS

Sometimes you want to hide checkout fields or shopping fields in OpenCart/Mijoshop without using an extension.  Here are some fields.  I will add as I use others in sites:

 

Card Issue Number

#payment .form-group:nth-of-type(6) {display:none;}

 

Extra Expiration Date

#payment .form-group:nth-of-type(3) {display:none;}

Categories: Mijoshop/Opencart

04
July
2016

RSForm reloads on submit

RSForm reloads on submit

First of all, ITOctopus has a great blog on this that I recommend looking at.  However, here is one fix you might want to try before going there, since some of their suggestions involve coding.  Because RSForms has all types of issues with caching, if you are using RSForm Module, open the module, go to the ADVANCED tab, and set Caching to No Caching.  Then re-test your form.

 

If that doesn't work, then I suggest...

Categories: RSForms

03
July
2016

Change URL from old folder to new folder

This is when you need to change everything (all content) from an old folder to a new one.  This is different than redirecting just the exact match of the folder.  I had to use this when changing a menu alias to something new and fix all the indexed pages with one line instead of a ton of individual redirects.

RedirectMatch 301 ^/folder-old(.*)$ /folder-new$1

Categories: .htaccess

27
June
2016

Hiding Card Issue Number on PayPal Pro in Opencart/Mijoshop

Add this to your CSS:

#payment .form-group:nth-of-type(6) {display:none;}

Categories: Mijoshop/Opencart

23
June
2016

Hiding extra Expiration Date on PayPal Pro in Opencart/Mijoshop

Add this to your CSS:

#payment .form-group:nth-of-type(3) {display:none;}

Categories: Mijoshop/Opencart

20
June
2016

Fixing Mail Instantiate Error for Joomla/RSForm

 

General

1. Check Global Configuration settings.

a. Make sure sending mail is enabled on site.  Go to Global Configuration->Server and look at Mail section in bottom right.  Make sure the SEND MAIL toggle is set to YES.

b. Make sure other email information is filled in.

 

2. Send Test Email: Go to Global Configuration->Server and look at Mail section in bottom right.  If you do not have access to the email listed, temporarily change it to one you do.  Then hit the new SEND TEST MAIL button added in Joomla 3.x.

 

3. Make sure the email address is valid and a real email address not a distribution list.  You might want to try some other email addresses you have access to determine where the issue is.

 

To test specific mail settings, you need to...

Categories: Email, Joomla Core, RSForms

16
June
2016

Customizing Widgets in YOOtheme's Widgetkit 2.x

Although YOOtheme's documentation says to store customizations in Widgetkit 2.x:

Place your custom content provider in THEME-NAME/widgetkit/content/PROVIDER-NAME/
Place your custom widget plugin in THEME-NAME/widgetkit/widgets/WIDGETPLUGIN-NAME/

http://yootheme.com/widgetkit/documentation/customizing/where-to-store-your-customizations

 

It does not explain WHERE to get the original files to modify.  In Widgetkit 1.5.x, they were in:

media/widgetkit/widgets/WIDGET_NAME/

 

However, I just figured out that in Widgetkit 2.x, they are in:

administrator/components/com_widgetkit/plugins/widgets/WIDGET_NAME/

 

As an example,

Categories: Joomla Extensions, Widgetkit

20
May
2016

Redirect Joomla 1.0 SEF links for Joomla 3.x

Redirect Joomla 1.0 SEF links for Joomla 3.x

When you migrate a site from Joomla 1.0 or Joomla 1.5 you may have hundreds of pages indexed with Google that will be broken links, showing a 404 Page Not Found error.  For SEO, you want to redirect those pages since of having Google remove from the index with your robots.txt.  Here is a redirect to catch all of them.

 

 

Categories: .htaccess

31
July
2014

JomSocial Installer Loop

JomSocial Installer Loop

When upgrading JomSocial one of the sites we manage, it successfully completed but got stuck in an endless loop of the JomSocial installer whenever you tried to go to JomSocial from the menu.  After searching the JomSocial forums, I found a few other people with issue but no clear instructions on how to fix.  After figuring it out, I figured I would throw together a blog to help others (and for when it happens to me again in a few months and I get annoyed that I didn't write down the solution).

To escape the JomSocial installer loop, do these steps:

Written by: Alexis Priddy Categories: Joomla Extensions

[12  >>