<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pokhran &#187; Drupal</title>
	<atom:link href="http://www.pokhran.com/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pokhran.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 13:13:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Customize the Syndicate Feed Icon Block in Drupal</title>
		<link>http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/</link>
		<comments>http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 10:45:46 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal Theme Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[theme development]]></category>
		<category><![CDATA[theme hooks]]></category>

		<guid isPermaLink="false">http://www.expeditionpost.com/?p=264</guid>
		<description><![CDATA[Now a days many blogs have a widget on their right/left sidebar inviting users to subscribe to your blog. Making this a part of the theme traditionally involved creating a block module or going into the admin panel to create the block manually. These are tasks that you may not want to do when you are distributing your theme. This post shows you how to customize the syndicate block so that you can show all relevant subscription options on your theme without the theme user needing to change any code or do any configuration.]]></description>
			<content:encoded><![CDATA[<p>For a recent project I needed to customize the feed icon in the Drupal theme I was creating. This wasn’t as straight forward as I thought it would be. Being the drupal newbie that I am I went looking for it in the core templates and suggestions page only to come empty handed.</p>
<p>Previously I found the solution to theming a search form by using the search-block-form.tpl.php template file and thought there would be one for the feed icon too. I found the solution to this in the function reference in the form of a theme hook.</p>
<pre class="brush: php; title: ; notranslate">
theme_feed_icon($url, $title)
</pre>
<p>This function is internally called by drupal to generate the feed icon in the Syndicate block. Our Job is to override this function.</p>
<p><strong>Customizing the feed icon</strong></p>
<p>We cannot redefine the same function in our theme so we must define a phptemplate function to override the default implementation.</p>
<p>function phptemplate_feed_icon($url,$title)</p>
<p><strong>What It Must Do?</strong></p>
<p>This function must return the code of the feed icon. Therefore instead of using a image, you may also use a text link as well as hard code a few options such as Subscribe via Twitter and E-Mail.</p>
<p>Therefore, to use your own subscribe by RSS icon, you may use a function similar to the following:</p>
<pre class="brush: php; title: ; notranslate">
function phptemplate_feed_icon($url,$title)
{
	global $base_path;
	$path = path_to_theme();
 $feed_icon = '&lt;a href=&quot; '. check_url($url).'&quot; class=&quot;feed-icon&quot;&gt;&lt;img src=&quot;'. $path.'/images/rss-header.png&quot; /&gt;&lt;/a&gt;';
        return $feed_icon;
}
</pre>
<p>This function is very simple . It just returns a image which is linked to the $url parameter of the function. This function is to be placed in the template.php file.</p>
<p><strong>Summary</strong></p>
<blockquote>
<ul>
<li>Syndicate feed icon is customized using the theme_feed_icon template function.</li>
<li>We use phptemplate_feed_icon($url,$title)  in our function to customize the syndicate feed icon block.</li>
<li>The function should return the code of the syndicate feed block. This code may also include links to other services such as twitter and subscribing by e-mail.</li>
<li>The function should be placed in your template.php file.</li>
</ul>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Install Drupal On Your Shared Hosting Server.</title>
		<link>http://www.pokhran.com/how-to-install-drupal-on-your-shared-hosting-server/</link>
		<comments>http://www.pokhran.com/how-to-install-drupal-on-your-shared-hosting-server/#comments</comments>
		<pubDate>Sat, 23 May 2009 05:27:01 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[how-to]]></category>

		<guid isPermaLink="false">http://www.expeditionpost.com/how-to-install-drupal-on-your-shared-hosting-server/</guid>
		<description><![CDATA[Drupal is the best content management system I have ever come across. It has all the features necessary to build any website. Drupal can save you thousands of dollars in development costs by simplifying the development of complex applications and portal websites. The drupal community has created thousands of plugins which can be configured to [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal is the best content management system I have ever come across. It has all the features necessary to build any website. Drupal can save you thousands of dollars in development costs by simplifying the development of complex applications and portal websites. The drupal community has created thousands of plugins which can be configured to achieve any functionality desired in a content management system. This article will show you how to install Drupal on your shared hosting server. This article will show you how to install drupal in a shared hosting server.</p>
<p><span id="more-41"></span></p>
<p>Step 1: Download And Extract Drupal From Drupal.org</p>
<p>Go to the <a title="Drupal Download Page" href="http://drupal.org/project/drupal" target="_blank">drupal download page</a> and download the latest version of drupal. Extract the file to a local folder.</p>
<p>Step 2: Upload the files to the server.</p>
<p>Use a reliable FTP client like <a href="http://filezilla-project.org">FileZilla</a> to connect to your shared hosting server. On your browser, browse to the directory which is the root of the domain name. If you are installing in a subdirectory or in a subdomain switch to the directory that corresponds to the subdomain. Upload the drupal files to the said directory. For illustration, I am going to use the domain name <a href="http://www.droople.com">http://www.droople.com</a>. This maps to /public_html/droople.com in the FTP directory where I am going to upload my drupal files.</p>
<p>So I will see my drupal site at <a href="http://www.droople.com">http://www.droople.com</a></p>
<p>Step 3: Creating a mysql user and database.</p>
<ol>
<li>
<div>Go to <a href="http://www.droople.com/cpanel">http://www.droople.com/cpanel</a> or whatever your hosting provides for administering your server.</div>
</li>
<li>
<div>Go to MySQL databases.</p>
<p><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page1-0.png" alt="drupal-install-page1-0" vspace="30" width="450" height="99" /></div>
</li>
<li>
<div>There create a new database.</div>
<p><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page1-1.png" alt="drupal-install-page1-1" vspace="30" width="450" height="88" /></li>
<li>
<div>Create a new user (remember the password, you will need it). Make sure you don&#8217;t use a password that you use for sites or your email accounts. This will be stored in a text file in the server. If you later hire a programmer to do something on your site, they can see the password.</p>
<p><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page1-2.png" alt="drupal-install-page1-2" vspace="30" width="265" height="121" /></div>
</li>
<li>
<div>Add full permissions to the database to the database user you just created.</p>
<p><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page1-3.png" alt="drupal-install-page1-3" vspace="30" width="270" height="144" /></p>
<p><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page1-4.png" alt="drupal-install-page1-4" vspace="30" width="450" height="257" /></div>
</li>
</ol>
<p>Usually shared hosting servers prepend your hosting&#8217;s user name to the database name. So if you create mysite. The cpanel will create white_mysite. If &#8216;white&#8217; is your username of the hosting server. The same goes with the username of the databse server.</p>
<p>Enter the address of the directory/domain name in the browser.</p>
<p><a href="http://www.droople.com">http://www.droople.com</a></p>
<p>You will see the following screen:</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page.png" alt="drupal-install-page" vspace="30" width="450" height="189" /></p>
<p>Click on &#8220;Install Drupal in English&#8221;. You will see the following screen:</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page2.png" alt="drupal-install-page2" vspace="30" width="450" height="254" /></p>
<p>Don&#8217;t be alarmned! Seeing this is normal. Use your ftp client to switch to sites/default directory in your drupal installation directory (on the server). Download the default.settings.php file to your computer. Rename it as settings.php and upload it to the same directory. Now refresh the page showing the error above. Now you will see the following page:</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page3.png" alt="drupal-install-page3" vspace="30" width="400" height="379" /></p>
<p>Enter the database username and password you just created at the MySQL Databases section of the control panel. The form shown below follows:</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal.png" alt="drupal" vspace="30" width="344" height="400" /></p>
<p>Fill up the form with the necessary details take particular care in enering the Adminstrator&#8217;s account email address by making sure its a real email address and use a password you can remember as you will needed it to administer the website. You will see the following message with or without the error message depending on your server&#8217;s configuration.</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page4.png" alt="drupal-install-page4" vspace="30" width="450" height="156" /></p>
<p>Click on &#8220;your new site&#8221; and go to the newly installed drupal site!</p>
<p align="center"><img src="http://www.expeditionpost.com/wp-content/uploads/2009/05/drupal-install-page5.png" alt="drupal-install-page5" vspace="30" width="450" height="193" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokhran.com/how-to-install-drupal-on-your-shared-hosting-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

