Tag Archives: image

New Version of 'MiniShowCase Administration' coming – any enhancement requests

I am working on adding some features to the MiniShowCase Administration, like better user management, better image scaling options and better description management.

If anyone has any ideas or enhancement requests, please post a comment below, or to be notified via email when the next version is released, send me an email to: sheldon[at]lendrum.co.nz

CodeIgniter & Spaw Editor

I have released an updated version at http://sheldon.lendrum.co.nz/codeigniter-spaw-editor-tabs_411/10/. This new version allows CodeIgniter and SPAW TABS !

Recently I have been working on a large project for a National Sporting team, It has been a process and it is almost finished.
As part of this system, we have developed an extended custom content management system.

Finding a WYSIWYG Editor for these types of sites is a tricky thing. Your editor of choice needs to be complex enough to let the user Manage their site, but not too hard that they can’t and don’t manage it, yet not give them so many options that your beautiful design gets listed on some of the ‘worst’ design sites due to ‘Crazy Customisation’, bright, huge highlighted words, 5mb images on every page and so on… like a ‘Client goes Crazy’ Video.

WordPress uses TinyMCE editor from MoxieCode, which is what we first implemented, but the design agency requested that they can add inline images in to the content. ( Bad thoughts crept in to my mind of a horror site coming out ) but I decided this would be a nesscarry change.

I went back to an old faithful that Ryan & I have used for years on other CMS’s.
The issue with this is it uses it’s own class, and interferes with CodeIgniter, the PHP FRamework that we are developing this site in.

After some googling, I found a solution on the CodeIgniter Wiki. After installing it, I first found I needed some small customizations, and that it wasn’t a new version, and didn’t have Safari support, which both us developers, and the advertising agency use. So I went to work on repackaging SPAW 2.0.8.1 for CodeIgniter with a few extra plugins.

Download it for free and let me know how it works :)
check the new version with TABS
[download#6]

Preventing Image theft with Apache's .htaccess

Do you have an image or images that people are using on their site, Not giving you the credit for your artwork and using your bandwidth?

With a simple .htaccess on your Apache server you can prevent Image HotLinking.

In your Images Directory, or in your mail web root if you have multiple image areas create a .htaccess file. If you already have one, we can just append the following code in to that.

Insert this in to your file.

RewriteEngine On
# REPLACE lendrum\.co.nz WITH YOUR DOMAIN NAME
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?lendrum\.co\.nz/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]

This will send a 403- Forbidden message to all external sites calling your images.

You can allow multiple domains to access the images if you have more pointing to your site, or want certain sites to use your images.

RewriteCond %{HTTP_REFERER} !^http://(.+\.)?lendrum\.co\.nz/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?inboxdesign\.co\.nz/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?apple\.co\.nz/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?apple\.com/ [NC]

If you want to send a different image, rather than a 403 error you can change the last line to this: But this is almost defeating the purpose, but it will let the visitors on the other sites know that the webmaster is an image thief

RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/DoNotSteelMyImages.jpg [L]

Simple :)

Note: This will only work on Apache Servers.