<?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>Corpocrat Blog</title>
	<atom:link href="http://corpocrat.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://corpocrat.com</link>
	<description>Daily Blog from Internet Entrepreneur/Webmaster</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:57:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Talking about Schengen 90 days out of 180 day rule!!</title>
		<link>http://corpocrat.com/2012/01/10/about-schengen-90-days-out-of-180-day-rule/</link>
		<comments>http://corpocrat.com/2012/01/10/about-schengen-90-days-out-of-180-day-rule/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 14:05:14 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3501</guid>
		<description><![CDATA[<p>Many travelers often get confused and many dont even know about this 90/180 rule. Infact passport holders of US, Canada, Taiwan  and many other countries, enjoy visa free travel to EU countries (schengen zone) and as per schengen rules, but most importantly, one should keep in mind that you are ...]]></description>
			<content:encoded><![CDATA[<p>Many travelers often get confused and many dont even know about this 90/180 rule. Infact passport holders of US, Canada, Taiwan  and many other countries, enjoy visa free travel to EU countries (schengen zone) and as per schengen rules, but most importantly, one should keep in mind that you are allowed to stay <strong>90 days out of 180 days</strong>. Technically it is interpreted as &#8220;90 days IN and 90 days out&#8221; over the 180 days.</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2012/01/euflag.gif"><img class="size-full wp-image-3511 alignnone" title="euflag" src="http://corpocrat.com/wp-content/uploads/2012/01/euflag.gif" alt="" width="170" height="113" /></a></p>
<p>You get to stay 90 days in schengen states <strong>without visa</strong>, if you are one of the following:</p>
<p>1. EU/EEA nationals<br />
2. Non-EU nationals of 42 countries which include US, Canada, Australia, New Zealand, Japan etc.<br />
3. Holder of residence permit issued by a schengen member country.</p>
<p>Keep in mind that if you are staying more than 90 days, you must register with authorities and apply for residence permit of longer stays more than 90 days.</p>
<p>There is no limitation for the number of times you may enter the Schengen area if the total number of days you stayed in the Schengen-area in the six month period does not exceed 90 days.</p>
<p><strong><span style="text-decoration: underline;">Points to Remember about 90/180 rule:</span><br />
</strong></p>
<p>1. The 180 day clock starts ticking, from the date of <span style="text-decoration: underline;"><strong>first entry</strong></span> into schengen.</p>
<p>2. No limitations on number of times, to enter schengen and all the accumulated days will be added up.</p>
<p>3. Stays exceeding 90 days spent, is considered &#8220;overstay&#8221; and if that happens, you might likely be questioned at passport control. Be careful that never exceed your stay and plan well ahead to leave schengen before the 90 day elapses.</p>
<p>4. Stays in countries UK, Ireland, Romania, Bulgaria do not count as these countries are not not part of schengen zone.</p>
<p>For example if Mr. David has planned for vacation in Italy and Spain. He enters Italy(member state) on Jan 10, then as per the 90/180 rule, then 180 day clock starts from Jan 10 and ends on Jul 10. Mr. David, spends 60 days in Italy and 30 days in Spain and departs on approx April 10 back home. This means he already has consumed his allowed 90 day limit and he will not be able to visit any schengen country <span style="text-decoration: underline;"><strong>not before</strong></span> July 10.</p>
<p>If you are non EU national, always have the following additional documents during entry/exit in passport control:</p>
<ul>
<li>Return flight tickets for further journeys  (return tickets);</li>
<li>Evidence of sufficient funds and money</li>
<li>Hotel reservation or proof of accommodation,</li>
<li>Invitation letter in case of business visits, conferences.</li>
<li>The passport validity should be at least three months at the intended time of departure from the Schengen Area.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2012/01/10/about-schengen-90-days-out-of-180-day-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passport seva &#8211; My experience  with Indian passport reissue</title>
		<link>http://corpocrat.com/2012/01/02/passport-seva-my-experience-with-indian-passport-reissue/</link>
		<comments>http://corpocrat.com/2012/01/02/passport-seva-my-experience-with-indian-passport-reissue/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 12:17:32 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[passport seva]]></category>

		<guid isPermaLink="false">http://corpocrat.com/2012/01/02/passport-seva-my-experience-with-indian-passport-reissue/</guid>
		<description><![CDATA[<p>I recently went to passport seva Kendra fixing up my appointment under normal category. I could have booked under tatkal but I heard that officials are very strict under tatkaal and over 80% of tatkal applications are denied and put in normal mode. I felt that there is no point ...]]></description>
			<content:encoded><![CDATA[<p>I recently went to passport seva Kendra fixing up my appointment under normal category. I could have booked under tatkal but I heard that officials are very strict under tatkaal and over 80% of tatkal applications are denied and put in normal mode. I felt that there is no point to apply for tatkaal without getting verification certificate from police.</p>
<p>My case is passport reissue of my expiring passport which was expiring within a year. No change in address everything same as per old passport. I got police clearance certificate PCC six months ago and despite this I was told today post police verification would be done after granting passport. I remember last time at the local police station they took me fingerprints and other documentation. I am disappointed that I have to go through the same verification again. I thought they would issue me passport with no police verification but the passport granting officer granted me the passport subjected to post police verification.</p>
<p>After my experience in passport Kendra I must say that TCS guys are doing a remarkable job there and they are so friendly. The passport officers at B and C counters are bit rude I should say.</p>
<p>Oh! You won&#8217;t be needing a photo nowdays. You will be fingerprinted and captured photo there itself.</p>
<p>One of the most common questions asked about renewing passport is &#8211; <strong>will my passport number change when i reissue or renew passport?</strong> The answer is yes, you will get a new passport number. They will stamp cancelled in your old passport and return you back at the counter. If you have doubts or have any valid visas in your old passport, carry both old and new passports whenever you travel.</p>
<p>Police verification by the authorities have been nowdays mandatory, and nobody can escape that. Even tatkal, reissue and fresh passports, go through the same verification. You will be verified at your present address. if you are staying/working other than your permanent address, the verification will happen at both the places. Please note that the Granting Officer (GO) will take the decision whether you have to undergo verification or not.</p>
<p>1. Pre Police verification (first verification happens, then if clear, passport will be sent)<br />
2. Post police verification (passport will be issued first, then verification happen)<br />
3. No verification</p>
<p>When you go for passport Kendra for reissue/renew/fresh, be sure to carry as many identification documents you can in original and you will be asked for <strong>atleast 2 address proof and 1 for proof of date of birth. + one proof for ECNR</strong>. For reissue of passport within 1 year of expiry the passportindia.gov.in says that just original passport is required but I was was asked for 2 address proofs and 1 proof for birth.</p>
<p><strong>Documents for address proof </strong></p>
<ol>
<li>Ration card</li>
<li>Driving license</li>
<li>Voter ID</li>
<li>Telephone bill landline or postpaid (1 bill for last year and 1 latest bill)</li>
<li>1 year bank statement with bankers certificate photo attested by bank manager. If you are taking bank passbook issued by nationalised banks be sure to get sign and seal of bank manager in your passbook. Mere passbook printouts not accepted</li>
<li>Registered land deeds</li>
<li>Income tax assessment order with 3 year return acknowledgment showing address and IT dept stamp.</li>
</ol>
<p>For full list of documents, please <a href="http://passportindia.gov.in/AppOnlineProject/docAdvisor/attachmentAdvisorInp">http://passportindia.gov.in</a></p>
<p><strong>Proof for date of birth</strong>:</p>
<p>PAN card<br />
SSLC/+2 certificate</p>
<p><strong>ECNR change:</strong><br />
Just take your 10th marksheet in original or PAN card.</p>
<blockquote><p>Caution: when I stepped in the seva Kendra I noticed a board saying this:</p>
<p>&#8220;Since most countries take biometric information, especially gulf countries Any suppression of information in personal particulars could lead to prosecution or problems with foreign immigration. &#8220;</p></blockquote>
<p>So do not suppress any information such as change of name, work place, age etc. If you are working in bangalore but your permanent address is Delhi, be sure to submit all relevant information on where you have stayed for the past years. Police verification will be done in places you have stayed previously.</p>
<p><strong>Passport seva complaints:</strong></p>
<ul>
<li>Getting an appointment is a predicament as most of the time servers are busy or no slots available from <a href="http://passportindia.gov.in">passportindia.gov.in</a></li>
<li>I have noticed lots of technical problems in seva Kendra such as token not working, server problems causing resorting to manual mode.</li>
<li>Photos captured in seva kendras are poor in quality and not clear often. Never liked my photo in the passport.</li>
</ul>
<p>I personally feel that our govt should set up more kendras as the number of people seeking passports skyrocketed to 200%. Not to mention people requesting additional services such as addition of spouse name, address change, minors, PCC (Police clearance certificate) has been at very high numbers.</p>
<blockquote><p><strong>Update:</strong> I applied for passport reissue in PSK, under normal, paid Rs.1000 and i was surprised that they dispatched, the passport the <strong>same day</strong> and i received on next day by speed post. Never heard of passport sent on same day and i guess i was very lucky!!!! I had to be physically present to sign to receive the passport from the postman. It seems rules have become strict, and they give passport only to the passport holder not even to my parents.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2012/01/02/passport-seva-my-experience-with-indian-passport-reissue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taxi ripoffs in Budapest</title>
		<link>http://corpocrat.com/2011/12/05/taxi-ripoffs-in-budapest/</link>
		<comments>http://corpocrat.com/2011/12/05/taxi-ripoffs-in-budapest/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 21:29:37 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Money & Finance]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3479</guid>
		<description><![CDATA[<p>I was traveler to Budapest for the first time and i am sharing my experience of the ripoff i had in Budapest. I was on Deak Ferenz ter (Vorosmarty market) and there were many taxis parked and hired one of these guys to Heroes square and i was surprised to ...]]></description>
			<content:encoded><![CDATA[<p>I was traveler to Budapest for the first time and i am sharing my experience of the ripoff i had in Budapest. I was on Deak Ferenz ter (Vorosmarty market) and there were many taxis parked and hired one of these guys to Heroes square and i was surprised to see my taxi fare to 9300 forints and the actual price is supposed to be about 1200 forints or so. The guy spoke very good english had a nice alluring chat but ripped me off.</p>
<p>So be careful hiring taxis in Budapest where there are popular destinations. The best is to call a taxi to hire and in that way you dont give any chance to ripoffs.</p>
<p>Besides this, be sure to avoid blacklisted places, announced by US embassy for Budapest. The Ferihegy international airport has been recently renamed as &#8220;List Fernc International airport&#8221;.</p>
<p><a href="http://hungary.usembassy.gov/tourist_advisory.html">http://hungary.usembassy.gov/tourist_advisory.html</a></p>
<p>Hope you be careful when you travel to budapest next time.</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/12/05/taxi-ripoffs-in-budapest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google penalty &#8211; Notice of detected unnatural links!</title>
		<link>http://corpocrat.com/2011/11/19/google-penalty-notice-of-detected-unnatural-links/</link>
		<comments>http://corpocrat.com/2011/11/19/google-penalty-notice-of-detected-unnatural-links/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 07:44:27 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3474</guid>
		<description><![CDATA[<p>To all webmasters, its time to wake up. Google has been coming on harshly on webmasters and sending them warning notice for sites selling links.</p>
<p>If you are selling paid links or linking to bad neighbourhood, or if somebody reported you, Google might impose a manual penalty and if that happens, ...]]></description>
			<content:encoded><![CDATA[<p>To all webmasters, its time to wake up. Google has been coming on harshly on webmasters and sending them warning notice for sites selling links.</p>
<p>If you are selling paid links or linking to bad neighbourhood, or if somebody reported you, Google might impose a manual penalty and if that happens, you will see a significant drop in traffic and your site will rank poor on all search results.</p>
<ul>
<li>The bad news is once Google imposes you a penalty (manual or algorithmic one), then chances to recover may take months.  Unfortunately google does not tell you the reason why you have been penalized.</li>
<li>The good news is you can submit a reconsideration request to google, and Google will review your site and you will get a decision within 1-2 weeks.</li>
</ul>
<p>I recently received this penalty on one of my sites and somehow after 4 reconsideration requests, mine was accepted and i should say i was quite lucky.</p>
<p>This is the warning i received from webmasters central&#8230;</p>
<blockquote><p>Dear site owner or webmaster of http://www.xxxxxxx.com/,</p>
<p>We&#8217;ve detected that some of your site&#8217;s pages may be using techniques that are outside <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769&amp;hl=en" target="_blank">Google&#8217;s Webmaster Guidelines</a>.</p>
<p>Specifically, <span style="text-decoration: underline;"><strong>look for possibly artificial or unnatural links on your site pointing to other sites</strong></span> that could be intended to manipulate PageRank. Examples of unnatural linking could include <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=66736" target="_blank">selling links to pass PageRank</a> or participating in <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=66356" target="_blank">link schemes</a>.</p>
<p>We encourage you to make changes to your site so that it meets our quality guidelines. Once you&#8217;ve made these changes, please <a href="https://www.google.com/webmasters/tools/reconsideration?hl=en" target="_blank">submit your site for reconsideration</a> in Google&#8217;s search results.</p>
<p>If you have any questions about how to resolve this issue, please see our <a href="http://www.google.com/support/forum/p/Webmasters?hl=en" target="_blank">Webmaster Help Forum</a> for support.</p>
<p>Sincerely,<br />
Google Search Quality Team</p></blockquote>
<h3>How to recover from penalty?</h3>
<p>1. First of all, dont panic, think and analyze whats wrong with your site. First check whether your site fresh content is indexed by google. Use site:example.com in Google or use webmaster tools to identify the issue.  It could be your site is indexed, but may disappear in search results, because of the imposed penalty.</p>
<p>2. When you submit a reconsideration request, be sure to mention A to Z on what you did on your site to lift the penalty. You have to explain everything on your reconsideration request. For example  nofollow on paid links, removing links participating in link exchange, removing blogroll links, eliminating duplicate content.</p>
<p>3. Participate in <a href="http://www.google.com/support/forum/p/Webmasters">Google webmaster central form</a> and ask for help. Chances are there that a Google engineer may review at your site.</p>
<p>4. Understand that penalty imposed by Google are of 2 types: Manual one or Algorithmic one. If you are penalized by algorithms, then submitting reconsideration request for manual lift will be of no use. But if you are imposed manual penalty, certainly submitting a reconsideration request for manual review will break the penalty and get you back in Google. Manual penalty usually have expiry (see <a href="www.youtube.com/watch?v=ES01L4xjSXE">matt cutts videos</a>) , but you will never know.</p>
<p>If you did everything right, and your manual penalty might be revoked, you will likely get a message like this&#8230;</p>
<blockquote><p>Reconsideration request for http://www.xxxxxx.com/: Manual spam action revoked November 7, 2011</p></blockquote>
<div id="message-body">
<blockquote><p>Dear site owner or webmaster of http://xxxxxxxxxx,</p>
<p>We received a request from a site owner to reconsider http://xxxxxxxxx/ for compliance with Google&#8217;s Webmaster Guidelines.</p>
<p>Previously the webspam team had taken manual action on your site because we believed it violated our <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=35769#3" target="_blank">quality guidelines</a>. After reviewing your reconsideration request, we have revoked this manual action. It may take some time before our indexing and ranking systems are updated to reflect the new status of your site.</p>
<p>Of course, there may be other issues with your site that could affect its ranking without a manual action by the webspam team. Google&#8217;s computers determine the order of our search results using a series of formulas known as algorithms. We make hundreds of changes to our search algorithms each year, and we employ more than 200 different signals when ranking pages. As our algorithms change and as the web (including your site) changes, some fluctuation in ranking can happen as we make updates to present the best results to our users. If your site continues to have trouble in our search results, please see <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=34444&amp;hl=en" target="_blank">this article</a> for help with diagnosing the issue.</p>
<p>Thank you for helping us to maintain the quality of our search results.</p>
<p>Sincerely,</p>
<p>Google Search Quality Team</p></blockquote>
</div>
<p>It is really a heartbreaking to see penalties and desperate times need desperate help and i am sure my post above will be of great help to any webmaster in bad times.</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/11/19/google-penalty-notice-of-detected-unnatural-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to digitally sign and encrypt email free?</title>
		<link>http://corpocrat.com/2011/11/04/how-to-digitally-sign-and-encrypt-email-free/</link>
		<comments>http://corpocrat.com/2011/11/04/how-to-digitally-sign-and-encrypt-email-free/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 14:21:02 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3466</guid>
		<description><![CDATA[<p>If you want to send email to somebody securely and want privacy, you need not screw your head over something which is very difficult creating public and private keys, or install gnupg software.</p>
<p>The easiest way is get a digital email certificate from comodo for your email address and install it. ...]]></description>
			<content:encoded><![CDATA[<p>If you want to send email to somebody securely and want privacy, you need not screw your head over something which is very difficult creating public and private keys, or install gnupg software.</p>
<p>The easiest way is get a digital email certificate from comodo for your email address and install it. Visit the <a href="http://www.comodo.com/home/email-security/free-email-certificate.php" target="_blank">comodo website</a>. You can also buy digital certificate from verisign as well which costs you about $20 yearly. You just have to install the certificate once to encrypt and digitally sign.</p>
<p>Here are the basics&#8230;</p>
<p>First to communicate with somebody using digital certificates, there are 2 things called public and private keys.</p>
<p>1. To send an encrypted email to somebody, you need the public key of the receiver and your email is encrypted using your private key. The receiver will be able to use their private key and your public key to decrypt the message. When you digitally sign your email, you automatically send them your public key.</p>
<p>2. Similarly, when somebody sends you an encrypted message, you decrypt it using their public key and your private key.</p>
<p>Notice that both sender and receiver share their public keys.  Also note that your private key is generated with your password (you will be asked one).  Your private will not be shared known only to you. Similarly the other persons private key is not shared known only to them.</p>
<p>On windows PCs the comodo digital email certificate is automatically installed. You can click sign and encrypt when you compose your email.</p>
<blockquote><p>You can only sign and encrypt emails, when you have somebodys public certificate. If you dont have ask them to send you a digitally signed email. This way digitally signed emails received by you, automatically contain the public key of the sender, which will allow you to sign and encrypt.</p></blockquote>
<p>On mac systems, your comodo certificate is installed in your browser. Go to browser preferences and backup it.</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2011/11/Screen-shot-2011-11-04-at-7.32.54-PM.jpg"><img class="alignnone size-full wp-image-3468" title="Screen shot 2011-11-04 at 7.32.54 PM" src="http://corpocrat.com/wp-content/uploads/2011/11/Screen-shot-2011-11-04-at-7.32.54-PM.jpg" alt="" width="413" height="323" /></a></p>
<p>it will ask you the password to unlock your  private key. Enter the password and then go keychain utility, double click on it, again enter the password, you gave previously to complete the installation. Restart the apple mail if all is well, you will see the padlock and digital sign symbol when composing your message.</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2011/11/Screen-shot-2011-11-04-at-7.41.11-PM.jpg"><img class="alignnone size-full wp-image-3467" title="Screen shot 2011-11-04 at 7.41.11 PM" src="http://corpocrat.com/wp-content/uploads/2011/11/Screen-shot-2011-11-04-at-7.41.11-PM.jpg" alt="" width="330" height="41" /></a></p>
<p>You can also send a message digitally signed but not encrypted, but the hash is not secure but better than sending an unsecured email.</p>
<blockquote><p>Dont EVER forget the password which you used to create private key. If not you have to start everything from the start. However, you can recover using the revocation password.</p></blockquote>
<p>If your email provider provide SSL encryption, to your mail server, be sure to enable the SSL authentication in your POP/SMTP server. This way you receive emails without getting eavesdropped. All free email service providers provide web based email using secure http connection. Take advantage of that to protect your privacy and from eavesdropping.</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/11/04/how-to-digitally-sign-and-encrypt-email-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; check ssl and redirect to https secure page</title>
		<link>http://corpocrat.com/2011/11/04/php-check-ssl-and-redirect-to-https-secure-page/</link>
		<comments>http://corpocrat.com/2011/11/04/php-check-ssl-and-redirect-to-https-secure-page/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 06:03:16 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3463</guid>
		<description><![CDATA[<p>If you have a non https form and you if you want to force to use SSL (https), it can be done with 4 lines of code with php. Remember that you need to buy ssl and have https working in your website. The key here is use of $_SERVER['https'] ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://corpocrat.com/wp-content/uploads/2011/11/Lock.png"><img class="size-full wp-image-3464 alignleft" title="Lock" src="http://corpocrat.com/wp-content/uploads/2011/11/Lock.png" alt="" width="50" height="50" /></a>If you have a non https form and you if you want to force to use SSL (https), it can be done with 4 lines of code with php. Remember that you need to buy ssl and have https working in your website. The key here is use of $_SERVER['https'] variable, which is set to a value when https is enabled in your server.</p>
<pre class="brush: php; title: CODE; notranslate">
if(empty($_SERVER[&quot;HTTPS&quot;])) {
header(&quot;Location: https://example.com/application.htm&quot;);
exit;
}
</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/11/04/php-check-ssl-and-redirect-to-https-secure-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to create a login protected page?</title>
		<link>http://corpocrat.com/2011/10/28/wordpress-how-to-create-a-login-protected-page/</link>
		<comments>http://corpocrat.com/2011/10/28/wordpress-how-to-create-a-login-protected-page/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 15:47:19 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3448</guid>
		<description><![CDATA[<p>In this tutorial, i will how you how easy it is to login protect a page and then force users to login, to view the page.</p>
<p>1. Create a php file named &#8220;login-protect.php&#8221; in your current theme folder.</p>
<p>2. Place the following code in this file</p>


&#60;?php /*   Template Name:  Login Protect ...]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, i will how you how easy it is to login protect a page and then force users to login, to view the page.</p>
<p>1. Create a php file named &#8220;login-protect.php&#8221; in your current theme folder.</p>
<p>2. Place the following code in this file</p>
<pre class="brush: php; title: CODE; notranslate">

&lt;?php /*   Template Name:  Login Protect Template */ ?&gt;
&lt;?php get_header() ; ?&gt;
&lt;?php auth_redirect(); // checks to see if logged in else redirect ?&gt;
&lt;!-- HERE GOES HTML AND CSS DEPENDING ON YOUR THEME --&gt;

&lt;?php get_footer(); ?&gt;
</pre>
<p>3. Go create a post, set the template to &#8220;Login Protected Template&#8221;  (will show up)</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2011/10/arrtri.jpg"><img class="alignnone size-full wp-image-3449" title="arrtri" src="http://corpocrat.com/wp-content/uploads/2011/10/arrtri.jpg" alt="" width="210" height="212" /></a></p>
<p>4. Directly write the content and publish it.</p>
<p>There is one more alternative to check logins is use</p>
<pre class="brush: php; title: CODE; notranslate">

if (!is_user_logged_in()) {
wp_redirect(&quot;/wp-login.php&quot;);
}
</pre>
<p>Thats it! Your login protected page is ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/10/28/wordpress-how-to-create-a-login-protected-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to change admin menu labels?</title>
		<link>http://corpocrat.com/2011/10/28/wordpress-how-do-change-admin-menu-labels/</link>
		<comments>http://corpocrat.com/2011/10/28/wordpress-how-do-change-admin-menu-labels/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 15:23:19 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3440</guid>
		<description><![CDATA[<p>It is very easy to change admin menu labels for your clients, with a custom admin panel. For example, you might want to change &#8220;Posts&#8221; to &#8220;Articles&#8217;</p>
<p>All Posts &#8212;&#62; All Articles
Add New &#8212;&#62; Add New Article
Posts &#8211;&#62; Articles</p>
<p>
I have seen the best wordpress plugin to accomplish this task is Admin ...]]></description>
			<content:encoded><![CDATA[<p>It is very easy to change admin menu labels for your clients, with a custom admin panel. For example, you might want to change &#8220;Posts&#8221; to &#8220;Articles&#8217;</p>
<p>All Posts &#8212;&gt; All Articles<br />
Add New &#8212;&gt; Add New Article<br />
Posts &#8211;&gt; Articles</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2011/10/custom1.jpg"><img class="alignnone size-full wp-image-3442" title="custom" src="http://corpocrat.com/wp-content/uploads/2011/10/custom1.jpg" alt="" width="488" height="285" /></a><br />
I have seen the best wordpress plugin to accomplish this task is <strong><a href="http://wordpress.org/extend/plugins/admin-menu-editor/" target="_blank">Admin Menu Editor</a></strong>. You will need to play around with this plugin to change the labels in wordpress admin panel interface.</p>
<p><a href="http://corpocrat.com/wp-content/uploads/2011/10/admin_menu_panel.jpg"><img class="alignnone size-full wp-image-3443" title="admin_menu_panel" src="http://corpocrat.com/wp-content/uploads/2011/10/admin_menu_panel.jpg" alt="" width="233" height="248" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/10/28/wordpress-how-do-change-admin-menu-labels/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; how to add custom field when post is published?</title>
		<link>http://corpocrat.com/2011/10/28/wordpress-how-to-add-custom-field-when-post-is-published/</link>
		<comments>http://corpocrat.com/2011/10/28/wordpress-how-to-add-custom-field-when-post-is-published/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 14:17:41 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3437</guid>
		<description><![CDATA[<p>It is dead easy to set a custom field to your post, programmatically when the post is published. For example, whenever your post is published, you might want to add a custom field &#8220;submitted&#8221; and set its value to &#8220;1&#8243;, when a post is published.</p>
<p>Here is how you do it. ...]]></description>
			<content:encoded><![CDATA[<p>It is dead easy to set a custom field to your post, programmatically when the post is published. For example, whenever your post is published, you might want to add a custom field &#8220;submitted&#8221; and set its value to &#8220;1&#8243;, when a post is published.</p>
<p>Here is how you do it. Call the <strong>publish_post</strong> hook, pass a function since the hook runs whenever a post it published.</p>
<p>We are creating a new custom field &#8220;submit&#8221; and setting its value to &#8220;1&#8243; when ever the post is published. The code will only create custom field, when the user role is &#8220;author&#8221;. If you dont check for user role, this code will run for even admins and all users. We are going one more step with this code, against by checking another custom field <strong>&#8220;custom_field_1&#8243;</strong> with a particular value exists.</p>
<p>We pull the value of a custom field using <strong>get_post_meta</strong> function and we create custom field for the post using <strong>add_post_meta</strong> function. Note that true parameter, makes the custom field unique and no duplication possible.</p>
<pre class="brush: php; title: CODE; notranslate">

add_action('publish_post','create_custom_field')

function create_custom_field ($post_id) {
global $wpdb;
if ( current_user_can('contributor') ) {

if(get_post_meta($post_id,'custom_field_1',true) == '1'){
add_post_meta($post_ID,'submit','1',true);
return $post_id;
}

return $post_id;
}

}
</pre>
<p>For full list of action hooks, applied to posts, please go through: <a href="http://codex.wordpress.org/Plugin_API/Action_Reference" target="_blank">http://codex.wordpress.org/Plugin_API/Action_Reference</a></p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/10/28/wordpress-how-to-add-custom-field-when-post-is-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to redirect when post submitted for review in WordPress</title>
		<link>http://corpocrat.com/2011/10/28/how-to-redirect-when-post-submitted-for-review-in-wordpress/</link>
		<comments>http://corpocrat.com/2011/10/28/how-to-redirect-when-post-submitted-for-review-in-wordpress/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 13:57:05 +0000</pubDate>
		<dc:creator>pbu</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://corpocrat.com/?p=3434</guid>
		<description><![CDATA[<p>I was working recently on custom project and i wanted wordpress to redirect to a custom payment page, when somebody submits a post for review.  It was such a simple step and quite disappointed that there was no wordpress plugin to do this job. If it was in php, i ...]]></description>
			<content:encoded><![CDATA[<p>I was working recently on custom project and i wanted wordpress to redirect to a custom payment page, when somebody submits a post for review.  It was such a simple step and quite disappointed that there was no wordpress plugin to do this job. If it was in php, i would have done this in a fly. Finally i decided to code myself, using itsy bitsy code.</p>
<p>Having spent whole day banging my head on the wall, i found this simple code, does the job. Put this code in your theme <strong>function.php file</strong> or create your own plugin.</p>
<p>My users are set on &#8220;contributor&#8221; role by default.</p>
<blockquote><p>keep in mind the hook <strong>edit_posts</strong>, runs, when a user submits a post for review (pending). This is for contributor role. For author role, the hook publish_posts runs when authors submit posts for review.</p></blockquote>
<p>I created a separate payment page, which i had links for paypal and 2checkout. The code checks to make sure only those users under &#8220;contributor&#8221; role (not admins) will get redirected to payment page, upon submitting a post for review.</p>
<pre class="brush: php; title: CODE; notranslate">

add_action('edit_post','payment_redirect');

function payment_redirect($post_id) {
global $wpdb;
if ( current_user_can('contributor') ) {
wp_redirect(&quot;http://example.com/paypal/&quot;);
exit;
}
return $post_id;
}
</pre>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://corpocrat.com/2011/10/28/how-to-redirect-when-post-submitted-for-review-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

