Security Tips To Stop Joomla Hackers In Their Tracks

I do a bit of business from time to time when clients call me to clean up broken or hacked Joomla web sites. While the paths the hackers took to get into the system were all different they all boil down to a few basic things. From the moment you first set up your Joomla […]
Continue reading…

 

Upgrading to Joomla 3.x Fatal error: Call to undefined method JRegistry::getValue()

Joomla is a free and open-source content management system (CMS) for publishing web content. It is built on a model–view–controller web application framework that can also be used independently. Joomla 3.x released, if your website joomla verion lower than 2.5 please Upgrade to Joomla 2.5.x or 3.x Upgrading to Joomla 3.x Fatal error: Call to […]
Continue reading…

 

How to installation sh404sef joomla component for SEO (URL friendly)

sh404SEF rewrites Joomla URL to user-friendly format (SEF URL or URL rewriting): mysite.com/index.php?option=com_content&Itemid=69&id=34… becomes mysite.com/en/sh404SEF-and-url-rewriting/list-of-available-plugins.html). It is also a security component. Page title and meta tags manager for every page. With or without .htaccess file. Joomfish compatible. Caching system for high speed and very small DB queries overhead. Support many components natively: VirtueMart, K2, FlexiContent, […]
Continue reading…

 

Converting Joomla Templates for Right to Left (RTL) Languages

There doesn’t seem to be much information around the internet on this subject (well at least not in English), so I thought I’d post my notes here. I’ve been working on a Joomla 1.5 site with a client and they needed an Arabic site put up. I initially tried to do this using Joomfish translation […]
Continue reading…

 

How to install Vinaora Nivo Slider joomla 2.5.x and 3.x

What is Vinaora Nivo Slider Vinaora Nivo Slider is a great slideshow module for Joomla. It allows you to easily create an image slider (slideshow) using Nivo Slider. This javascript slider created by dev7studios and was the world’s most awesome jQuery slider. It also installed on many WordPress websites, too. It’s absolute free to use. […]
Continue reading…

 

How do I upgrade from Joomla! 1.5 to 3.x?

Support for Joomla 1.5 has officially ended. Does that mean your 1.5 site will stop working? No, your site will continue to work as it always has. However, Joomla’s developers will not be releasing new versions for Joomla 1.5, so you won’t be getting bug fixes or security fixes. For this reason, it’s recommended to […]
Continue reading…

 

Joomla Allowed memory size exhausted – Increase php local memory limit without changing server settings.

Certain functions within joomla rely on a high/normal php memory limit. Certain web hosting companys have a very low php memory limit, around 8mb.

Having a low php memory limit can cause problems with accessing the xmap component in the backend, and using the joomfish translation in the backend.

You can check your php memory limit in joomla by going to the help menu and clicking on system info. Click on the php information tab and search for the tem memory_limit

Continue reading…

 

PHP Function Limit Words in a String (joomla article introtext) with array_splice and array_pop

PHP Function Limit Words in a String

Use php function substr() is good solution to cut (limits) the number of characters so result may or may not have ending the word cut-off (not good for your none-latiinh language).

we have some functions to limits the words in a string will better than use substr().

function string_limit_words($string, $word_limit)
{
// $string = strip_tags($string); can use this or not to clean HTML tags
$words = explode(' ', $string, ($word_limit + 1));

if(count($words) > $word_limit) {
array_pop($words);
}

return implode(' ', $words);
}

 

the same another function is:

 

function string_limit_words($string, $word_limit)
{
// $string = strip_tags($string); can use this or not to clean HTML tags
$words = explode(' ', $string, ($word_limit + 1));

if(count($words) > $word_limit) {
array_splice($words);
}

return implode(' ', $words);
}

 

how to use:

# Example Usage

$content = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
echo  string_limit_words($content,20);

Continue reading…

 

Using K2 2.4.1 with sh404SEF – What you need to know

K2 4.2.1 Alias bug [fixed]

If you use the latest version of K2 (as of this writting) with SH404, one thing that you will notice is that the category and item alias is completely disregarded when building the SEF url.  No matter what, K2 will use a URL safe version of the Title instead of the alias.  If you rely on Aliases to craft your URLs then upgrading to K2 can lead to completely broken links.

sh404SEF

This is a recurring question on the K2 forum and one that I ran into when I started using K2.  After some back and forth with the Joomlaworks folks, a fix was made to:

Continue reading…