<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Prasad wagholikar&#039;s Weblog</title>
	<atom:link href="http://prasadwagholikar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prasadwagholikar.wordpress.com</link>
	<description>Best discussion forum</description>
	<lastBuildDate>Mon, 17 Jan 2011 16:46:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prasadwagholikar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7c5720f3556e43a619c97082f5ca2ef7?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Prasad wagholikar&#039;s Weblog</title>
		<link>http://prasadwagholikar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prasadwagholikar.wordpress.com/osd.xml" title="Prasad wagholikar&#039;s Weblog" />
	<atom:link rel='hub' href='http://prasadwagholikar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Life is full of competition,Don&#8217;t sleep, wakeup and see the miracle in your life &#8211; earn fast money with Gold scheme</title>
		<link>http://prasadwagholikar.wordpress.com/2010/07/04/life-is-full-of-competitiondont-sleep-wakeup-and-see-the-miracle-in-your-life-earn-fast-money-with-gold-scheme/</link>
		<comments>http://prasadwagholikar.wordpress.com/2010/07/04/life-is-full-of-competitiondont-sleep-wakeup-and-see-the-miracle-in-your-life-earn-fast-money-with-gold-scheme/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 08:36:44 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[India]]></category>
		<category><![CDATA[Maharashtra]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=199</guid>
		<description><![CDATA[Hi All, I am Introducing new money making scheme which will give you large returns, How much ? you can&#8217;t imagine. You need to invest only 5575/- one time, You will get Rs. 1,63,800/- How? I will tell you . This scheme is started by EVE MIRACLE  which is a MLM company.  The units are 2,9,49 and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=199&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I am Introducing new money making scheme which will give you large returns, <strong><em>How much ?</em></strong> you can&#8217;t imagine.</p>
<p>You need to invest only 5575/- one time, You will get Rs. 1,63,800/-</p>
<p>How? I will tell you .</p>
<p>This scheme is started by EVE MIRACLE  which is a MLM company.  The units are 2,9,49 and 249. Lets discuss 2 units plan.</p>
<p>The 1 unit price is &#8211; 24000/-</p>
<p>For 2 unit &#8211; 48000/-</p>
<p>Booking Amt- 5575/-</p>
<p>You have to pay Rs. 5575/- to enter in a scheme, Rs. 5575/- is a booking amount of Rs. 48,000/- Gold. That means with 5575/- you will book Rs. 48,000/- Gold.</p>
<p>There are 12 closing cycles. Every closing cycle is of 45 days. When you are entered into the scheme your cycle started. when first closing id done you will get 40/- cheque.</p>
<p>in next closing cycle , The amount will be doubled i.e you will get 80/-  cheque , then 160/- , 320/-, 640/- &#8230;.</p>
<p>After  12th closing cycle, If you calculate the total amount then you will find the total amount is 1,63,800/-. Isn&#8217;t it the miracle?</p>
<p>You will get 2 tickets for Jaipur, You just have to purchase the 48,000/- Rs. gold from Jaipur&#8217;s Office.</p>
<p>The above total amount is calculated with 100% growth of the company.</p>
<p>Lets calculate the amount with variable growth as follows</p>
<p>with 75% = 1,22,850/ (1,22,850 &#8211; 5575 = 1,17,275/-) &#8211; you are in profit.</p>
<p>50% = 81,900/- (81,900- 5575 = 76,325/-) &#8211; you are in profit.</p>
<p>25% = 40,950/- (40,950- 5575 = 35,375/-) &#8211; you are still in profit.</p>
<p>10% =16,380/- (16,380- 5575 = 10,805/-) &#8211; you are still in profit.</p>
<p>5% = 8190/- (8190- 5575 = 2,615/-) &#8211; you are still in profit.</p>
<p>That means , with only 5% growth you will be in profit of 2,615/- , Company is constantly growing with 100% growth.</p>
<table style="height:127px;" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="2%"></td>
<td width="98%" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td class="heading"><img src="images/businessplan.jpg" alt="" width="113" height="16" /></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top">
<div>
<table border="1" cellspacing="0" cellpadding="0" width="90%">
<tbody>
<tr>
<td class="txt" colspan="5" bgcolor="#69A79D"><span class="style7"> How to Join ?</span></td>
</tr>
<tr>
<td class="txt" colspan="5"></td>
</tr>
<tr>
<td class="txt" width="210" bgcolor="#EFEFEF"></td>
<td class="txt" width="119" bgcolor="#EFEFEF">
<div class="style5">SP-2</div>
</td>
<td class="txt" width="143" bgcolor="#EFEFEF">
<div class="style5">SP-9</div>
</td>
<td class="txt" width="138" bgcolor="#EFEFEF">
<div class="style5">SP-49</div>
</td>
<td class="txt" width="153" bgcolor="#EFEFEF">
<div class="style5">SP-249</div>
</td>
</tr>
<tr>
<td class="txt">
<div class="style5">Unit</div>
</td>
<td class="txt">
<div class="style6">2</div>
</td>
<td class="txt">
<div class="style6">9</div>
</td>
<td class="txt">
<div class="style6">49</div>
</td>
<td class="txt">
<div class="style6">249</div>
</td>
</tr>
<tr>
<td class="txt">
<div class="style5">Advanced  Booking    Amt.</div>
</td>
<td class="txt">
<div class="style6">6000</div>
</td>
<td class="txt">
<div class="style6">27000</div>
</td>
<td class="txt">
<div class="style6">147000</div>
</td>
<td class="txt">
<div class="style6">747000</div>
</td>
</tr>
<tr>
<td class="txt">
<div><span class="style5">Discounted  Booking    Amt.</span></div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div>5575</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div>22920</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div>120480</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div>603656</div>
</td>
</tr>
<tr>
<td class="txt">
<div class="style5">Product Purchase    Amt.</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">48000</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">216000</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">1176000</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">5956000</div>
</td>
</tr>
</tbody>
</table>
<table class="txt" border="1" cellspacing="0" cellpadding="0" width="90%">
<col width="210"></col>
<col width="130"></col>
<col width="119"></col>
<col width="143"></col>
<col width="138"></col>
<col width="153"></col>
<tbody>
<tr>
<td class="txt" colspan="5" height="27" bgcolor="#69A79D"><span class="style7"> Distribution of Income as Per   Growth </span></td>
</tr>
<tr>
<td class="txt" height="27"></td>
<td bgcolor="#EFEFEF">
<div class="style5">SP-2</div>
</td>
<td bgcolor="#EFEFEF">
<div class="style5">SP-9</div>
</td>
<td bgcolor="#EFEFEF">
<div class="style5">SP-49</div>
</td>
<td bgcolor="#EFEFEF">
<div class="style5">SP-249</div>
</td>
</tr>
<tr>
<td class="txt" width="210" height="27">
<div class="style6">1</div>
</td>
<td class="txt" width="119">
<div class="style6">40</div>
</td>
<td class="txt" width="143">
<div class="style6">640</div>
</td>
<td class="txt" width="138">
<div class="style6">4320</div>
</td>
<td class="txt" width="153">
<div class="style6">24800</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">2</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">80</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">1280</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">8640</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">49600</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">3</div>
</td>
<td class="txt">
<div class="style6">160</div>
</td>
<td class="txt">
<div class="style6">2560</div>
</td>
<td class="txt">
<div class="style6">17280</div>
</td>
<td class="txt">
<div class="style6">99200</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">4</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">320</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">5120</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">34560</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">198400</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">5</div>
</td>
<td class="txt">
<div class="style6">640</div>
</td>
<td class="txt">
<div class="style6">10240</div>
</td>
<td class="txt">
<div class="style6">69120</div>
</td>
<td class="txt">
<div class="style6">396800</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">6</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">1280</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">20480</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">138240</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">793600</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">7</div>
</td>
<td class="txt">
<div class="style6">2560</div>
</td>
<td class="txt">
<div class="style6">40960</div>
</td>
<td class="txt">
<div class="style6">276480</div>
</td>
<td class="txt">
<div class="style6">1587200</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">8</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">5120</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">81920</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">552960</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">3174400</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">9</div>
</td>
<td class="txt">
<div class="style6">10240</div>
</td>
<td class="txt">
<div class="style6">163840</div>
</td>
<td class="txt">
<div class="style6">1105920</div>
</td>
<td class="txt">
<div class="style6">6348800</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">10</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">20480</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">327680</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">2211840</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">12697600</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">11</div>
</td>
<td class="txt">
<div class="style6">40960</div>
</td>
<td class="txt">
<div class="style6">655360</div>
</td>
<td class="txt">
<div class="style6">4423680</div>
</td>
<td class="txt">
<div class="style6">25395200</div>
</td>
</tr>
<tr>
<td class="txt" height="27" bgcolor="#EEEEEE">
<div class="style6">12</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">81920</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">1310720</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">8847360</div>
</td>
<td class="txt" bgcolor="#EEEEEE">
<div class="style6">50790400</div>
</td>
</tr>
<tr>
<td class="txt" height="27">
<div class="style6">Total</div>
</td>
<td class="txt">
<div class="style6">163800</div>
</td>
<td class="txt">
<div class="style6">2620800</div>
</td>
<td class="txt">
<div class="style6">17690400</div>
</td>
<td class="txt">
<div class="style6">101556000</div>
</td>
</tr>
</tbody>
</table>
<table class="txt" border="1" cellspacing="0" cellpadding="0" width="90%">
<col width="156"></col>
<col width="146"></col>
<col width="102"></col>
<col width="130"></col>
<col width="108"></col>
<col width="99"></col>
<col width="127"></col>
<tbody>
<tr>
<td width="211" height="27" bgcolor="#EFEFEF">
<div class="style6">Closing</div>
</td>
<td colspan="6" bgcolor="#EFEFEF">
<div class="style6">If You Enter with Units</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">Your Entrance</div>
</td>
<td width="182">
<div class="style6">2</div>
</td>
<td width="64">
<div><span class="style6"> </span></div>
</td>
<td width="57">
<div class="style6">9</div>
</td>
<td width="73">
<div class="style6">9</div>
</td>
<td width="62">
<div class="style6">49</div>
</td>
<td width="59">
<div class="style6">249</div>
</td>
</tr>
<tr>
<td>
<div>Referral Income<br />
(Per Refer)</div>
</td>
<td>
<div>Rs. 500/-</div>
</td>
<td></td>
<td>Rs. 600/-</td>
<td>
<div>Rs. 600/-</div>
</td>
<td>
<div>Rs. 650/-</div>
</td>
<td>
<div>Rs. 680/-</div>
</td>
</tr>
<tr>
<td height="24">
<div class="style6">Reffred Unit</div>
</td>
<td>
<div class="style6">2, 9, 49 and    249</div>
</td>
<td>
<div class="style6">2</div>
</td>
<td>
<div class="style6">9</div>
</td>
<td>
<div class="style6">49, 249</div>
</td>
<td>
<div class="style6">49, 249</div>
</td>
<td>
<div class="style6">249</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">1</div>
</td>
<td>
<div class="style6">40</div>
</td>
<td>
<div class="style6">40</div>
</td>
<td>
<div class="style6">80</div>
</td>
<td>
<div class="style6">160</div>
</td>
<td>
<div class="style6">180</div>
</td>
<td>
<div class="style6">220</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">2</div>
</td>
<td>
<div class="style6">80</div>
</td>
<td>
<div class="style6">80</div>
</td>
<td>
<div class="style6">160</div>
</td>
<td>
<div class="style6">320</div>
</td>
<td>
<div class="style6">360</div>
</td>
<td>
<div class="style6">440</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">3</div>
</td>
<td>
<div class="style6">160</div>
</td>
<td>
<div class="style6">160</div>
</td>
<td>
<div class="style6">320</div>
</td>
<td>
<div class="style6">640</div>
</td>
<td>
<div class="style6">720</div>
</td>
<td>
<div class="style6">880</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">4</div>
</td>
<td>
<div class="style6">320</div>
</td>
<td>
<div class="style6">320</div>
</td>
<td>
<div class="style6">640</div>
</td>
<td>
<div class="style6">1280</div>
</td>
<td>
<div class="style6">1440</div>
</td>
<td>
<div class="style6">1760</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">5</div>
</td>
<td>
<div class="style6">640</div>
</td>
<td>
<div class="style6">640</div>
</td>
<td>
<div class="style6">1280</div>
</td>
<td>
<div class="style6">2560</div>
</td>
<td>
<div class="style6">2880</div>
</td>
<td>
<div class="style6">3520</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">6</div>
</td>
<td>
<div class="style6">1280</div>
</td>
<td>
<div class="style6">1280</div>
</td>
<td>
<div class="style6">2560</div>
</td>
<td>
<div class="style6">5120</div>
</td>
<td>
<div class="style6">5760</div>
</td>
<td>
<div class="style6">7040</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">7</div>
</td>
<td>
<div class="style6">2560</div>
</td>
<td>
<div class="style6">2560</div>
</td>
<td>
<div class="style6">5120</div>
</td>
<td>
<div class="style6">10240</div>
</td>
<td>
<div class="style6">11520</div>
</td>
<td>
<div class="style6">14080</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">8</div>
</td>
<td>
<div class="style6">5120</div>
</td>
<td>
<div class="style6">5120</div>
</td>
<td>
<div class="style6">10240</div>
</td>
<td>
<div class="style6">20480</div>
</td>
<td>
<div class="style6">23040</div>
</td>
<td>
<div class="style6">28160</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">9</div>
</td>
<td>
<div class="style6">10240</div>
</td>
<td>
<div class="style6">10240</div>
</td>
<td>
<div class="style6">20480</div>
</td>
<td>
<div class="style6">40960</div>
</td>
<td>
<div class="style6">46080</div>
</td>
<td>
<div class="style6">56320</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">10</div>
</td>
<td>
<div class="style6">20480</div>
</td>
<td>
<div class="style6">20480</div>
</td>
<td>
<div class="style6">40960</div>
</td>
<td>
<div class="style6">81920</div>
</td>
<td>
<div class="style6">92160</div>
</td>
<td>
<div class="style6">112640</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">11</div>
</td>
<td>
<div class="style6">40960</div>
</td>
<td>
<div class="style6">40960</div>
</td>
<td>
<div class="style6">81920</div>
</td>
<td>
<div class="style6">163840</div>
</td>
<td>
<div class="style6">184320</div>
</td>
<td>
<div class="style6">225280</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">12</div>
</td>
<td>
<div class="style6">81920</div>
</td>
<td>
<div class="style6">81920</div>
</td>
<td>
<div class="style6">163840</div>
</td>
<td>
<div class="style6">327680</div>
</td>
<td>
<div class="style6">368640</div>
</td>
<td>
<div class="style6">450560</div>
</td>
</tr>
<tr>
<td height="27">
<div class="style6">Total</div>
</td>
<td>
<div class="style6">163800</div>
</td>
<td>
<div class="style6">163800</div>
</td>
<td>
<div class="style6">327600</div>
</td>
<td>
<div class="style6">655200</div>
</td>
<td>
<div class="style6">737100</div>
</td>
<td>
<div class="style6">900900</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>
To know more &#8211; Call me on 9823489847.</p>
<br />Filed under: <a href='http://prasadwagholikar.wordpress.com/category/india/'>India</a>, <a href='http://prasadwagholikar.wordpress.com/category/maharashtra/'>Maharashtra</a>, <a href='http://prasadwagholikar.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=199&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2010/07/04/life-is-full-of-competitiondont-sleep-wakeup-and-see-the-miracle-in-your-life-earn-fast-money-with-gold-scheme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>

		<media:content url="images/businessplan.jpg" medium="image" />
	</item>
		<item>
		<title>category wise user management in Joomla (part 2)</title>
		<link>http://prasadwagholikar.wordpress.com/2009/08/18/173/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/08/18/173/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 07:20:17 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=173</guid>
		<description><![CDATA[Before reading this post you have to read category wise user management in Joomla (part 1) post and follow the steps. In category wise user management in Joomla (part 1) we have discussed how can we disable an edit button for the category user on unassociated category articles  . But the problem is when we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=173&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Before reading this post you have to read <a href="http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/#more-131">category wise user management in Joomla (part 1)</a> post and follow the steps.</p>
<p>In <a href="http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/#more-131">category wise user management in Joomla (part 1)</a> we have discussed how can we disable an edit button for the category user on unassociated category articles  . But the problem is when we login through frontend as an editor , we get complete list of newly added articles , even a user is category user we get the list of new articles from all categories to edit , hence whatever we discussed in   <a href="http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/#more-131">category wise user management in Joomla (part 1)</a> post , the results of the post can be applicable only if article is already published , But what about newly added articles? How can we display only associated category article list which are not published or which are in their first publishing cycle  .</p>
<p>I am using “com_camelcitycontent2” component , using the component I can create 2 links , 1st is to submit articles and 2nd is for view articles (to edit and to publish) . Once I login through front end I am getting the link “view articles” . You can manage your menu through administrator . Once I click the “view article” link . I am getting the list of all newly added article. But as we have make our users category wise in post <a href="http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/#more-131">category wise user management in Joomla (part 1)</a> , we should get the list of only those articles whose categories are associated with us . But we are getting all articles to edit and publish .</p>
<p>I have added some lines of code to solve the problem .<br />
<span id="more-173"></span><br />
1. Open the File \components\com_camelcitycontent2\models\all.php<br />
2. Find out the function function _buildContentWhere()<br />
3. Replace the function with following function</p>
<p><span style="color:#ff0000;">function _buildContentWhere()</span></p>
<p><span style="color:#ff0000;">{</span></p>
<p><span style="color:#ff0000;">global $camelcity_delete, $camelcity_help, $camelcity_introtext, $camelcity_order, $camelcity_published, $camelcity_section, $camelcity_search, $camelcity_state, $limit, $limitstart,$mainframe, $option, $paramlimit, $template;</span></p>
<p><span style="color:#ff0000;">$user =&amp; JFactory::getUser();</span></p>
<p><span style="color:#ff0000;">$where = array();</span></p>
<p><span style="color:#ff0000;">$where[] = &#8216;a.id IS NOT NULL&#8217;;</span></p>
<p><span style="color:#ff0000;">if ($user-&gt;authorize(&#8216;com_content&#8217;, &#8216;edit&#8217;, &#8216;content&#8217;, &#8216;all&#8217;)) {</span></p>
<p><span style="color:#ff0000;">$where[] = &#8216;a.created_by IS NOT NULL&#8217;;</span></p>
<p><span style="color:#ff0000;">} else {</span></p>
<p><span style="color:#ff0000;">$where[] = &#8216;a.created_by = &#8216;. $user-&gt;id;</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if ($camelcity_search) {</span></p>
<p><span style="color:#ff0000;">$where[] = &#8216;(a.title LIKE &#8216;.$this-&gt;_db-&gt;Quote(&#8216;%&#8217;.$camelcity_search.&#8217;%'). &#8216; OR a.introtext LIKE &#8216;.$this-&gt;_db-&gt;Quote(&#8216;%&#8217;.$camelcity_search.&#8217;%').&#8217;)';</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if ($camelcity_published==&#8221;1&#8243;) { //both</span></p>
<p><span style="color:#ff0000;">$where[] = &#8220;a.state != -2&#8243;;</span></p>
<p><span style="color:#ff0000;">} elseif($camelcity_published==&#8221;2&#8243;) { // published</span></p>
<p><span style="color:#ff0000;">$where[] = &#8220;a.state = 1&#8243;;</span></p>
<p><span style="color:#ff0000;">} elseif($camelcity_published==&#8221;3&#8243;) { // not published</span></p>
<p><span style="color:#ff0000;">$where[] = &#8220;a.state = 0&#8243;;</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if ($camelcity_section) {</span></p>
<p><span style="color:#ff0000;">$where[] = &#8220;a.sectionid=&#8221;.$camelcity_section;</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">/* &#8212;- The code is added by prasad &#8212;- Purpose is content category wise user management &#8212;&#8212;*/</span></p>
<p><span style="color:#ff0000;">session_start();</span></p>
<p><span style="color:#ff0000;">$userParams=array();</span></p>
<p><span style="color:#ff0000;">$a=array();</span></p>
<p><span style="color:#ff0000;">$userParams=explode(&#8220;\n&#8221;,$_SESSION['__default']["user"]-&gt;params);</span></p>
<p><span style="color:#ff0000;">for($i=0;$i&lt;count($userParams);$i++)</span></p>
<p><span style="color:#ff0000;">{</span></p>
<p><span style="color:#ff0000;">$userParamskey=explode(&#8220;=&#8221;,$userParams[$i]);</span></p>
<p><span style="color:#ff0000;">$a[$userParamskey[0]]=$userParamskey[1];</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if ($a["categoryuser"]==&#8221;1&#8243;) {</span></p>
<p><span style="color:#ff0000;">$userParams=explode(&#8220;,&#8221;,$a["categories"]);</span></p>
<p><span style="color:#ff0000;">for($i=0;$i&lt;count($userParams);$i++)</span></p>
<p><span style="color:#ff0000;">{</span></p>
<p><span style="color:#ff0000;">if($i==0)</span></p>
<p><span style="color:#ff0000;">{</span></p>
<p><span style="color:#ff0000;">$wherecat = &#8220;(a.catid=&#8221;.$userParams[0];</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">else</span></p>
<p><span style="color:#ff0000;">{</span></p>
<p><span style="color:#ff0000;">$wherecat .= &#8221; or a.catid=&#8221;.$userParams[$i];</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">$wherecat.=&#8221; )&#8221;;</span></p>
<p><span style="color:#ff0000;">$where[]=$wherecat;</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">/* &#8212;- End of The code added by prasad &#8212;- Purpose is content category wise user management &#8212;&#8212;*/</span></p>
<p><span style="color:#ff0000;">$where = ( count( $where ) ? &#8216; WHERE &#8216;. implode( &#8216; AND &#8216;, $where ) : &#8221; );</span></p>
<p><span style="color:#ff0000;">$where .= &#8216; ORDER BY &#8216; .$camelcity_order;</span></p>
<p><span style="color:#ff0000;">return $where;</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p>4) Save the file</p>
<p>After replacing the function , you will get only those associated article list to edit or publish if the user is category user .</p>
<p><span style="color:#ff0000;">&#8220;I have used these techniques to enhance my application and to meet my client requirements ,  please take backups of your stuff before changing or replacing anything , These changes are done for joomla 1.5.8 version&#8221;</span></p>
<br />Posted in CMS, Joomla, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=173&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/08/18/173/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Health Minister and Health Department of India should apologize for Rida’s death due to H1N1 or should give Resignation..</title>
		<link>http://prasadwagholikar.wordpress.com/2009/08/09/health-minister-and-health-department-of-india-should-apologize-for-rida%e2%80%99s-death-due-to-h1n1-or-should-give-resignation/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/08/09/health-minister-and-health-department-of-india-should-apologize-for-rida%e2%80%99s-death-due-to-h1n1-or-should-give-resignation/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 13:30:22 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[India]]></category>
		<category><![CDATA[Maharashtra]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=145</guid>
		<description><![CDATA[The deadly virus of swine flu H1N1 started spreading in foreign countries in February 2009 , It started killing people continuously after February 2009 , It kills near about 1500 people in world  till July 2009 , Indian government knows these facts , then why didn’t they prepared against swine flu . Health department had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=145&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The deadly virus of swine flu H1N1 started spreading in foreign countries in February 2009 , It started killing people continuously after February 2009 , It kills near about 1500 people in world  till July 2009 , Indian government knows these facts , then why didn’t they prepared against swine flu . Health department had 4 months for preparation . Were they sleeping or waiting for H1N1 to be welcome it in India?<br />
<span id="more-145"></span><br />
Nobody was taking H1N1 seriously before Rida’s death , Everybody knows that this deadly virus would be a reason for death of many people in India ? But Our Health department was waiting for first death , And that was Rida . What’s the Mistake of Rida ? She was just 14 years old girl , she even didn’t know what is swine flu ? Nobody was knowing what is swine flu. After Rida’s death everybody start testing themselves, Government start taking  it seriously  ,  helpline centers started , test centers started  and more than 500 positive cases were found in India . Rida has sacrificed her Life to waken up Indian people.</p>
<p>Health Minister Gulam Nabi Azaad said that due to Rida 80 people are infected by swine flu in pune and Maharashtra&#8217;s  chief minister are mixing &#8220;yes yes&#8221; in his statement. What is the logic behind this ? How Rida is responsible? According to me Health department is responsible for swine flu cases . They could start medical checkup at airport as soon as possible. But they were taking it lightly. In medical checkup at airport, they were just asking about symptoms and no tests were carried out for people coming from foreign countries. Hence swine flu cases raised in India and Rida died because of it .</p>
<p>How Gulam Nabi given the statement like this , He didn’t prepared any plans and guidelines to fight with H1N1 . If we were prepared for H1N1 attack , If we were successfully stopped H1N1 at airport then It could save Rida’s life . But Health department was busy in watching  foreign news of deaths due to swine flu .</p>
<p>Health minister should apologize for his statement or should give resignation. Because he is failed to protect us  .</p>
<br />Posted in India, Maharashtra  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=145&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/08/09/health-minister-and-health-department-of-india-should-apologize-for-rida%e2%80%99s-death-due-to-h1n1-or-should-give-resignation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Please remember Kargil Victory &#8230;</title>
		<link>http://prasadwagholikar.wordpress.com/2009/07/26/please-remember-kargil-victory/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/07/26/please-remember-kargil-victory/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 09:20:46 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[History]]></category>
		<category><![CDATA[India]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=140</guid>
		<description><![CDATA[26 july , Kargil victory day , the war between India and Pakistan (and POK terrorists) which was at the topmost position of Kargil . The first war at great height. The 10 years completed on 26 july 2009 , In India the day celebrated as Victory Day. The kargil war is known as the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=140&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>26 july , Kargil victory day , the war between India and Pakistan (and POK terrorists) which was at the topmost position of Kargil . The first war at great height.</p>
<p>The 10 years completed on 26 july 2009 , In India the day celebrated as Victory Day.<br />
<span id="more-140"></span><br />
The kargil war is known as the war between two countries at the topmost height. India and Indian army had sacrifice many things in Kargil war hence we should remember the fantastic victory and the commandos who sacrifice their life to win this war.</p>
<p>In Kargil war , total 527 officers were died and 1363 were critically injured . The Pak army and terrorists had taken control of Indian army posts . To get it back  Indian commandos were fight from may to july 1999 and finally India becomes victorious.</p>
<p>The real victory started after getting control of <strong>“</strong><strong>Tiger hills</strong><strong>”</strong><strong> . </strong> Tiger Hills is 16000 ft high from bottom of the sea. <strong>“</strong><strong>18 grenadiers battalion</strong><strong>”</strong><strong> </strong>had climbed this tallest hill by climbing for more than 13 hours continuously fighting with POK terrorists and Pak Army. The leader for this battalion was leftnant karnal Prasad Mijar .</p>
<p>The world opinion about Pakistan had changed after Kargil war . The Pak known as attacking country after Kargil war . Other countries started criticizing Pakistan because Pak had crossed LOC. As usual Pakistan claimed that it was for Kashmir freedom and treated the terrorists as freedom fighters but all Pakistan plans were failed in Kargil war because of diplomatic pressure from other countries and power of Indian Army. The great thing was the well known allies of Pakistan i.e US and CHINA did not support Pakistan . The Pakistan were at the backfoot hence they planned nuclear strike to India , But due to the pressure from the world Pak didn’t get success.</p>
<p>Some pictures of Kargil victory</p>
<p style="text-align:center;">
<div class="wp-caption aligncenter" style="width: 210px"><a href="http://en.wikipedia.org/wiki/Kargil_War"><img title="Victory" src="http://upload.wikimedia.org/wikipedia/en/0/04/Vajpayee_Victory.jpg" alt="Kargil victory" width="200" height="214" /></a><p class="wp-caption-text">Kargil victory</p></div>
<p><img class="aligncenter" src="http://points2bid.com/news/wp-content/uploads/2009/06/kargil-war-war-against-terror1.jpg" alt="" width="512" height="411" /><img class="aligncenter" src="http://ikashmir.net/kargilheroes/images/war.jpg" alt="" width="675" height="455" /></p>
<p style="text-align:center;">
<p style="text-align:center;"><img class="alignnone" src="http://newsimg.bbc.co.uk/media/images/44714000/jpg/_44714396_kargil_ap.jpg" alt="" width="226" height="282" /></p>
<p style="text-align:center;">
<p style="text-align:center;"><img class="alignnone" src="http://www.defenseindustrydaily.com/images/ORD_FH-77B_India_Kargil_Firing_lg.jpg" alt="" width="750" height="413" /></p>
<p style="text-align:center;">
<p style="text-align:center;"><img class="alignnone" src="http://frontierindia.net/wp-content/uploads/defenceresearch/asl/Agni-1.jpg" alt="" width="284" height="350" /></p>
<br />Posted in History, India  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=140&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/07/26/please-remember-kargil-victory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/en/0/04/Vajpayee_Victory.jpg" medium="image">
			<media:title type="html">Victory</media:title>
		</media:content>

		<media:content url="http://points2bid.com/news/wp-content/uploads/2009/06/kargil-war-war-against-terror1.jpg" medium="image" />

		<media:content url="http://ikashmir.net/kargilheroes/images/war.jpg" medium="image" />

		<media:content url="http://newsimg.bbc.co.uk/media/images/44714000/jpg/_44714396_kargil_ap.jpg" medium="image" />

		<media:content url="http://www.defenseindustrydaily.com/images/ORD_FH-77B_India_Kargil_Firing_lg.jpg" medium="image" />

		<media:content url="http://frontierindia.net/wp-content/uploads/defenceresearch/asl/Agni-1.jpg" medium="image" />
	</item>
		<item>
		<title>category wise user management in Joomla (part 1)</title>
		<link>http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/#comments</comments>
		<pubDate>Tue, 12 May 2009 09:52:47 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=131</guid>
		<description><![CDATA[Joomla 1.5.8 user management component have some limitation , There you cant give user rights on category basis , If user &#8220;xyz&#8221; is an editor then he can edit all the contents in all categories , But if there is an requirement that user &#8220;xyz&#8221; can edit only category &#8220;abc&#8221; then what to do ? [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=131&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Joomla 1.5.8 user management component have some limitation , There you cant give user rights on category basis , If user &#8220;xyz&#8221; is an editor then he can edit all the contents in all categories , But if there is an requirement that user &#8220;xyz&#8221; can edit only category &#8220;abc&#8221; then what to do ? Current Joomla 1.5.8  components dont have this built in functionality, And all extensions related this are commercial , So In this opensource world we dont need to buy component for this functionality , I have found some simple code which we need to add in some files of Joomla .<br />
<span id="more-131"></span><br />
Here are the steps to do it</p>
<p>1) Open \administrator\components\com_users\models\author.xml</p>
<p>2) Replace the  existing code by following code</p>
<p><span style="color:#ff0000;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;form&gt;<br />
&lt;params&gt;<br />
&lt;param name=&#8221;admin_language&#8221; type=&#8221;languages&#8221; client=&#8221;administrator&#8221; default=&#8221;" label=&#8221;Back-end Language&#8221; description=&#8221;paramAdminLanguage&#8221; /&gt;<br />
&lt;param name=&#8221;language&#8221; type=&#8221;languages&#8221; client=&#8221;site&#8221; default=&#8221;" label=&#8221;Front-end Language&#8221; description=&#8221;paramLanguage&#8221; /&gt;<br />
&lt;param name=&#8221;editor&#8221; type=&#8221;editors&#8221; default=&#8221;" label=&#8221;User Editor&#8221; description=&#8221;WYSIWYG Editor for this User&#8221; /&gt;<br />
&lt;param name=&#8221;helpsite&#8221; type=&#8221;helpsites&#8221; default=&#8221;" label=&#8221;Help Site&#8221; description=&#8221;Help Site for this User&#8221; /&gt;<br />
&lt;param name=&#8221;timezone&#8221; type=&#8221;timezones&#8221; default=&#8221;" label=&#8221;Time Zone&#8221; description=&#8221;Time Zone for this User&#8221; /&gt;<br />
&lt;param name=&#8221;categoryuser&#8221; type=&#8221;list&#8221; default=&#8221;" label=&#8221;Category based user&#8221; description=&#8221;If yes user permission restricted to category wise, Enter the ids of categories in Associated Categories field &#8221; &gt;<br />
&lt;option value=&#8221;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;<br />
&lt;param name=&#8221;categories&#8221; type=&#8221;text&#8221; default=&#8221;" size=&#8221;80&#8243; label=&#8221;Associated Categories&#8221; description=&#8221;Enter the categories ID , for multiple categories comma separated &#8221; /&gt;<br />
&lt;/params&gt;<br />
&lt;/form&gt;</span></p>
<p>3) Open \administrator\components\com_users\models\user.xml</p>
<p>4) Replace the  existing code by following code</p>
<p><span style="color:#ff0000;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;form&gt;<br />
&lt;params&gt;<br />
&lt;param name=&#8221;admin_language&#8221; type=&#8221;languages&#8221; client=&#8221;administrator&#8221; default=&#8221;" label=&#8221;Back-end Language&#8221; description=&#8221;paramAdminLanguage&#8221; /&gt;<br />
&lt;param name=&#8221;language&#8221; type=&#8221;languages&#8221; client=&#8221;site&#8221; default=&#8221;" label=&#8221;Front-end Language&#8221; description=&#8221;paramLanguage&#8221; /&gt;<br />
&lt;param name=&#8221;editor&#8221; type=&#8221;editors&#8221; default=&#8221;" label=&#8221;User Editor&#8221; description=&#8221;WYSIWYG Editor for this User&#8221; /&gt;<br />
&lt;param name=&#8221;helpsite&#8221; type=&#8221;helpsites&#8221; default=&#8221;" label=&#8221;Help Site&#8221; description=&#8221;Help Site for this User&#8221; /&gt;<br />
&lt;param name=&#8221;timezone&#8221; type=&#8221;timezones&#8221; default=&#8221;" label=&#8221;Time Zone&#8221; description=&#8221;Time Zone for this User&#8221; /&gt;<br />
&lt;param name=&#8221;categoryuser&#8221; type=&#8221;list&#8221; default=&#8221;" label=&#8221;Category based user&#8221; description=&#8221;If yes user permission restricted to category wise, Enter the ids of categories in Associated Categories field &#8221; &gt;<br />
&lt;option value=&#8221;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;<br />
&lt;param name=&#8221;categories&#8221; type=&#8221;text&#8221; default=&#8221;" size=&#8221;80&#8243; label=&#8221;Associated Categories&#8221; description=&#8221;Enter the categories ID , for multiple categories comma separated &#8221; /&gt;<br />
&lt;/params&gt;<br />
&lt;/form&gt;</span></p>
<p>5) Now open the file \components\com_content\helpers\icon.php</p>
<p>6) Find out edit function and replace that edit function by following updated edit function</p>
<p><span style="color:#ff0000;">function edit($article, $params, $access, $attribs = array())<br />
{<br />
$user =&amp; JFactory::getUser();<br />
$uri =&amp; JFactory::getURI();<br />
$ret = $uri-&gt;toString();</span></p>
<p><span style="color:#ff0000;">if ($params-&gt;get(&#8216;popup&#8217;)) {<br />
return;<br />
}</span></p>
<p><span style="color:#ff0000;">if ($article-&gt;state &lt; 0) {<br />
return;<br />
}</span></p>
<p><span style="color:#ff0000;">/* &#8212;- The code is added by prasad &#8212;- Purpose is content category wise user management &#8212;&#8212;*/</span></p>
<p><span style="color:#ff0000;">$userParams=array();<br />
$a=array();</span></p>
<p><span style="color:#ff0000;">$userParams=explode(&#8220;\n&#8221;,$_SESSION['__default']["user"]-&gt;params);</span></p>
<p><span style="color:#ff0000;">for($i=0;$i&lt;count($userParams);$i++)<br />
{<br />
$userParamskey=explode(&#8220;=&#8221;,$userParams[$i]);<br />
$a[$userParamskey[0]]=$userParamskey[1];</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if($a["categoryuser"]==&#8221;1&#8243;)<br />
{</span></p>
<p><span style="color:#ff0000;">$userParams=explode(&#8220;,&#8221;,$a["categories"]);<br />
$userPermit=false;<br />
for($i=0;$i&lt;count($userParams);$i++)<br />
{</span></p>
<p><span style="color:#ff0000;">if($article-&gt;catid==$userParams[$i])<br />
{<br />
$userPermit=true;<br />
}<br />
}<br />
if(!$userPermit)<br />
{</span></p>
<p><span style="color:#ff0000;">return;<br />
}<br />
}</span></p>
<p><span style="color:#ff0000;">/* &#8212;- End of The code added by prasad &#8212;- Purpose is content category wise user management &#8212;&#8212;*/</span></p>
<p><span style="color:#ff0000;">if (!$access-&gt;canEdit &amp;&amp; !($access-&gt;canEditOwn &amp;&amp; $article-&gt;created_by == $user-&gt;get(&#8216;id&#8217;))) {<br />
return;<br />
}</span></p>
<p><span style="color:#ff0000;">JHTML::_(&#8216;behavior.tooltip&#8217;);</span></p>
<p><span style="color:#ff0000;">$url = &#8216;index.php?view=article&amp;id=&#8217;.$article-&gt;slug.&#8217;&amp;task=edit&amp;ret=&#8217;.base64_encode($ret);<br />
$icon = $article-&gt;state ? &#8216;edit.png&#8217; : &#8216;edit_unpublished.png&#8217;;<br />
$text = JHTML::_(&#8216;image.site&#8217;, $icon, &#8216;/images/M_images/&#8217;, NULL, NULL, JText::_(&#8216;Edit&#8217;));</span></p>
<p><span style="color:#ff0000;">if ($article-&gt;state == 0) {<br />
$overlib = JText::_(&#8216;Unpublished&#8217;);<br />
} else {<br />
$overlib = JText::_(&#8216;Published&#8217;);<br />
}<br />
$date = JHTML::_(&#8216;date&#8217;, $article-&gt;created);<br />
$author = $article-&gt;created_by_alias ? $article-&gt;created_by_alias : $article-&gt;author;</span></p>
<p><span style="color:#ff0000;">$overlib .= &#8216;&amp;lt;br /&amp;gt;&#8217;;<br />
$overlib .= JText::_($article-&gt;groups);<br />
$overlib .= &#8216;&amp;lt;br /&amp;gt;&#8217;;<br />
$overlib .= $date;<br />
$overlib .= &#8216;&amp;lt;br /&amp;gt;&#8217;;<br />
$overlib .= $author;</span></p>
<p><span style="color:#ff0000;">$button = JHTML::_(&#8216;link&#8217;, JRoute::_($url), $text);</span></p>
<p><span style="color:#ff0000;">$output = &#8216;&lt;span title=&#8221;&#8216;.JText::_( &#8216;Edit Item&#8217; ).&#8217; :: &#8216;.$overlib.&#8217;&#8221;&gt;&#8217;.$button.&#8217;&lt;/span&gt;&#8217;;<br />
return $output;<br />
}</span></p>
<p>7) Now go to admin , user manager ,  add new user , there in RHS , In parameter block , 2 parameters added</p>
<p style="padding-left:30px;">a) <strong>Category Based user</strong></p>
<p style="padding-left:30px;">b) <strong>Associated Categories</strong></p>
<p style="padding-left:30px;">If<strong> Category Based user</strong> field is set to <strong>yes </strong>then the enter the associated category ids in<strong> Associated Categories <strong>field </strong></strong>which we want to associate for the user . and save it ,  If that newly created user log in from frontend then he will have access only for those associated categories.</p>
<p style="padding-left:30px;">If  <strong>Category Based user</strong> field is set to <strong>No then user have access to all the categories .</strong></p>
<p style="padding-left:30px;"><strong>For More info : mail me @<span style="color:#0000ff;"> prasadwagholikar@in.com</span></strong></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;">
<p style="padding-left:30px;"><span style="color:#ff0000;"><strong>&#8221; </strong>Due to these changes the edit image or button will not be displayed with the unassociated categories article , it will be displayed only with associated categories for the user  , It can be useful for editor and publisher once they visit those category articles pages after login , But if they login through frontend then editor will get list of newly added articles to edit . Those articles can be from any categories, hence these changes wont affect there for the newly added articles  ,  this is a limitation for publisher also , he  also get the list from all categories. I am using <strong> com_camelcitycontent2</strong><strong> </strong>component and I have made some changes in that component to achieve these requirements for my client  &#8221; </span> Read <a href="http://prasadwagholikar.wordpress.com/2009/08/18/173/#more-173">category wise user management in Joomla (part 2)</a> to know how can we  achieve that?</p>
<p style="padding-left:30px;">
<p style="padding-left:30px;"><span style="color:#800000;">&#8220;I have used these techniques to enhance my application and to meet my client requirements ,  please take backups of your stuff before changing or replacing anything , These changes are done for joomla 1.5.8 version&#8221;</span></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;"><strong><br />
</strong></p>
<br />Posted in CMS, Joomla, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=131&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/05/12/category-wise-user-management-in-joomla/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Joomla Custom search php script to tackle with search problem .</title>
		<link>http://prasadwagholikar.wordpress.com/2009/05/06/joomla-custom-search-php-script-to-tackle-with-search-problem/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/05/06/joomla-custom-search-php-script-to-tackle-with-search-problem/#comments</comments>
		<pubDate>Wed, 06 May 2009 09:28:05 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=123</guid>
		<description><![CDATA[Hi , The following script is for custom search of joomla article, 1) create new file with name searchArticles.php 2) Save the following script in searchArticles.php &#60;form name=&#8221;searchForm&#8221;  id=&#8221;searchForm&#8221; action=&#8221;searchArticles.php&#8221; method=&#8221;post&#8221; enctype=&#8221;multipart/form-data&#8221;&#62; &#60;input type=&#8221;text&#8221; name=&#8221;searchkeyword&#8221; class=&#8221;mrgnL10 wid120 txtBox&#8221; id=&#8221;searchkeyword&#8221; maxlength=&#8221;100&#8243; alt=&#8221;go&#8221; size=&#8221;20&#8243; value=&#8221;Search &#8220;  onblur=&#8221;if(this.value==&#8221;) this.value=&#8217;Search&#8217;;&#8221; onfocus=&#8221;if(this.value==&#8217;Search&#8217;) this.value=&#8221;;&#8221; /&#62; &#60;input type=&#8221;submit&#8221;  name=&#8221;submit&#8221; class=&#8221;topGo&#8221;  id=&#8221;submit&#8221; value=&#8221;Go&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=123&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi ,</p>
<p>The following script is for custom search of joomla article,</p>
<p>1) create new file with name searchArticles.php</p>
<p>2) Save the following script in searchArticles.php<br />
<span id="more-123"></span><span style="color:#ff0000;"><br />
&lt;form name=&#8221;searchForm&#8221;  id=&#8221;searchForm&#8221; action=&#8221;searchArticles.php&#8221; method=&#8221;post&#8221; enctype=&#8221;multipart/form-data&#8221;&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;searchkeyword&#8221; class=&#8221;mrgnL10 wid120 txtBox&#8221; id=&#8221;searchkeyword&#8221; maxlength=&#8221;100&#8243; alt=&#8221;go&#8221; size=&#8221;20&#8243; value=&#8221;Search &#8220;  onblur=&#8221;if(this.value==&#8221;) this.value=&#8217;Search&#8217;;&#8221; onfocus=&#8221;if(this.value==&#8217;Search&#8217;) this.value=&#8221;;&#8221; /&gt;<br />
&lt;input type=&#8221;submit&#8221;  name=&#8221;submit&#8221; class=&#8221;topGo&#8221;  id=&#8221;submit&#8221; value=&#8221;Go&#8221; /&gt;<br />
&lt;/form&gt;<br />
</span></p>
<p><span style="color:#ff0000;">&lt;?php<br />
########### Search for Joomla Website ############<br />
#Created By &#8211; Prasad Wagholikar #</span></p>
<p><span style="color:#ff0000;">#Purpose &#8211; Article search by keyword, External search #<br />
</span></p>
<p><span style="color:#ff0000;">#This file is responsible for custom search operation of Joomla  website.<br />
#######################################################<br />
?&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
.highlight_word{<br />
background-color: yellow; /* to change the searched word highlight color in searchresults.<br />
}<br />
&lt;/style&gt;</span></p>
<p><span style="color:#ff0000;">&lt;?php</span></p>
<p><span style="color:#ff0000;">DEFINE (&#8216;DB_USER&#8217;, &#8216;<span style="color:#008000;">username</span>&#8216;);<br />
DEFINE (&#8216;DB_PASSWORD&#8217;,&#8217;<span style="color:#008000;">password</span>&#8216;);<br />
DEFINE (&#8216;DB_HOST&#8217;, &#8216;<span style="color:#008000;">localhost</span>&#8216;);<br />
DEFINE (&#8216;DB_NAME&#8217;, &#8216;<span style="color:#008000;">your_database _name</span>&#8216;); // joomla database , change according to your parameters</span></p>
<p><span style="color:#ff0000;">// Make the connnection and then select the database.<br />
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die (&#8216;Could not connect to MySQL: &#8216; . mysql_error() );<br />
mysql_select_db (DB_NAME) OR die (&#8216;Could not select the database: &#8216; . mysql_error() ); // Connection to Mysql DB.</span></p>
<p><span style="color:#ff0000;">/**<br />
* @create links for searched articles<br />
* @param string $parent &#8211; parent id associated menu to searched article<br />
* @return string<br />
#Description : fetchParent function is used to fetch parent menu&#8217;s alias of articles and create article links.<br />
e.g if &#8216;abc&#8217; article have menu alias &#8216;abc&#8217; and &#8216;abc&#8217; menu is a submenu of &#8216;xyz&#8217;. then to access<br />
&#8216;abc&#8217; article we need to create link such as &#8220;/xyz/abc&#8221; . This recursive function can fetch<br />
parent menu&#8217;s alias at multiple level. Recursive functionality is used in this function .</p>
<p>*/</span></p>
<p><span style="color:#ff0000;">function fetchParent($parent)<br />
{</span></p>
<p><span style="color:#ff0000;">$query =&#8221;SELECT * from `<span style="color:#008000;">jos_menu</span>` where `id` = &#8220;.&#8217;\&#8221;.$parent.&#8217;\&#8221;;<br />
$result = mysql_db_query (DB_NAME, $query, LINK);<br />
while($menu = mysql_fetch_array($result))<br />
{<br />
if($menu['parent']==0)<br />
{<br />
return($menu['alias']);</span></p>
<p><span style="color:#ff0000;">}<br />
else<br />
{<br />
$menuF=fetchParent($menu['parent']).&#8221;/&#8221;.$menu['alias'];<br />
return $menuF;<br />
}<br />
}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">/**<br />
*<br />
* @highlight search words<br />
*<br />
* @param string $string<br />
*<br />
* @param array $words<br />
*<br />
* @return string<br />
*<br />
*/<br />
function highlightWords($string, $words)<br />
{<br />
foreach ( $words as $word )<br />
{<br />
$string = str_ireplace($word, &#8216;&lt;span class=&#8221;highlight_word&#8221;&gt;&#8217;.$word.&#8217;&lt;/span&gt;&#8217;, $string);<br />
}<br />
/*** return the highlighted string ***/<br />
return $string;<br />
}</span></p>
<p><span style="color:#ff0000;">/**<br />
*<br />
* @connect to database<br />
* Description : This is used to define param LINK and connect to database.<br />
*/</span></p>
<p><span style="color:#ff0000;">function dbConnect()<br />
{<br />
DEFINE (&#8216;LINK&#8217;, mysql_connect (DB_HOST, DB_USER, DB_PASSWORD));<br />
}</span></p>
<p><span style="color:#ff0000;">dbConnect(&#8220;<span style="color:#008000;">TABLE_NAME</span>&#8220;); //connect to  table<br />
$todayDate=date(&#8220;Y-m-d H:i:s&#8221;);<br />
$firstArray=Array(); // Array of introtext of searched articles<br />
$firstLinks=Array(); // Array of links of searched articles<br />
$firstIds=Array(); // Array of ids of searched articles<br />
$firstTitle=Array();  // Array of title of searched articles</span></p>
<p><span style="color:#ff0000;">$secondArray=Array(); // Second Array of introtext of searched articles this is filtered array of $firstArray<br />
$secondIds=Array(); //Second Array of ids of searched articles this is filtered array of $firstIds<br />
$secondTitle=Array(); //Second Array of title of searched articles this is filtered array of $firstTitle</span></p>
<p><span style="color:#ff0000;">$limit = 100; // Limit search results introtext string by $limit</span></p>
<p><span style="color:#ff0000;">if($_REQUEST['searchkeyword']==&#8221;")<br />
{</span></p>
<p><span style="color:#ff0000;">Echo &#8220;&lt;b&gt;Enter search keyword&lt;/b&gt;&#8221;; // if enetered searchword is empty</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">else<br />
{</span></p>
<p><span style="color:#ff0000;">$searchWord =&#8221;%&#8221;.$_REQUEST['searchkeyword'].&#8221;%&#8221;; // prepare like syntax for search</span></p>
<p><span style="color:#ff0000;">#select articles from DB which contains searchword, and which are published , ignore case studies and white paper category</span></p>
<p><span style="color:#ff0000;">$query =&#8221;SELECT * from `<span style="color:#008000;">jos_content</span>` where upper(`introtext`) like &#8220;.&#8217;\&#8221;.strtoupper($searchWord).&#8217;\&#8221;.&#8221; and state=&#8217;1&#8242; and publish_up &lt;= &#8220;.&#8217;\&#8221;.$todayDate.&#8217;\&#8221;.&#8221; and (publish_down &gt;= &#8220;.&#8217;\&#8221;.$todayDate.&#8217;\&#8221;.&#8221; or publish_down =&#8217;0000-00-00 00:00:00&#8242;) &#8220;;</span></p>
<p><span style="color:#ff0000;">$result = mysql_db_query (DB_NAME, $query, LINK);</span></p>
<p><span style="color:#ff0000;">while($row = mysql_fetch_array($result))<br />
{<br />
$row['introtext']=trim($row['introtext']); // trim spaces<br />
$row['introtext']=strip_tags($row['introtext']); // remove all HTML tags from string<br />
$row['introtext']=preg_replace( &#8216;/\s\s+/&#8217;,&#8221;, $row['introtext'] ); // remove all extra spaces from string</span></p>
<p><span style="color:#ff0000;">$row['introtext']=preg_replace (&#8220;/{(.*?)}/&#8221;,&#8221; &#8220;, $row['introtext']); // remove {accordion &#8230;.} plugin syntax<br />
$row['introtext']=str_replace (&#8220;||||&#8221;, &#8221; &#8220;, $row['introtext']);<br />
$row['introtext']=str_replace (&#8220;::&#8221;, &#8221; &#8220;, $row['introtext']);<br />
array_push($firstIds ,strip_tags($row['id'])); // Insert article id to $firstIds array<br />
array_push($firstArray ,strip_tags($row['introtext'])); // Insert article text to $firstIds array<br />
array_push($firstTitle ,strip_tags($row['title'])); // Insert article title to $firstIds array<br />
}</span></p>
<p><span style="color:#ff0000;">#for loop to fetch the links for searched articles</span></p>
<p><span style="color:#ff0000;">for($i=0;$i&lt;count($firstIds);$i++)<br />
{<br />
$menuString=&#8221;index.php?option=com_content&amp;view=article&amp;id=&#8221;.$firstIds[$i]; // prepared the string for search , refer jos_menu&#8230;<br />
$query1 =&#8221;SELECT * from `jos_menu` where `link` = &#8220;.&#8217;\&#8221;.$menuString.&#8217;\&#8221;; // table-&gt;field link syntax for more info.<br />
$result1 = mysql_db_query (DB_NAME, $query1, LINK);</span></p>
<p><span style="color:#ff0000;">while($menu1 = mysql_fetch_array($result1))<br />
{</span></p>
<p><span style="color:#ff0000;">#if article is at top e.g /xyz<br />
if($menu1['parent']==0)<br />
{</span></p>
<p><span style="color:#ff0000;">array_push($secondArray , $firstArray[$i]); // populate secondarray with article introtext<br />
array_push($firstLinks , $menu1['alias']);  // populate firstLinks with article link e.g &#8220;/xyz&#8221;<br />
array_push($secondTitle ,$firstTitle[$i]);  // populate secondTitle with article title.<br />
}</span></p>
<p><span style="color:#ff0000;">#else article is not at the top level e.g /xyz/abc or /xyz/abc/pqr/lmn<br />
# function call to fetchParent to fetch parent menus &#8220;</span><span style="color:#ff0000;">xyz</span><span style="color:#ff0000;">,</span><span style="color:#ff0000;">abc</span><span style="color:#ff0000;">,</span><span style="color:#ff0000;">pqr</span><span style="color:#ff0000;">&#8221; of article &#8220;</span><span style="color:#ff0000;">lmn</span><span style="color:#ff0000;">&#8220;<br />
else<br />
{</span></p>
<p><span style="color:#ff0000;">$parentmenu=fetchParent($menu1['parent']); // call to fetchParent to generate link e.g </span><span style="color:#ff0000;">/xyz/abc</span><br />
<span style="color:#ff0000;"> if($parentmenu!=null)<br />
{<br />
$finalMenu=$parentmenu.&#8221;/&#8221;.$menu1['alias'];<br />
array_push($secondArray , $firstArray[$i]); // populate secondarray with article introtext<br />
array_push($firstLinks , $finalMenu); // populate firstLinks with article link e.g &#8220;</span><span style="color:#ff0000;">/xyz</span><span style="color:#ff0000;">&#8220;<br />
array_push($secondTitle ,$firstTitle[$i]);  // populate secondTitle with article title.<br />
}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">if(count($secondArray)&gt;0)<br />
{<br />
//echo &#8220;&lt;div style=&#8217;border-right:1px solid #CCC&#8217;&gt;&#8221;.count($secondArray).&#8221; results found &lt;/div&gt;&lt;br/&gt;&lt;br/&gt;&#8221;;<br />
echo &#8220;&lt;table width=800px &gt;&lt;tr&gt;&lt;td&gt;&lt;div style=&#8217;border-right:1px solid #CCC&#8217;&gt;&lt;div style=&#8217;text-align:right&#8217;&gt;&lt;b&gt;&#8221;.count($secondArray).&#8221; results found &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&#8221;;<br />
for($i=0;$i&lt;count($secondArray);$i++)<br />
{</span></p>
<p><span style="color:#ff0000;"># find out the first position of keyword string to start with</span></p>
<p><span style="color:#ff0000;">$subStringPos=stripos($secondArray[$i],$_REQUEST['searchkeyword']);<br />
$subString=substr($secondArray[$i],($subStringPos)); //<br />
$secondArray[$i]=$subString;<br />
$secondArray[$i]=$secondArray[$i];</span></p>
<p><span style="color:#ff0000;"># limit the searched string<br />
if (strlen($secondArray[$i]) &gt; $limit)<br />
{<br />
$secondArray[$i] = substr($secondArray[$i], 0, strrpos(substr($secondArray[$i], 0, $limit), &#8216; &#8216;)) . &#8216;&#8230;&#8217;;<br />
}<br />
$words = array($_REQUEST['searchkeyword']); // Array of words to be highlight</span></p>
<p><span style="color:#ff0000;">#print results<br />
echo &#8220;&lt;br/&gt;&lt;div style=&#8217;height:20px&#8217;&gt;&amp;nbsp;&lt;/div&gt;&#8221;;<br />
echo &#8220;&lt;a href=/$firstLinks[$i] style=&#8217;color:#000000;text-decoration:none;&#8217;&gt;&lt;b&gt;$secondTitle[$i]&lt;/b&gt;&lt;/a&gt;&#8221;.&#8221;&lt;br/&gt;&#8221;;<br />
echo &#8220;&#8230;&#8221;.highlightWords($secondArray[$i], $words).&#8221;&lt;br/&gt;&#8221;;<br />
echo &#8220;&lt;a href=/$firstLinks[$i]  style=&#8217;color:blue&#8217;&gt;$firstLinks[$i]&lt;/a&gt;&#8221;.&#8221;&lt;br/&gt;&#8221;.&#8221;&lt;br/&gt;&#8221;;<br />
//if($i&lt;(count($secondArray)-1))<br />
//{<br />
echo &#8220;&lt;div style=&#8217;height:10px;width:800px;border-bottom:1px solid #CCC&#8217;&gt;&amp;nbsp;&lt;/div&gt;&#8221;;<br />
//}<br />
}<br />
echo &#8220;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#8221;;<br />
}<br />
else<br />
{</span></p>
<p><span style="color:#ff0000;">Echo &#8220;&lt;b&gt;No Result Found&lt;/b&gt;&#8221;; // If no results for keyword<br />
}</span></p>
<p><span style="color:#ff0000;">}</span></p>
<p><span style="color:#ff0000;">?&gt;</span></p>
<p><span style="color:#800080;"><strong> </strong></span></p>
<p>3) Change the database name , tables name , database access parameters wherever you find in a script , I have highlight some parameters in <span style="color:#008000;">green</span>, which needs to be change .</p>
<p>For more info contact me @ <strong><span style="color:#0000ff;">prasad.wagholikar@gmail.com</span></strong></p>
<p><span style="color:#ff0000;">&#8220;I have used these techniques to enhance my application and to meet my client requirements , please take backups of your stuff before changing or replacing anything , These changes are done for joomla 1.5.8 version&#8221;</span></p>
<br />Posted in CMS, Joomla, Technology, Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=123&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/05/06/joomla-custom-search-php-script-to-tackle-with-search-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to tackle with EMAIL_NOT_SENT error in Joomla 1.5</title>
		<link>http://prasadwagholikar.wordpress.com/2009/05/06/how-to-tackle-with-email_not_sent-error-in-joomla-15/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/05/06/how-to-tackle-with-email_not_sent-error-in-joomla-15/#comments</comments>
		<pubDate>Wed, 06 May 2009 07:48:14 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=115</guid>
		<description><![CDATA[Hi Friends , I am surprised that the &#8216;email to a friend&#8217; functionality in joomla does not work properly ,  Its giving error EMAIL_NOT_SENT , I have done R&#38;D on this issue but failed to correct this . I think its a known bug of Joomla 1.5.8 Hence I have found solution on this , [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=115&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">Hi Friends ,</span></p>
<p><span style="color:#000000;">I am surprised that the &#8216;email to a friend&#8217; functionality in joomla does not work properly ,  Its giving error EMAIL_NOT_SENT , I have done R&amp;D on this issue but failed to correct this . I think its a known bug of Joomla 1.5.8</span><br />
<span id="more-115"></span><br />
<span style="color:#000000;">Hence I have found solution on this , I dont know whether its feasible to Joomla architecture , But it works without interfering with Joomla Framework .</span></p>
<p><span style="color:#000000;">Here are the steps</span></p>
<p><span style="color:#000000;">1) Create new file in Joomla root , Name it as customMail.php , Insert following code in that file.</span></p>
<p><span style="color:#000000;"><br />
<span style="color:#ff0000;">&lt;?php<br />
########### Search for Joomla Website ############<br />
#Created By &#8211; Prasad Wagholikar #</span></span></p>
<p><span style="color:#ff0000;">#Purpose &#8211; custom mail send script to send article link to friend #</span></p>
<p><span style="color:#ff0000;">#Joomla 1.5.8 , Mail Icon , mail &#8216;article link&#8217; to a friend , mail function is not working , hence this is a custom script developed to send mail to friend ,The mail form is in \components\com_mailto\views\mailto\tmpl\default.php , Previously it was submited to index.php , But because of known bug in mail , The form action is changed to customMail.php to send mail through this custom script.<br />
#######################################################<br />
$headers  = &#8216;MIME-Version: 1.0&#8242; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Content-type: text/html; charset=iso-8859-1&#8242; . &#8220;\r\n&#8221;;</span></p>
<p><span style="color:#ff0000;">$customMailTo=$_REQUEST['mailto'];<br />
$customMailFrom=$_REQUEST['from'];<br />
$customSubject=$_REQUEST['subject'];<br />
$customSender=$_REQUEST['sender'];<br />
$articlelink=$_REQUEST['articlelink'];<br />
$mailForm = &#8216;Mail from : &#8216;.$customSender.&#8217; &lt;&#8217;.$customMailFrom.&#8217;&gt;&#8217;;<br />
$message=&#8217;&lt;html&gt;&lt;body&gt;&lt;span&gt;&lt;p&gt;&lt;b&gt;&#8217;.$customSender.&#8217;&lt;/b&gt; has sent you the link &lt;a href=&#8217;.$articlelink.&#8217; &gt;&#8217;.$articlelink.&#8217;&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;&#8217;;<br />
$sentMail=mail($customMailTo,$mailForm , $message, $headers);<br />
if($sentMail)<br />
{<br />
?&gt;<br />
&lt;h5&gt; The article link has been sent successfully&lt;/h5&gt;</span></p>
<p><span style="color:#ff0000;">&lt;?php } else { ?&gt;<br />
&lt;h5&gt; EMAIL_NOT_SENT &lt;/h5&gt;</span></p>
<p><span style="color:#ff0000;">&lt;?php } ?&gt;</span></p>
<p><span style="color:#ff0000;">&lt;div style=&#8221;text-align:right&#8221;&gt;<br />
&lt;a href=&#8221;javascript: void window.close()&#8221;&gt;<br />
Close &lt;img src=&#8221;/components/com_mailto/assets/close-x.png&#8221; border=&#8221;0&#8243; alt=&#8221;" title=&#8221;" /&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color:#000000;">2) Now replace the code in file  \components\com_mailto\views\mailto\tmpl\default.php by following code.</span></p>
<p><span style="color:#ff0000;">&lt;?php // no direct access<br />
defined(&#8216;_JEXEC&#8217;) or die(&#8216;Restricted access&#8217;); ?&gt;<br />
&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
function submitbutton(pressbutton) {<br />
var form = document.mailtoForm;</span></p>
<p><span style="color:#ff0000;">// do field validation<br />
if (form.mailto.value == &#8220;&#8221; || form.from.value == &#8220;&#8221;) {<br />
alert( &#8216;&lt;?php echo JText::_(&#8216;EMAIL_ERR_NOINFO&#8217;); ?&gt;&#8217; );<br />
return false;<br />
}<br />
form.submit();<br />
}<br />
&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;?php<br />
$data    = $this-&gt;get(&#8216;data&#8217;);</span></p>
<p><span style="color:#ff0000;">?&gt;<br />
&lt;!&#8211; form action in changed to customMail.php, the file should be in root folder &#8211;&gt;<br />
&lt;form action=&#8221;&lt;?php echo JURI::base() ?&gt;customMail.php&#8221; name=&#8221;mailtoForm&#8221; method=&#8221;post&#8221;&gt;</span></p>
<p><span style="color:#ff0000;">&lt;div style=&#8221;padding: 10px;&#8221;&gt;<br />
&lt;div style=&#8221;text-align:right&#8221;&gt;<br />
&lt;a href=&#8221;javascript: void window.close()&#8221;&gt;<br />
&lt;?php echo JText::_(&#8216;CLOSE_WINDOW&#8217;); ?&gt; &lt;img src=&#8221;&lt;?php echo JURI::base() ?&gt;components/com_mailto/assets/close-x.png&#8221; border=&#8221;0&#8243; alt=&#8221;" title=&#8221;" /&gt;&lt;/a&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color:#ff0000;">&lt;div class=&#8221;componentheading&#8221;&gt;<br />
&lt;?php echo JText::_(&#8216;EMAIL_THIS_LINK_TO_A_FRIEND&#8217;); ?&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color:#ff0000;">&lt;p&gt;<br />
&lt;?php echo JText::_(&#8216;EMAIL_TO&#8217;); ?&gt;:<br />
&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;mailto&#8221; class=&#8221;inputbox&#8221; size=&#8221;25&#8243; value=&#8221;&lt;?php echo $data-&gt;mailto ?&gt;&#8221;/&gt;<br />
&lt;/p&gt;</span></p>
<p><span style="color:#ff0000;">&lt;p&gt;<br />
&lt;?php echo JText::_(&#8216;SENDER&#8217;); ?&gt;:<br />
&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;sender&#8221; class=&#8221;inputbox&#8221; value=&#8221;&lt;?php echo $data-&gt;sender ?&gt;&#8221; size=&#8221;25&#8243; /&gt;<br />
&lt;/p&gt;</span></p>
<p><span style="color:#ff0000;">&lt;p&gt;<br />
&lt;?php echo JText::_(&#8216;YOUR_EMAIL&#8217;); ?&gt;:<br />
&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;from&#8221; class=&#8221;inputbox&#8221; value=&#8221;&lt;?php echo $data-&gt;from ?&gt;&#8221; size=&#8221;25&#8243; /&gt;<br />
&lt;/p&gt;</span></p>
<p><span style="color:#ff0000;">&lt;p&gt;<br />
&lt;?php echo JText::_(&#8216;SUBJECT&#8217;); ?&gt;:<br />
&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;subject&#8221; class=&#8221;inputbox&#8221; value=&#8221;&lt;?php echo $data-&gt;subject ?&gt;&#8221; size=&#8221;25&#8243; /&gt;<br />
&lt;/p&gt;</span></p>
<p><span style="color:#ff0000;">&lt;p&gt;<br />
&lt;button class=&#8221;button&#8221; onclick=&#8221;return submitbutton(&#8216;send&#8217;);&#8221;&gt;<br />
&lt;?php echo JText::_(&#8216;SEND&#8217;); ?&gt;<br />
&lt;/button&gt;<br />
&lt;button class=&#8221;button&#8221; onclick=&#8221;window.close();return false;&#8221;&gt;<br />
&lt;?php echo JText::_(&#8216;CANCEL&#8217;); ?&gt;<br />
&lt;/button&gt;<br />
&lt;/p&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color:#ff0000;">&lt;input type=&#8221;hidden&#8221; name=&#8221;layout&#8221; value=&#8221;&lt;?php echo $this-&gt;getLayout();?&gt;&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;option&#8221; value=&#8221;com_mailto&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;task&#8221; value=&#8221;send&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;tmpl&#8221; value=&#8221;component&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;link&#8221; value=&#8221;&lt;?php echo $data-&gt;link; ?&gt;&#8221; /&gt;<br />
&lt;?php $articleLink =  base64_decode($data-&gt;link); ?&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;articlelink&#8221; value=&#8221;&lt;?php echo $articleLink; ?&gt;&#8221; /&gt;<br />
&lt;?php echo JHTML::_( &#8216;form.token&#8217; ); ?&gt;<br />
&lt;/form&gt;</span></p>
<p><span style="color:#000000;"><strong>3</strong>) save both the files , Do necessary changes e.g Image path etc.</span></p>
<p><span style="color:#000000;">It will work .</span></p>
<p><span style="color:#000000;">For more info contact us @<strong> <span style="color:#0000ff;">prasad.wagholikar@gmail.com</span></strong></span></p>
<p><span style="color:#ff0000;">&#8220;I have used these techniques to enhance my application and to meet my client requirements ,  please take backups of your stuff before changing or replacing anything , These changes are done for joomla 1.5.8 version&#8221;</span></p>
<p><span style="color:#000000;"><a name="pd_a_1591556"></a><div class="PDS_Poll" id="PDI_container1591556" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/1591556.js"></script>
		<noscript>
		<a href="http://polldaddy.com/poll/1591556/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://polldaddy.com/features-surveys/">online surveys</a></span>
		</noscript></span></p>
<br />Posted in CMS, Joomla, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=115&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/05/06/how-to-tackle-with-email_not_sent-error-in-joomla-15/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Advanced parameter to Joomla article manager admin</title>
		<link>http://prasadwagholikar.wordpress.com/2009/05/04/add-advanced-parameter-to-joomla-article-manager-admin/</link>
		<comments>http://prasadwagholikar.wordpress.com/2009/05/04/add-advanced-parameter-to-joomla-article-manager-admin/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:47:21 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=110</guid>
		<description><![CDATA[Joomla article manager admin , How to add new param in joomla article<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=110&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To add parameter to Joomla article admin , you need to know basics of Joomla .</p>
<p>Lets see , How can we add parameter to Joomla .<br />
<span id="more-110"></span></p>
<ol>
<li><strong>Open</strong> article.xml file , <strong>which is in a folder\administrator\components\com_content\models</strong></li>
<li>Add new param , it can be textinput , textarea , checkbox etc . You need to start tag with string &#8220;param&#8221;  e.g &lt;param name=&#8221;newparam&#8221; type=&#8221;text&#8221; size=&#8221;40&#8243; default=&#8221;" label=&#8221;New Param &#8221; description=&#8221;Description of new param added&#8221; /&gt;</li>
<li>Now If you open Joomla admin &gt;&gt; create new article , At the right hand side , In advanced parameter block , the added parameter interface will be shown , Addthe new param at last index of advanced parameter block .</li>
<li>The added parameter is added in database , in  _content table ,  All adavanced paramenters are added in table _content &gt;&gt; attribs field , The added params are &#8220;\n&#8221; separated , You can use php explode function to access any one of them.</li>
<li>Once you added new param in article.xml , All save, update , delete , select operations will be automatically done .</li>
</ol>
<p>For more info , Mail me @ <strong><span style="color:#0000ff;">prasad.wagholikar@gmail.com</span></strong></p>
<p><span style="color:#ff0000;">&#8220;I have used these techniques to enhance my application and to meet my client requirements ,  please take backups of your stuff before changing or replacing anything , These changes are done for joomla 1.5.8 version&#8221;</span></p>
<p><span style="color:#000000;"><a name="pd_a_1591556"></a><div class="PDS_Poll" id="PDI_container1591556" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/1591556.js"></script>
		<noscript>
		<a href="http://polldaddy.com/poll/1591556/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://polldaddy.com/features-surveys/">online surveys</a></span>
		</noscript></span></p>
<br />Posted in CMS, Joomla, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=110&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2009/05/04/add-advanced-parameter-to-joomla-article-manager-admin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL Download Tracking</title>
		<link>http://prasadwagholikar.wordpress.com/2008/12/09/mysql-download-tracking/</link>
		<comments>http://prasadwagholikar.wordpress.com/2008/12/09/mysql-download-tracking/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:14:12 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=99</guid>
		<description><![CDATA[MySQL Download Tracking One application of this would be to track information about file downloads. Here we&#8217;re going to track the number of downloads and when the last download occurred. We&#8217;re going to store the information in a MySQL database. Below is the structure of the table. CREATE TABLE filestats ( fileid INT NOT NULL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=99&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 class="contentHeaderA">MySQL Download Tracking</h2>
<p>One application of this would be to track information about file downloads.  Here we&#8217;re going to track the number of downloads and when the last download occurred.  We&#8217;re going to store the information in a MySQL database.  Below is the structure of the table.<br />
<span id="more-99"></span><br />
CREATE TABLE filestats (<br />
fileid INT NOT NULL auto_increment,<br />
filename TEXT,<br />
downloads INT NOT NULL,<br />
lastdownload DATETIME,<br />
primary key (fileid)<br />
);</p>
<p>The fileid is just an auto incrementing number used to keep track of the database.  Filename will be the field we search with.  Downloads and lastdownload are the fields used for keeping statistics.</p>
<p>Insert the following code after the <em>if (isset($_REQUEST["file"])) {</em> statement.  This code will connect to the MySQL database and update the file stats.  PHP has a strong built in function library for MySQL.</p>
<p><code><span style="color:#000000;"> <span style="color:#0000bb;">&lt;?<br />
$db</span><span style="color:#007700;">=</span><span style="color:#0000bb;">mysql_connect</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$mysql_host</span><span style="color:#007700;">,</span><span style="color:#0000bb;">$mysql_login</span><span style="color:#007700;">,</span><span style="color:#0000bb;">$mysql_passwd</span><span style="color:#007700;">) or die(</span><span style="color:#0000bb;">mysql_error</span><span style="color:#007700;">());<br />
</span><span style="color:#0000bb;">mysql_select_db</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$mysql_database</span><span style="color:#007700;">);<br />
</span><span style="color:#0000bb;">$query</span><span style="color:#007700;">=</span><span style="color:#0000bb;">mysql_query</span><span style="color:#007700;">(</span><span style="color:#dd0000;">"select * from filestats where filename='"</span><span style="color:#007700;">.</span><span style="color:#0000bb;">basename</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$file</span><span style="color:#007700;">).</span><span style="color:#dd0000;">"' LIMIT 0,1"</span><span style="color:#007700;">) or die (</span><span style="color:#0000bb;">mysql_error</span><span style="color:#007700;">());<br />
</span><span style="color:#0000bb;">$fileexist</span><span style="color:#007700;">=@</span><span style="color:#0000bb;">mysql_num_rows</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$query</span><span style="color:#007700;">));<br />
</span><span style="color:#0000bb;">$now</span><span style="color:#007700;">=</span><span style="color:#0000bb;">date</span><span style="color:#007700;">(</span><span style="color:#dd0000;">"Y-m-d G:i:s"</span><span style="color:#007700;">);<br />
if (</span><span style="color:#0000bb;">$fileexist</span><span style="color:#007700;">&gt;</span><span style="color:#0000bb;">0</span><span style="color:#007700;">) {<br />
</span><span style="color:#0000bb;">$updatequery</span><span style="color:#007700;">=</span><span style="color:#0000bb;">mysql_query</span><span style="color:#007700;">(</span><span style="color:#dd0000;">"update filestats set downloads=downloads+1,<br />
lastdownload='$now' where filename='"</span><span style="color:#007700;">.</span><span style="color:#0000bb;">basename</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$file</span><span style="color:#007700;">).</span><span style="color:#dd0000;">"'"</span><span style="color:#007700;">) or die (</span><span style="color:#0000bb;">mysql_error</span><span style="color:#007700;">());<br />
} else {<br />
</span><span style="color:#0000bb;">$addquery</span><span style="color:#007700;">=</span><span style="color:#0000bb;">mysql_query</span><span style="color:#007700;">(</span><span style="color:#dd0000;">"insert into filestats (filename,downloads,lastdownload)<br />
values ('"</span><span style="color:#007700;">.</span><span style="color:#0000bb;">basename</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$file</span><span style="color:#007700;">).</span><span style="color:#dd0000;">"','1','$now')"</span><span style="color:#007700;">) or die (</span><span style="color:#0000bb;">mysql_error</span><span style="color:#007700;">());<br />
}<br />
</span><span style="color:#0000bb;">?&gt;</span> </span> </code></p>
<p>The date function is used to set the current date and time.  Here it will be displayed in the YYYY-MM-DD HH:MM:SS which is the format of the MySQL datetime format.</p>
<p>In this segment we connected to the MySQL database and updated the download statistics.  First mysql_connect connected to the database passing the connection parameters in the order of host, login, and password.  Then we selected which MySQL database we wanted to use with the mysql_select_db statement.  Once we have the connection completed we check to see if the table holds a record for the file.  The first mysql_query searches the database for a record with the filename of the file being downloaded.  Mysql_num_rows determines the number of results returned from the query. Here we preceded the mysql_num_rows with a @ to prevent it from returning errors if the query results were empty.</p>
<p>If there was a result from the query $fileexist will be greater than 0 so we update the database.  To do this we use a MySQL update query.  If there wasn&#8217;t a result returned an insert query will be used instead of an update.<!--more--></p>
<br />Posted in php, sql, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=99&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2008/12/09/mysql-download-tracking/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
		<item>
		<title>File Download Security- File download code in php</title>
		<link>http://prasadwagholikar.wordpress.com/2008/12/09/file-download-security-file-download-code-in-php/</link>
		<comments>http://prasadwagholikar.wordpress.com/2008/12/09/file-download-security-file-download-code-in-php/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:14:00 +0000</pubDate>
		<dc:creator>prasadwagholikar</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://prasadwagholikar.wordpress.com/?p=96</guid>
		<description><![CDATA[File Download Security Want to prevent people from linking to your downloads? This script will force a page to be loaded before the download starts. HTML header statements are used to trigger the download of the file. PHP is used to push the file to the browser. Principles HTML headers must be sent before any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=96&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>File Download Security</strong></p>
<p>Want to prevent people from linking to your downloads? This script will force a page to be loaded before the download starts. HTML header statements are used to trigger the download of the file. PHP is used to push the file to the browser.<br />
Principles<br />
<span id="more-96"></span><br />
HTML headers must be sent before any output is sent to the browser. PHP uses the header function to pass raw HTML headers. For this example we&#8217;re going to get the filename from the URL www.yourdomain.com/download.php?file=download.zip.<br />
<span style="color:#ff0000;">$dir=&#8221;/path/to/file/&#8221;;<br />
if (isset($_REQUEST["file"])) {<br />
$file=$dir.$_REQUEST["file"];<br />
header(&#8220;Content-type: application/force-download&#8221;);<br />
header(&#8220;Content-Transfer-Encoding: Binary&#8221;);<br />
header(&#8220;Content-length: &#8220;.filesize($file));<br />
header(&#8220;Content-disposition: attachment; filename=\&#8221;".basename($file).&#8221;\&#8221;");<br />
readfile(&#8220;$file&#8221;);<br />
} else {<br />
echo &#8220;No file selected&#8221;;<br />
}<br />
?&gt;</span></p>
<p>We started with setting the directory where the files to be downloaded are located in $dir. Be sure not to use \ in $dir. Then we checked to make sure a filename was specified in the request. If a file was specified then we set $file to the path to the file and the filename. Now that the prep work is done its time to send the file to the browser.</p>
<p>The first header statement tells the browser to expect a download. The next two header statements tell the browser the format of the data and the size of the file respectively. The last header statement tells the browser the name of the file. Finally the readfile statement sends the file to the browser.</p>
<p>On the next page we&#8217;ll start showing some examples on how to use this.<br />
<a href="http://prasadwagholikar.wordpress.com/2008/12/09/mysql-download-tracking/">MySQL Download Tracking</a></p>
<br />Posted in php, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prasadwagholikar.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prasadwagholikar.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prasadwagholikar.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prasadwagholikar.wordpress.com&amp;blog=4346979&amp;post=96&amp;subd=prasadwagholikar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prasadwagholikar.wordpress.com/2008/12/09/file-download-security-file-download-code-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/241aeb73f2c3fe68574588cb5d1733c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prasad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
