Friday, 29 October 2010

Monthly SEO plan for Mint Condition Mobile Car Valet.

A new business in Bournemouth has been set up by Sean Brinkman in the field of Mobile Car valet.  As well as a basic site set up advertising his new businesses this will also be the first one that I be setting up on a 'Basic SEO advertising package'  with the aim to increase month by month the website standings on Search Engines such as Google, Yahoo and Bing.

Every month I will be making a new site map for the site and submitting it to the forementioned search engines.

Tips: There should be some unique content on the front page of this site  at every month but ideally at least every week.  You can use your twitter and facebook feeds to deliver this content.

Month 1 : The initial pages are set up with meta tags information for these key words.
Set up of google analytics.
Here are the main pages




Month 2: Business Places set up on Google.

Month 3: Pages for an extended list of key words.

Month 4:  Is it worth expanding your net so that your keywords can be found in other languages. thanks to translation sites this work can be done quickly.

Thursday, 30 September 2010

Display external remote HTML in a Joomla Template

This document is a little more general than having to be for Joomla.  It should work in any PHP environment.
What I'm wanting to do is have one file that I can change externally that I can display the HTML from on all of my sites .  Heres the code

 $filename = "http://www.yourdomain.com/linksfooter.php";
       $handle = fopen($filename, "r");    

$contents = stream_get_contents($handle);
fclose($handle);

echo $contents;
            ?>

Thursday, 16 September 2010

lost XML-Sitemap password

On many of the larger sites I'm doing I'm using the unlimited version of XML-Sitemap.  However with this version when you login your presented with a username and password option. If you've lost/forgotten it then heres a solution

modify generator/data/generator.conf

find:
   < option name="xs_login" >........< /option >
   < option name="xs_password" >.........< /option >

Tuesday, 14 September 2010

Joomla Image only menus

This is something you'd think would be supported in the standard installation of Joomla but it's not, and that's the abililty to be able to show images only menus.  For this the simplist way is to install this module -> Joomla image only menus

Job done :)

Thursday, 2 September 2010

Failed attempts to get to download from an IMAP server to Outlook Express

Currently we have all out mail on an IMAP server but would like to be able to take it all somewhere else.  To achieve this the method I am using is to download it to outlook express and then save it from there.  

The only problem being when trying to do so I was getting this error

PLAIN * authentication failed. None of the authentication methods supported by your IMAP server (if any) are supported on this computer.



This is how I solved the problem 


Firslty I had a clean up of the computer and made a bit more space.  To know avail.

Secondly I used ctrl - alt - delete and shut down proccesses going on the background that where taking up a lot of CPU usage. 

SUCCESS :))

Sunday, 29 August 2010

how do I run printhead cleaning program on the HP Deskjet F2200

hp f2200 clean printer head


After buying a printer cartridge for my HP Deskjet F2200 from PrinterBasics on ebay, I found that eventhough the printer reconised the cartridge it would still not print.

The buyer writes this in their help.


What if the printer recongnises the cartridge but won't print?


printerbasics: Try running the printhead cleaning program on these cartridges. This process will clean the heads and also push the ink through and should hopefully resolve this problem for you. We recommend that you do this 3 to 4 times for best results.


The question then is how do we do that?  here's the answer.


 I'm using Microsoft Word to print my documents.  So here's what I needed to do.


in Microsoft Word

>> click on file

>> scroll down and click on print

>> go to the features tab

>> at the bottom find the button 'Printer Services' click on it

>> in the 'device services' tab - go down to 'Clean the Print Cartridge'


>> I need to run this a couple of times to get the print to go through.

Monday, 23 August 2010

Virtuemart Related Product problem and hacked solution.

It seems to be a common problem with Virtuemart that when adding or editing products if you go to the 'related products' tab - then use the drop down list to search for the products you wish to add - then you get either nothing or an incomplete list. 

There's a few solutions to try on this post https://forum.virtuemart.net/index.php?topic=42558.msg135503   however none of these worked for me.  As I am on a limited budget for the projects I have quickly knocked together a tool that help me apply all the related products I needed quickly.  with extra time it would be prefferable to intergrate this tool into Joomla itself. If anyone wants to sponsor me to do so then let me know. Otherwise this was a five minute ugly fix ;)  

I have a folder which I used to run batch mysql tasks needed for when I transffered over a store from 'ruby on the rails' - In this folder i have a config.php file in the folder 'includes'  -

in here you'll need to add your details for connection

#################config.php#########################

//Database connection info
$hostname = "localhost";
$username = "mysqlusername";
$password = "mysqlpsswrd";
$dbName = "mysqldatabasename";
MYSQL_CONNECT($hostname, $username, $password) OR DIE("Unable to connect to database");
@mysql_select_db( "$dbName") or die( "Unable to select database");
 

####################################################



then I wrote the following page - that lets me update a product.  

############################add_related_products.php#############################

include ("includes/config.php");

if (isset($_POST['add_related_products']))
{

$product_id = $_POST['product_id'];
$related_products = $_POST['related_id1'];
$related_id2 = $_POST['related_id2'];
$related_id3 = $_POST['related_id3'];
$related_id4 = $_POST['related_id4'];

if ($related_id2 !=NULL) {

$related_products .= '|'.$related_id2;

}

if ($related_id3 !=NULL) {

$related_products .= '|'.$related_id3;

}

if ($related_id4 !=NULL) {

$related_products .= '|'.$related_id4;

}



$sql = "INSERT INTO jos_vm_product_relations (product_id, related_products) VALUES ('$product_id', '$related_products')";

$runsql = mysql_query($sql);



echo 'this sql statement has been run -
'.$sql.'

';


}
else {

echo 'Add related products to another product fill in the following details
<br> <BR>';
echo '
<form method="post" action="'.$_SERVER['PHP_SELF'].'">';
echo '
<input type="hidden" name="add_related_products" value="TRUE">';
echo '
<input type="text" name="product_id" value="product id"<br>';
echo '
<input type="text" name="related_id1" value="related id 1"<br>';
echo '
<input type="text" name="related_id2" value="related id 2"<br>';
echo '
<input type="text" name="related_id3" value="related id 3"<br>';
echo '
<input type="text" name="related_id4" value="related id 4"<br>';
echo '
<input type="submit" value="Submit">
</form>';
}






?>


and it does what i need it to, so i hope this helps someone else.