Sep 08
cleveratom website

cleveratom website

The Cleveratom website has been given a new look and a new engine, too! For the last few months we have been relying on Wordpress to drive things along, and whilst it has been OK, it has never been what we wanted. It was better than a static page, but never really did the job we needed. Fortunately, that has all changed today as we moved over to the rather brilliant ‘CMS Made Simple‘ content management system.

If you head over to www.cleveratom.co.uk you will see the new livery and be able to read all about the work that we are doing. There are many things still to add in relating to the projects we are doing, and you can always sign up to the newsletter in order to get more information on a (fairly) regular basis!

Getting a new site up and running is always traumatic in some way, and today we did battle with DNS servers, Nameservers and email records. Sheesh! No doubt we are all the better for the experience!

Mar 11

A recent project required us to create a website for Rochford District Council, Uttlesford District Council and Essex County Council where users would be able to access information relating to public consultations and best practice. Nothing particularly remarkable in that - this is the sort of project that we enjoy doing as it is for a very good purpose and allows a degree of creativity in the design and approach to creating the site.

Continue reading »

Jul 30

It may come as no surprise to some to find that freely available themes have got advertising embedded in them by default. It came as a surprise to me, mind you! I downloaded and installed the Dark Mood V2 wordpress theme by Ed Canape and found that in the footer file there was a PHP function that positioned some adverts. Not rocket science, but I wasn’t happy with the kind of ads that appeared. One was a pay per click affiliate program, one about Asian entertainment (ooer…) and one about Philipine paradises. However, what really ticked me off was the fact that the function had been encoded so as to make it hard to unpick it and remove said adverts.

Of all the encoding methods available to PHP programmers, possibly the best is from Zend. One of the most pointless is gencoder (although free). Luckily, it was gencoder that had been used on this occasion. The file looks like this:

encoded php

Now, as you can see there is no easy way to get into the code and remove the advertising links. However, there are two possibilities.

Firstly, you can create a CSS rule in your stylesheet which sets the footer ‘a’ display to be none:

footer a {
display:none;
}

All this does is remove any clickable links in the footer, but leaves the remaining text. This is at best a workaround, but can get you out of a fix if you are in a hurry.

The second thing to do is decode the file! Again, there are two ways to achieve this, but probably the simplest is to edit the ‘eval’ statement to read ‘print_r’ instead. If you then run the code in your browser you’ll see that it makes a bit of a mess visually, but you can still right click and ‘view source’. What you are looking for is at the bottom of the page:

if((isset($v) AND $v==0) OR (isset($t) AND $t==false)){die('This script is protected by <a style"color:cyan\" href="http://www.gencoder.sf.net\"><b><font color"#330099\">G-Encoder</font></b></a>');}echo "<div id"footer\">n";
echo " Powered by n";
echo " <a href="http://wordpress.org\">WordPress</a>n";
echo " and Design by Ivy's <a href="http://www.rubberstampguides.com/\">Rubber Stamp</a> n";
echo " Guiden";
echo " <p><a href="http://www.kirrhi.com/\">Pay Per Click Affiliate Program</a> | <a href="http://yeinjee.com/asianpop/tag/asian-entertainment/\">Asia Entertainment</a> | <a href="http://www.paradise-philippines.biz/\">Paradise Philippines</a></div>n";
echo "</div>n";
echo "n";
echo " <?php wp_footer(); ?>n";
echo "n";
echo "</body>n";
echo "</html>n";

Now you can see the code more clearly, and you can easily see what needs to happen. The last four lines are all you need… in fact, one of those can be deleted! What you really need is the call to the wordpress footer routines and to close the body tag and close the html. This is all that is necessary to complete the footer file in wordpress. Armed with this knowledge, go back and change the ‘print_r’ statement if you like, but better yet, just delete all of that guff. In it’s place simply add the following few lines of code. You can leave out the ‘div’ tags if they are not needed:

<div class="footer">
<?php wp_footer(); ?>
</div>
</body>
</html>

and that’s it. Save the file and you have got yourself an advert free footer space on your wordpress blog.

Thanks (as ever) to Alex Blanc for his timely and ultimately very simple solution to the problem, and no thanks whatsoever to the person who decided to a) put adverts in the footer, and b) encode them at all. I believe each person needs to have the right to choose whether to display adverts, and in this case I chose most strongly not to!

Jul 03

yellowswordfish

At last, I seem to have found a decent set of forum tools that plugs directly into wordpress! I have been looking for something that gives me some of the functionality of PHPbb but uses the Wordpress user table in the database. Following a link to YellowSwordfish I happened across ’sf-forum’.

I have since installed it on this blog, and you can get to it by following the ‘Forum’ links in the menu bar. It allows me to establish forum groups visible only to specific users or set up different ones open to public access. Currently, if you visit the page you will be able to see three forums related to the work I do as part of Cleveratom Limited. However, if you sign up to the site you’ll also see (as a subscriber) another forum dedicated to DVD technologies. Now, none of these are particularly high profile things for me to broadcast, but they do illustrate the power of the simple forum plug in.

The only caveat I would suggest is that to get the forum to appear you need to be sure that your page names match your database names - it took a few minutes for this to sink in and at first I was thinking I had not managed to get a decent forum… but hold fast! Get those names right and it appears beautifully.

Many thanks to Andy (I think) at yellow swordfish - a brilliant little plug in with lots of versatility.

Jun 23

jaws.pngLately, we have been looking at different types of CMS available and trying to evaluate the strengths and weaknesses of each. It’s a tough task as you can imagine. However, for one reason or another Jaws has risen to the surface as a strong leader. It is still relatively new, of course and as such may not yet have the refinements of systems like Drupal, but it does have a relatively simple user interface which counts for a lot in my book. Sadly, the immaturity of the platform and the relative recency of its appearance means that there isn’t a great deal of useful information for those wishing to develop for it. As an example, try finding any information of any great depth about building a ‘gadget’. Sure, there is the meagre documentation and yes, there are plenty of gadgets which you could deconstruct, but what is needed is a reasonably detailed description of how these puppies hang together in the first place! Damian (Cleveratom employee no.4) has been looking into all this but it is tough one to crack. Using IRC he managed to chat to one of the core developers for a little bit of info, but not enough to get him really underway. So - does anyone have a good understanding of how gadgets are made for Jaws, and would you be willing to share it?