Hi, it's morning now and I'm back.
First of all, I unzipped the module and then copied all files in another folder. Leaving the original files intact, I used the new folder and changed all ocurrences of blank or BLANK to chat and CHAT (for the Live Help box). In another copy of the original files, I changed blank and BLANK to time and TIME (for the clock box). Next time I will need to add another box called "whatever", I will create another copy and change blank and BLANK to whatever and WHATEVER and so on for any additional boxes. If I left blank and BLANK as in the original, every new box would overwrite the previous one since all definitions and file names would be identical. You can of course use other naming conventions like blank2, blank3 etc but I have used this method to help me easily identify which file does what without having to open them and see their contents.
As there are very few files, it's easy to rename the file names as above. But, what is more important, is to open each of them and make the changes to their contents as well.
So far, so good (I hope). You should now have a set of files named xxxx with all their contents changed from blank to xxxx as well.
Now, open the file /includes/templates/template_default/sideboxes/tpl_xxxx_sidebox.php and change the two lines from:
Code:
$content .= '<p>' . TEXT_XXXX_SIDEBOX . '</p>';
$content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';
to:
Code:
$content .= '' . TEXT_XXXX_SIDEBOX . '';
$content .= '';
Save it and open the file /includes/languages/english/extra_definitions/xxxx_sidebox_defines.php
Change the two lines from:
Code:
define('BOX_HEADING_XXXX_SIDEBOX', 'Blank Sidebox Header');
define('TEXT_XXXX_SIDEBOX', 'Replace this text with your HTML content.');
to:
Code:
define('BOX_HEADING_XXXX_SIDEBOX', 'yyyyyyyyyyyyyy');
define('TEXT_XXXX_SIDEBOX', '<img src="the url of your image" height="zzz" width="zzz" border="0" alt="zzzzzzzz" title="zzzzzzzz"><a href="the url of your link" target="_blank" alt="zzzzzzzz" title = "zzzzzzzz"><br />any text you want to have below the icon');
where yyyyyyyyyyyyyy is the title you want the box to have and zzz are your preferred values. Save the file and you are done.
Before uploading to your server, backup everything. I always do a full backup of the database and the files.
Then FTP the whole includes folder into your home directory and check your site for the new box. From then on, you can control its position (left or right sidebar, above or below other boxes) from your Administration > Tools > Layout Boxes Controller.
Simple, wasn't it? Good luck and please report back when you have it installed and working.
Bookmarks