Tuesday 10 May 2016

Ordering Facebook Albums using Drag and Drop

I use quite a few great components including FJBAlbum to import my facebook fanpage albums to my Joomla Sites (J2.5+ J3+ and J3.5+)::

This Joomla extension displays Facebook Page (also called Fanpage) albums into your Joomla website. Use the powerful servers of Facebook to host and administer your photos and use this extension to display them on your site. You can display single album view (menu or module) or 2 level gallery view (only menu)

Sometimes there is an issue bringing the albums in the order I would like them, I may want them ordered via facebook and as the drag and drop function doesn't appear to work anymore I could no longer re-order them.

However I found a work around to re-order facebook page albums using drag and drop function that no longer works when you view your albums

https://www.facebook.com/media/albums/?id=YourFanPageIDgoesHere


replace YourFanPageIDgoesHere  with your fan page id number

The easiest way to find your Facebook Fan Page Id is to go here:

http://findmyfbid.com/

Example:

I want to know my page id so I go to http://findmyfbid.com/

I enter my facebook fanpage url  http://facebook.com/notrees

then my fan page id is found
 253582761350485
so I edit this url

https://www.facebook.com/media/albums/?id=YourFanPageIDgoesHere

and replace YourFanPageIDgoesHere  with my fan page id number

https://www.facebook.com/media/albums/?id=253582761350485

Once I have done this I can drag and drop the album thumbnail covers into order easily

How to re-order personal profile facebook albums using drag and drop function that no longer works when you view your albums

Use this link

https://www.facebook.com/media/albums/

then drag and drop your albums via their thumbnail covers in order.

I hope this helps.

Thursday 25 July 2013

Joomla 2.5 Installation Security Check List

After many years of installing & customising Joomla websites I thought it might be useful to share some tips on Security:

  • When installing make sure you don't use the default jos_ table prefix for your joomla database, rename this via phpMyAdmin if necessary .
  • Never use the default Super Admin username of "admin" always change this to something else less predictable.
  • Never use the user ID: 42, either change the user ID via phpMyAdmin, or demote this user to registered and then select "block this user" via Joomla user manager.
  • Redirect the admin url to something other than /administrator/, you can do this via a .htaccess redirect, although their are plenty of great extensions out there that will aid in securing the url of your admin panel from potential hack attempts.  Jsecure Authentication is one I highly recommend, this component with allow you to choose the new admin panel address
    • i.e. /administrator/?whateveryouwant!
  • Check and change your chmod settings to:
    • directories should be 755
    • files should be 644
    • configuration.php file should be 444
    • use an ftp client like filezilla or your hosting panel file manager to change the settings
    • I prefer to install and use akeeba admin tools (lots of other great security features including WAF)
  • Avoid using ftp in Global Configuration via Joomla admin panel.
  • Set show Joomla version to "No" in Global Configuration via Joomla admin panel.
  • Ensure that all sensitive files are outside the web root.
I will add to this list as I think of others, most of them are second nature to me.  Please feel free to make comments or add suggestions to this list!

Thursday 27 September 2012

PHP.ini

So you have installed Joomla 2.5, 3.+ or 3.5+ and under "Extension Manager: Warnings" you get the following error:



The PHP temporary directory is not set
The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.

You can use one of the fixes below:

If you have access to your httpd.conf file

Add your temp directory to it, it will look something like this:

php_value upload_tmp_dir = /my/path/to/my/websites/home/dir/tmp

This is the full home directory path to your joomla site, with the '/tmp' added
Note: Replace my sample path with yours

If you have access to your php.ini file the add the following line:

Add your temp directory to it, it will look something like this:


upload_tmp_dir = /home/accountname/public_html/tmp

Note: Replace my sample path with yours



You are on a shared hosting environment and you don't have access to the http.conf file, or don't have a php.ini file, then do the following:




1. Create a php.ini file in the /administrator/ directory of your Joomla web site
2. Add your temp directory to it, it will look something like this:

upload_tmp_dir = /home/accountname/public_html/tmp

Replace my sample path with yours

3. Add a line to your .htaccess file telling your site to use the php.ini file. Add this line:

SetEnv PHPRC /home/accountname/public_html/administrator/

Note: Replace my sample path with yours


Now login to your admin panel, and the warning should be gone!