HOWTO

Speed up Your Net Connection

Tagged:  

Who does not like to have an Internet Connection with a good speed? Hmm……Probably, No One……

Pidgin: Run Different Clients from One Application

Tagged:  

Most of you may be wondering what is so special in this messenger .Well…..

Setting up a Internet connection in ubuntu for a static IP address.

Tagged:  

This is a Tutorial for one to set up a internet connection FOR STATIC IP ADDRESS

Convert HTML or Web Pages to PDF & Postscript

Tagged:  

Hi, are you looking for an application which can convert to HTML (or online web pages) to PDF or PS ? Yes, you have that! Its available under GNU General Public License (GNU GPL) and also under commercial license. Though the version available under GNU GPL has some limitations... but its enough for an home user...

The software's name is HTMLDOC. You can download its GNU GPL version at www.htmldoc.org

Its highly efficient. I converted a single html file of PHP manual to PDF of 11 MB with "Best" mode compression in less than 5 minutes. The PDF version contains 4261 pages!!! Imagine! That too on a P3 500 Mhz with 384 MB RAM.. If you have a better CPU then it might do it even much more faster! ;

Here's a sample screenshot -

HTMLDOC-Screenshot

Adding your META tags on to a drupal page

Tagged:  

Most blogging systems OR CMSes don't have the option to add the META KEYWORDS and META DESCRIPTION tags which are the key to search engine success to some extent.

Yes, I know you can add them in theme files... but if you change theme ? You have to re-add them. So we need a persistent solution which doesn't change while changing themes.

Below is a simple procedure where you can add your META tags to a drupal (taking 5.x here) system (without editing any of the theme files!).

Open common.inc in your favourite editor. common.inc is found in <drupal-install-path>/includes

Scroll down to Line Number 116 (or search for drupal_get_html_head).

After the first function line, you will see a line like this -

 
$output = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";

You then append these lines RIGHT AFTER the above line (else its not going to work).


$output .= '<meta name="keywords" content="keywrd1,keywrd2,..." />'."\n";

$output .= '<meta name="description" content="A small description here" />'."\n";

Save the file. Make a backup of the older file and place this new common.inc overriding the old one.

The above method has been tested and was found to work. So, if you have any problems just comment down here!

Have a nice day!

Remove your site titles from content pages in Drupal

Tagged:  

In Drupal (considering v5.x here), the content page titles i.e. the text which is generated and put between <TITLE> HTML tag comes like this -

Content-Name | Site Name

Right ?

This doesn't look nice and it is not possible to remove this by editing a theme's file.

So here's a simple code change about how to remove this title internally so that whenever it is generated, it gets generated as

Content-Name

We're considering the default template engine - PHPTemplate which comes with Drupal.

You need to edit the file called phptemplate.engine file in /themes/engines/phptemplate directory.

Open the file your favourite editor.

Jump to Line 185 (As of Drupal 5.x)

$head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal'));

Change the above line so that it looks like this -

$head_title = array(strip_tags(drupal_get_title()));

Save the file.

And copy this new file to /themes/engines/phptemplate/phptemplate.engine while backing up the older file.

And voila! you are done!

Syndicate content
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. Rest Copyright © iTech7.com

For License and Copyrights see http://www.itech7.com/Content-Copyrights