Search i-r-paulus

Close Panel
Archive

Archive (20)

I used to have a website called www.givemeajobsoicanmovetocanada.co.uk - I spent a lot of time on the website, writing tutorials and sharing Joomla! modules and plugins that I'd written, then some people messed up the economy and it meant I had to spend longer dealing with other issues, and then because I was dealing with other issues, I let my guard down, and my website was hacked :(

Since then, I've tried to rebuild the website ... with little success ... then I just thought  "A change is as good as a rest" ... and I decided to consolidate everything into this website ...

So, this is the section where you can read all about how to setup the modules I wrote for Joomla! 1.5 and 1.6 and how to do several other things that might come in useful :)

I've now given up trying to get to Canada ... ditched by my girlfriend and left pretty much penniless, I've had to take any job I can to make ends meet, so it's fairly unlikely that any of my old modules will ever get updated ... but if you really, really want me to help out with anything, feel free to let me know ...

Children categories

Server Stuff

Server Stuff (2)

I'm no expert when it comes to Servers, but I've tinkered with websites enough to know how to set things up, how to tweak settings and how not to make the same mistakes I did!

These tutorials will hopefully help you avoid pitfalls and get you started.

View items...
Joomla!

Joomla! (17)

This is where you will find my archived tutorials on Joomla! - that is Joomla! 1.5 and 1.6

No updates for the latest versions of Joomla! I'm afraid :(

Little too busy with other things ... If you can't find what you are looking for, contact me and I'll trawl through my archives!

 

 

View items...
PHP

PHP (1)

More archived tutorials - this time using PHP in Joomla! websites and in those sites that don't use Joomla!

 

View items...

{definitionbot=disable}

You might have seen my Joomla module that allows you to place your Skype status in your webpages, but you might be thinking 'well, thats great but I don't have a Joomla website' - if this is the case, but you do have a php processor on your server, then this is for you ...

Hopefully, this will give you the basics of integrating your own images into your website - if you don't have php, then I can't imagine it's too difficult to convert :)

If you are a bit impatient, like me, then you can download all the files you will need over in my Downloads section - and alter the Skype name in the file transparent_skype.php and you are away - or the file transparent_skype_styled.php if you choose to download the file with a bit more panache.

If you are feeling a little more sedate, and want a more in depth tutorial ... please continue ...

Firstly, I should say that I got a lot of my ideas and inspiration from the following sources, and their musings on the subject are well worth look at further:

Building a custom Skype-me button with status icon - an article from the personal blog of Nicolò Volpato that helped put me on the right track :)

Smarty skype status function plugin - a plugin for the Smarty (Template Engine) that helped with the cURL setup.

Skype Status Class - A PHP class from the brilliant http://www.phpclasses.org/ - this class written by lubosdz.  You have to register at PHP Classes, but it is a fantastic resource.

There were several other sources I employed, but I can't find those at the moment :( I will add to the list above as soon as I find the references!

Anyway - lets start with the complete php file (in the download I have called it transparent_skype.php)

{codecitation class="brush: php; gutter: true;" width="450px"}<?php
//Basic php version for sayeed_vir
//This checks to see you have curl installed
if (function_exists('curl_init')) {

  $cUrl = curl_init();
 //replace hippynerdywebdude with your Skype name in the next line
  curl_setopt($cUrl, CURLOPT_URL, 'http://mystatus.skype.com/hippynerdywebdude.num');
  curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($cUrl, CURLOPT_TIMEOUT, 5);
 //Grab the status code sent from skype
  $status_code = trim(curl_exec($cUrl));
 //close our curl connection
  curl_close($cUrl);

  $status_code = intval($status_code);
  //For error testing
  //echo $status_code;
  
  //Dependant on the code returned - we change the image displayed
 //You need to change all references to 'hippynerdywebdude' to your own Skype username
 //You need to change all references to the folder skype_images below to the name of your folder that
 //Contains the png's you have that relate to each of the codes
 //or put your images in a folder called skype_images :)

      if ($status_code =='0'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/unknown.png" alt="call hippynerdywebdude" /></a>';
   }

    if ($status_code =='1'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/offline.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='2'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/online.png" alt="call hippynerdywebdude" /></a>';  
   }

    if ($status_code =='3'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/away.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='4'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/not_available.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='5'){
       $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/do_not_disturb.png" alt="call hippynerdywebdude" /></a>';   
   }
    if ($status_code =='6'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/offline.png" alt="call hippynerdywebdude" /></a>';   
   }
    
   if ($status_code =='7'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/skype_me.png" alt="call hippynerdywebdude" /></a>';
   }           
 
  
//print out the result
//Add any extra formatting here - styling or text before outputting the result
echo $skype_render;

}else {

$skype_render = "You do not have the cURL library installed - Contact your Hosting Company";
echo $skype_render;
}
?>{/codecitation}

Just in case you are only interested in how to do this, and not how it works, lets get the results out of the way ...

You end up with the following ...

The unstyled result

Obviously this has not had any styling, and it's a little difficult to see if the transparent part has worked, so I decided to upload another version, in which I have added a little styling to show what can be achieved :)

The code for the styled version is below:

{codecitation class="brush: php; gutter: true;" width="450px"}<?php
//Formatted Version for php non-Joomla sites
//This checks to see you have curl installed
if (function_exists('curl_init')) {

  $cUrl = curl_init();
 //replace hippynerdywebdude with your Skype name in the next line
  curl_setopt($cUrl, CURLOPT_URL, 'http://mystatus.skype.com/hippynerdywebdude.num');
  curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($cUrl, CURLOPT_TIMEOUT, 5);
 //Grab the status code sent from skype
  $status_code = trim(curl_exec($cUrl));
 //close our curl connection
  curl_close($cUrl);

  $status_code = intval($status_code);
  //For error testing
  //echo $status_code;
  
  //Dependant on the code returned - we change the image displayed
 //You need to change all references to 'hippynerdywebdude' to your own Skype username
 //You need to change all references to the folder skype_images below to the name of your folder that
 //Contains the png's you have that relate to each of the codes
 //or put your images in a folder called skype_images :)

      if ($status_code =='0'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/unknown.png" alt="call hippynerdywebdude" /></a>';
   }

    if ($status_code =='1'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/offline.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='2'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/online.png" alt="call hippynerdywebdude" /></a>';  
   }

    if ($status_code =='3'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/away.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='4'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/not_available.png" alt="call hippynerdywebdude" /></a>';
   }
 
    if ($status_code =='5'){
       $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/do_not_disturb.png" alt="call hippynerdywebdude" /></a>';   
   }
    if ($status_code =='6'){
      $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/offline.png" alt="call hippynerdywebdude" /></a>';   
   }
    
   if ($status_code =='7'){
        $skype_render = $skype_render.'<a href="skype:hippynerdywebdude?call"><img src="skype_images/skype_me.png" alt="call hippynerdywebdude" /></a>';
   } 
}else {

$skype_render = "This is where your Skype Status Button should be - if you are reading this - you do not have curl installed :)";
}
         

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML>
<HEAD>
<TITLE>An Example of using Transparent and/or custom images for Skype Status</TITLE>

<STYLE type="text/css">
body
{
   font-family:"Arial", Times, serif;
   color: #fff;
}

img
{
   border: none;
}


#header
{
        height: 50px;
        background-color: #666;
        margin-bottom: 10px;
}

#nav
{
        float: left;
        width: 25%;
        height: 150px;
        background-color: #999;
        margin-bottom: 10px;
}

#content
{
        float: left;
        margin-left: 5%;
        width: 65%;
        background-color: #999;
        margin-bottom: 10px;
}

#footer
{
        clear: both;
        height: 50px;
        background-color: #666;
        margin-bottom: 10px;
}
</STYLE>
</HEAD>
<BODY>
<DIV>
<DIV id="header">
<H2>A Header - Sort of :)</H2>
</DIV>
<DIV id="nav">
<UL>
<LI>Link1</LI>
<LI>Link2</LI>
<LI>Link3</LI>
</UL>
</DIV>
<DIV id="content">
<P>Your content here and hopefully a transparent image below :)</P>
<P>
<?
//Below we render our result
echo $skype_render;
?>
</P>
<P>Some filler text</P>
<P>Some more filler text</P>
</DIV>
<DIV id="footer">Copyright - me :)</DIV>
</DIV>
</BODY>
</HTML>{/codecitation}

 This renders the following (rather more tastefully styled) result ...

php-skype-result-styled.jpg

As you can see, it uses a transparent image and renders fine against the grey background.

If you play around with the png's in the skype_images folder, as long as you keep the names the same, you can customise them as much or as little as you like :)

When I have some spare time, I will add some more information about how all this works, but in the meantime, I hope this helps out.

 

 

 

 

Published in PHP
Written by i-r-paulus

This only relates to the versions of Virtuemart that run on Joomla 1.5 - I've been a little bogged down trying to survive the last few years, so it's unlikely this will ever be updated in any way ... feel free to contact me if you need any help adapting any of my old coding to work with later versions of Joomla!

First off - backup everything if you are going to mess around with any files :)

I learnt from experience ... always have an original file to replace any failed attempts !

If you want to add extra stuff to your Virtuemart Flypages (Flypages are the 'templates' that Virtuemart uses to display information from the database - Virtuemart calls them 'Themes') then you can use the parameters provided by Virtuemart (a full description of how to use the parameters and which ones are available can be found here) or you can add your own parameters like this ....

Published in Joomla!
Written by i-r-paulus

This module grabs the code that is used to display your Google Talk Badge and instead of the usual (and frankly completely adequate) speech bubble you can display your own images and/or text :)

Standard Google Talk Speech Bubble

1st you will need a Google Account and Google Talk and then you will have to set yourself up with a Google Talk Badge (you can do this once you are logged into your Google Account (Google 'Google Talk Badge' whilst logged into your Google Account )...

... once you have these things in place, you can use the module :)

Published in Joomla!
Written by i-r-paulus

This is where you'll find instrutions on installing my Custom Transparent Status Button Module for AIM ...

Anyway ... firstly lets install on Joomla 1.5 - scroll down for installation instructions to Joomla 1.6 :)

1)  Save the zip file you need from my downloads section.

2) In your administrator section click on Extensions then Install/Uninstall

3)  Browse for where you saved the zip file select it and then click Upload and Install button

Published in Joomla!
Written by i-r-paulus

April 2013:

Another module thats in need of updating I'm afraid ... I got a bit waylaid being dumped while in the middle of emigrating :( oh well ... so, if you want any help on this one ... let me know and I'll do my best ... no promises!

This is how to install and use my Yahoo! Messenger Status module ... I'm sure there are lots of other modules out there that can do the same thing, but I'm building these so I can eventually have a contact component that incorporates the most popular IM systems and allows you to customise what you see on your website ... anyway I digress, as is my wont ... now to the tutorials ...

First we see how to install on Joomla 1.5 - afterwards, I'll attempt my first Joomla 1.6 installation tutorial (you can get the module for both versions here)

Published in Joomla!
Written by i-r-paulus

As is the case with many of these tutorials, this is here purely for archiving purposes, this tutorial will be useful if you are trying to update a Joomla! 1.5 module to run on Joomla! 2.5, but it will not be definitive - search the Joomla! documentation or wiki for full details.

Update:

Just been writing a new module and noticed the changes in Language Files and how to use them in Joomla 1.6 check here

... since writing my first module I have been trying to adhere more closely to the guidelines on Lanuage Files, so my Skype Module (the one used as an example below) is a bit of an anomaly ... makes sure you alter your .ini language files to follow the new guidelines (your modules will probably work, but all your labels and descriptions will not display correctly in the admin section of your website :)

Published in Joomla!
Written by i-r-paulus

At present this module just works for Joomla 1.5 - it was never really that popular anyway (though I was pretty proud of it and thought it rather splendid in its own pointless way) - anyway, I will be upgrading it in the near future - so contact me if you would like to know when the updated version is available :)

I've always liked to listen to music while I work, so I have a nice module I downloaded from the JED to let people know what I'm listening to, unfortunately it is not really supported any more and it also does about 1000 things I don't really need.

Published in Joomla!
Written by i-r-paulus

This module was written some time ago now, and will only work with Joomla 1.5 and associated versions of Virtuemart ... I will upgrade this to work with the newer versions as soon as I have time (as of June 2012, I have only just installed versions of Virtuemart on test servers)

Greetings :)

A long time ago I wrote a module to display the logo's for the manufacturers on the webshop I built and maintain in my real world job - it was a hacked together thing and it was for Joomla 1.0 ... now I've got around to making it work in 1.5 (which means 1.6 will no doubt be finished pretty soon).

Published in Joomla!
Written by i-r-paulus

The Mobypicture Widget module is just a tidier way to place the mobypicture widget in your Joomla module positions without having to faff with code in editors :)

First download the module here!

Save it somewhere you'll be able to find it later ...

Then get yourself over to your Joomla website administrator page and click on Extensions then Install/Uninstall

Published in Joomla!
Written by i-r-paulus

April 2013 :

This module is old - out of date and no longer supported ... sorry about that - if you have any queries about it - feel free to contact me and I'll do my best to help out!

First off, you don't need the module, you can just copy the code into your module if you prefer :) See below :)

If you still want to use the module rather than faff with code and editors and stuff, you need to download the zip file from my downloads section and save it somewhere on your hard drive or USB drive or wherever!

Published in Joomla!
Written by i-r-paulus

If you have a qik account, you might be interested in my qik module - if you are not sure what I am talking about, have a look at the qik website.

There is already a qik module for Joomla! find it here and I've based mine on this module, which appears to only not work because the people at qik have altered their player code (the qik player uses flash, not unlike YouTube) - in fact the module is heavily influenced by the QTube module and Plugin by Massimo Giagnoni.

Published in Joomla!
Written by i-r-paulus
Page 1 of 2