<?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>Wuwei2k2 Blog</title>
	<atom:link href="http://wuwei2k2.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wuwei2k2.wordpress.com</link>
	<description>Helpful code regarding Joomla, vTiger, Gallery2 and other web applications I use</description>
	<lastBuildDate>Tue, 17 Feb 2009 15:10:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='wuwei2k2.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9bc771dd13a64ddb42d7f7ab77d9fed2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Wuwei2k2 Blog</title>
		<link>http://wuwei2k2.wordpress.com</link>
	</image>
			<item>
		<title>vTiger: Associating filters with users</title>
		<link>http://wuwei2k2.wordpress.com/2009/02/17/vtiger-associating-filters-with-users/</link>
		<comments>http://wuwei2k2.wordpress.com/2009/02/17/vtiger-associating-filters-with-users/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:10:56 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=23</guid>
		<description><![CDATA[TO-DO: Associate the filters for the modules (such as Leads, Accounts, etc.) with users, so that when users log in, they get to see only the filters that they created and which belong to them.
HOW-TO

The file that handles the view based on filters seems to all be in modules/CustomView/CustomView.php
The database tables that are used to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=23&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>TO-DO:</strong> Associate the filters for the modules (such as Leads, Accounts, etc.) with users, so that when users log in, they get to see only the filters that they created and which belong to them.</p>
<p><span id="more-23"></span><strong>HOW-TO</strong></p>
<ul>
<li>The file that handles the view based on filters seems to all be in <em>modules/CustomView/CustomView.php</em></li>
<li>The database tables that are used to store the filters are <em>vtiger_cvstdfilter</em> and <em>vtiger_cvadvfilter</em></li>
<li><em>vtiger_customview</em> has the names of the filters, and the cvid field is used in the two tables above.</li>
</ul>
<p>So we need to add a field to one of these tables.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=23&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2009/02/17/vtiger-associating-filters-with-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Search in vTiger CRM &#8211; Part I</title>
		<link>http://wuwei2k2.wordpress.com/2009/02/13/search-in-vtiger-crm-part-i/</link>
		<comments>http://wuwei2k2.wordpress.com/2009/02/13/search-in-vtiger-crm-part-i/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 16:43:12 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=20</guid>
		<description><![CDATA[We need to change search functionality in vTiger (version 5.0.x) so that we display details of only the leads/fields belonging to the user, and for the rest of the entries, display who it belongs to. How do we do that? This requires an understanding of the search functionality in vTiger.
When you search for an item [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=20&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We need to change search functionality in vTiger (version 5.0.x) so that we display details of only the leads/fields belonging to the user, and for the rest of the entries, display who it belongs to. How do we do that? This requires an understanding of the search functionality in vTiger.</p>
<p><span id="more-20"></span>When you search for an item using the search field on the top-right corner of your vTiger install, it sends a POST back to the index.php page.</p>
<p>The form name is &#8220;UnifiedSearch&#8221;, and a search for the word &#8217;search&#8217; on index.php takes us to this line:</p>
<pre class="brush: php;">
    if($action == 'UnifiedSearch') {
    	$currentModuleFile = 'modules/Home/'.$action.'.php';
    } else {
		$currentModuleFile = 'modules/'.$module.'/'.$action.'.php';
    }
</pre>
<p>So, /modules/Home/UnifiedSearch.php is what we need to look at.</p>
<p>It looks like UnifiedSearch.php does the following:</p>
<ol>
<li>Gets a list of modules that can be searched for using this function: <em>getSearchModulesComboList($search_module);</em></li>
<li>Does the usual applying of templating and styles that are done for pretty much every vTiger page</li>
<li>Handles tag- and global- searches using <em>getUnifiedWhere</em>() and <em>getTagWhere</em>() function calls.</li>
</ol>
<p>The getUnifiedWhere() and getTagWhere() function calls contain SQL statements &#8211; and something tells me these are the SQL statements that need to be modified for our search to be customized.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=20&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2009/02/13/search-in-vtiger-crm-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>JoomFish PHP problems with Joomla 1.5</title>
		<link>http://wuwei2k2.wordpress.com/2009/02/01/joomfish-php-problems-with-joomla-15/</link>
		<comments>http://wuwei2k2.wordpress.com/2009/02/01/joomfish-php-problems-with-joomla-15/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 02:23:47 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=17</guid>
		<description><![CDATA[nto<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=17&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just installed JoomFish, the translation content manager, for Joomla 1.5.9 on my 1and1 hosting service, and right away ran into PHP problems.</p>
<p><span id="more-17"></span>How did I solve it? It was pretty easy. I had to turn the PHP files into PHP5 in order for JoomFish to work.</p>
<p>Here&#8217;s how to do it: <a href="http://www.thecodecave.com/how-to-run-php5-on-1and1com-in-1-easy-step/">How to run PHP5 on 1and1</a>.</p>
<p>And hey presto: it worked!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=17&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2009/02/01/joomfish-php-problems-with-joomla-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Links to section/category from a content item in Joomla</title>
		<link>http://wuwei2k2.wordpress.com/2008/08/15/joomla-links-to-section-category-from-a-content-item/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/08/15/joomla-links-to-section-category-from-a-content-item/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 18:37:04 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=15</guid>
		<description><![CDATA[For version 1.0.x: normally, Joomla&#8217;s mosPathWay() and module would take care of generating links to sections and categories, but in case you ever needed to do it yourself:


        // TODO: You need someway to get $rid, which is the ID of the content item.
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=15&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For version 1.0.x: normally, Joomla&#8217;s mosPathWay() and module would take care of generating links to sections and categories, but in case you ever needed to do it yourself:</p>
<p><span id="more-15"></span></p>
<pre class="brush: php;">
        // TODO: You need someway to get $rid, which is the ID of the content item.
        // I usually get this in the main content.html.php page, so I use $row-&gt;id

        // The SQL to get the section and category for an article
        $sql = &quot;SELECT c.title ctitle, c.id cid, s.title stitle, s.id sid FROM #__content co INNER JOIN #__categories c, #__sections s WHERE (co.id=$rid) AND (c.id=co.catid) AND (s.id=co.sectionid)&quot;;
        $database-&gt;setQuery($sql);
        $result = $database-&gt;loadRow();

        if ($result != null) {
                // Section page
                $sid = $result[3];
                $stitle = $result[2];
                $slink = sefRelToAbs(&quot;index.php?option=com_content&amp;task=section&amp;id=$sid&quot;);

                // Category page
                $cid = $result[1];
                $ctitle = $result[0];
                $clink = sefRelToAbs(&quot;index.php?option=com_content&amp;task=category&amp;sectionid=$sid&amp;id=$cid&quot;);

                // Write out links
                $relatedSecCat = &quot;Related articles: &lt;a href='$slink'&gt;$stitle&lt;/a&gt; &gt; &lt;a href='$clink'&gt;$ctitle&lt;/a&gt;&quot;;
        }
        else $relatedSecCat = &quot;&quot;;
        echo $relatedSecCat;
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=15&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/08/15/joomla-links-to-section-category-from-a-content-item/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Forcing caching with Apache2 &#8211; mod_expires and mod_headers</title>
		<link>http://wuwei2k2.wordpress.com/2008/07/13/forcing-caching-apache2-mod_expires-mod_headers/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/07/13/forcing-caching-apache2-mod_expires-mod_headers/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 20:07:11 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_expires]]></category>
		<category><![CDATA[mod_headers]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=10</guid>
		<description><![CDATA[Problem: Even when you use mod_expires to cache content on your server, some redirects may break the cache headers so the mod_expires will not output the right headers. This especially seems to happen when you have CMSs like Joomla/Drupal with SEO features and are trying to cache them.

This is how the mod_expires was set up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=10&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Problem: Even when you use mod_expires to cache content on your server, some redirects may break the cache headers so the mod_expires will not output the right headers. This especially seems to happen when you have CMSs like Joomla/Drupal with SEO features and are trying to cache them.</p>
<p><span id="more-10"></span></p>
<p>This is how the mod_expires was set up before</p>
<pre>&lt;IfModule mod_expires.c&gt;
ExpiresDefault "access plus 20 minutes"
ExpiresActive On
&lt;/IfModule&gt;</pre>
<p>But these lines using mod_headers need to be added to remove the no-cache directives being output by the CMS:</p>
<pre>Header unset Cache-Control:
Header unset Expires:
Header unset Pragma:
Header unset Keep-Alive:
Header unset Connection:</pre>
<p>That removed the HTTP cache headers output by the CMS that seemed to be caused by the redirects (and which mod_expires was not replacing.)</p>
<p>You may need to enable mod_headers; it wasn&#8217;t enabled on my installation of Apache 2.2. The command to do that is:</p>
<pre>a2enmod headers</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=10&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/07/13/forcing-caching-apache2-mod_expires-mod_headers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>First Joomla 1.5 module: Displaying contents from another webpage</title>
		<link>http://wuwei2k2.wordpress.com/2008/07/09/joomla-15-module-contents-from-webpage/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/07/09/joomla-15-module-contents-from-webpage/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 15:06:02 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=9</guid>
		<description><![CDATA[For my first Joomla 1.5 module, I had to write a module that would get the contents from another webpage (actually, just a number) and display it in the module area.

To make it more challenging, I also added the following requirements:

Has to use caching so as to not hit the webpage each time.
Should allow the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=9&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For my first Joomla 1.5 module, I had to write a module that would get the contents from another webpage (actually, just a number) and display it in the module area.</p>
<p><span id="more-9"></span></p>
<p>To make it more challenging, I also added the following requirements:</p>
<ul>
<li>Has to use caching so as to not hit the webpage each time.</li>
<li>Should allow the &#8220;template&#8221; for displaying the content to be editable by the webmaster</li>
</ul>
<p>This is the code I wrote &#8211; simple, but its my first Joomla 1.5 module.</p>
<p><strong>mod_webnumber.php</strong></p>
<pre class="brush: php;">
&lt;?php
//no direct access
defined('_JEXEC' )
or die('Direct Access to this location is not allowed.');

// Get a reference to the global cache object.
$cache = &amp; JFactory::getCache();
$cache-&gt;setCaching(1); // make sure it caches

$number  = $cache-&gt;call( array( 'Website', 'latestNumber' ) );

// get a parameter from the module's configuration
$template = $params-&gt;get('template');
$output = str_replace (&quot;#n&quot;, $number, $template);

echo $output;

class Website {
    function latestNumber() {
        // Get the latest number from the webpage
        $number = file_get_contents (
          &quot;http://www.yourwebsite.com/&quot;);
        $number = strip_tags ($number);

        return $number;
    }
}
?&gt;
</pre>
<p><strong>mod_webnumber.xml </strong>(mostly derived from the official Joomla docs site on <a href="http://docs.joomla.org/How_to_create_a_module">creating a module</a>, following is only the parameters I used which the module depends on)</p>
<pre class="brush: xml;">
    &lt;files&gt;
        &lt;!-- The &quot;module&quot; attribute signifies that this is the main controller file --&gt;
        &lt;filename module=&quot;mod_webnumber&quot;&gt;mod_webnumber.php&lt;/filename&gt;
    &lt;/files&gt;
&lt;params&gt;
        &lt;param name=&quot;moduleclass_sfx&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Module Class Suffix&quot; description=&quot;PARAMMODULECLASSSUFFIX&quot; /&gt;
        &lt;param name=&quot;@spacer&quot; type=&quot;spacer&quot; default=&quot;&quot; label=&quot;&quot; description=&quot;&quot; /&gt;
        &lt;param name=&quot;template&quot; type=&quot;text&quot; default=&quot;#n is the number you need.&quot; label=&quot;Template&quot; description=&quot;TEMPLATE&quot; /&gt;
    &lt;/params&gt;
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=9&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/07/09/joomla-15-module-contents-from-webpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Digg API: Showing latest stories from your site/URL/domain</title>
		<link>http://wuwei2k2.wordpress.com/2008/05/16/digg-api-show-stories-site-url-domain/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/05/16/digg-api-show-stories-site-url-domain/#comments</comments>
		<pubDate>Fri, 16 May 2008 16:43:42 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[digg]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=8</guid>
		<description><![CDATA[To do: To show a list of the latest stories from your site/URL/domain using the Digg API.
Solution:
The following PHP code will display the latest 20 stories from the domain of your choice. Thanks a heap to Web Cash&#8217;s entry on grabbing a random Digg story as well as the Digg Story API which helped with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=8&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To do: To show a list of the latest stories from your site/URL/domain using the Digg API.</p>
<p>Solution:</p>
<p>The following PHP code will display the latest 20 stories from the domain of your choice. Thanks a heap to <a href="http://www.earn-web-cash.com/2008/02/16/digg-api-random-story/" target="_blank">Web Cash&#8217;s entry on grabbing a random Digg story</a> as well as the <a href="http://apidoc.digg.com/ListStories" target="_blank">Digg Story API</a> which helped with this code.</p>
<p><span id="more-8"></span></p>
<pre class="brush: php;">

&lt;?php
//  Takes an array of arguments and returns a query string
//  Each parameter's name is its key in the array
function buildQuery ($args) {
  $query = '?';
  foreach ($args as $key =&gt; $val) {
    if ( $query != '?' )
      $query .= '&amp;';

    $query .= $key . '=' . urlencode($val);
  }

  return $query;
}

// Digg specifies that user agent must be set
ini_set('user_agent', 'My domain stories/1.0');

$baseurl = 'http://services.digg.com';
$endpoint = '/stories';
$url = $baseurl . $endpoint;
// Number of stories to display
$numberStories = 20;
// Your domain of choice - CHANGE THIS
$domainName = 'your.domain.com'; 

//  Parameters to fetch latest articles
$params = array();
$params['appkey'] = 'http://' . $domainName;
$params['domain'] = $domainName;
$params['type'] = 'xml';

$params['count'] = '' . $numberStories;
// The following displays the newest items first
// This can be changed using the parameters in the Digg API
$params['sort'] = 'submit_date-desc'; 

//  Reuse the $url created above
$query = buildQuery($params);
$reqUrl = $url . $query;

// Display the URL. Uncomment for troubleshooting.
// echo $reqUrl . &quot;\n&quot;;

$xml = simplexml_load_file($reqUrl);

//  Output the stories
for ($i=0; $i&lt;$numberStories;$i++) {
  $numberDiggs = intval($xml-&gt;story[$i]['diggs']);
  echo '&lt;p&gt;';
  echo '&lt;h2&gt;&lt;a href=&quot;' . $xml-&gt;story[$i]['href'] . '&quot;&gt;'
    . $xml-&gt;story[$i]-&gt;title . '&lt;/a&gt;&lt;/h2&gt;';

  // Number of Diggs
  echo '&lt;b&gt;Diggs: ' . $xml-&gt;story[$i]['diggs'] . ' ' ;
  // If you don't have an image for number of diggs,
  // then uncomment the following line
  for ($j=0; $j&lt;$numberDiggs; $j++) echo '&lt;img src=&quot;digg.gif&quot;&gt; ';
  echo '&lt;/b&gt;&lt;br /&gt;';

  echo 'Date: ' . date('m-d-Y, H:i:s', (int) $xml-&gt;story[$i]['submit_date']) . '&lt;br /&gt;';
  echo 'Link: &lt;a href=&quot;' . $xml-&gt;story[$i]['link'] . '&quot;&gt;'
    . $xml-&gt;story[$i]['link'] . '&lt;/a&gt;&lt;br /&gt;';
  echo 'Topic: ' . $xml-&gt;story[$i]-&gt;topic['name'] . '&lt;br /&gt;';
  echo 'Container: ' . $xml-&gt;story[$i]-&gt;container['name'] . '&lt;br /&gt;';
  echo 'Desc: ' . $xml-&gt;story[$i]-&gt;description . &quot;&lt;/p&gt;\n&quot;;
}
?&gt;
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=8&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/05/16/digg-api-show-stories-site-url-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>

		<media:content url="digg.gif" medium="image" />
	</item>
		<item>
		<title>Making Gallery2 Joomla component point to Gallery2 URL</title>
		<link>http://wuwei2k2.wordpress.com/2008/05/03/gallery2-joomla-component-point-gallery2-url/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/05/03/gallery2-joomla-component-point-gallery2-url/#comments</comments>
		<pubDate>Sat, 03 May 2008 17:47:55 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=7</guid>
		<description><![CDATA[Request: The excellent Gallery2 Bridge component/module for Joomla has one &#8220;shortcoming&#8221;: it points to the embedded Joomla component. Some applications/websites will require the Bridge&#8217;s functionality to embed the Gallery, but will want to link to Gallery2 and not the embedded component.

Solution:
The URL link is created using the $baseUrl variable in /components/com_gallery2/init.inc.
At around line 83 of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=7&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Request:</strong> The excellent <a href="http://www.gallery-addons.com/Gallery-Addons/Component/Embedding_Gallery2/">Gallery2 Bridge component/module for Joomla</a> has one &#8220;shortcoming&#8221;: it points to the embedded Joomla component. Some applications/websites will require the Bridge&#8217;s functionality to embed the Gallery, but will want to link to Gallery2 and not the embedded component.</p>
<p><span id="more-7"></span></p>
<p><strong>Solution:</strong></p>
<p>The URL link is created using the $baseUrl variable in /components/com_gallery2/init.inc.</p>
<p>At around line 83 of the Gallery2 Bridge component, there are the statements that assign the link URL:</p>
<pre class="brush: php;">
/* build url according to our current Itemid and our ItemidList */
if(!empty($ItemidList) &amp;&amp; in_array($Itemid, $ItemidList)){
        $baseUrl = 'index.php?option=com_gallery2&amp;amp;Itemid='.$Itemid;
} else if(!empty($ItemidList)){
        $baseUrl = 'index.php?option=com_gallery2&amp;amp;Itemid='.(int) $ItemidList[0];
} else {
        $baseUrl = 'index.php?option=com_gallery2&amp;amp;Itemid=99999999';
}
</pre>
<p>Right after this, add one statement to specify the URL of the actual Gallery2 site:</p>
<pre class="brush: php;">
/* $g2Uri is specified earlier in the code */
$baseUrl = $g2Uri;
</pre>
<p>and that&#8217;s it &#8211; all Gallery2 Bridge components and modules should now point to the live Gallery2 site.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=7&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/05/03/gallery2-joomla-component-point-gallery2-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting current user view in Custom Views &#8211; vTiger</title>
		<link>http://wuwei2k2.wordpress.com/2008/04/12/setting-current-user-view-in-custom-views-vtiger/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/04/12/setting-current-user-view-in-custom-views-vtiger/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 17:36:21 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vtiger]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=6</guid>
		<description><![CDATA[Thanks to this forum post on vTiger, one additional change needs to be made to the CustomView code in order to get the CURRENTUSER variable to work (I don&#8217;t know which versions of vTiger it applies to, but I think to all version of 5.x):


function getRealValues($tablename,$fieldname,$comparator,$value,$datatype)
        {
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=6&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Thanks to this <a href="http://forums.vtiger.com/viewtopic.php?p=64091#64091">forum post on vTiger</a>, one additional change needs to be made to the CustomView code in order to get the CURRENTUSER variable to work (I don&#8217;t know which versions of vTiger it applies to, but I think to all version of 5.x):</p>
<p><span id="more-6"></span></p>
<pre class="brush: php;">
function getRealValues($tablename,$fieldname,$comparator,$value,$datatype)
        {
                if($fieldname == &quot;smownerid&quot; || $fieldname == &quot;inventorymanager&quot;)
                {
                        /* HACK - to get current user */
                        global $current_user;
                        if ($value == &quot;CURRENTUSER&quot;)
                                $value = $current_user-&gt;user_name;
                        /* End HACK */ 

                        $value = $tablename.&quot;.&quot;.$fieldname.$this-&gt;getAdvComparator($comparator,getUserId_Ol($value),$datatype);
                } else if($fieldname == &quot;parentid&quot;)
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=6&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/04/12/setting-current-user-view-in-custom-views-vtiger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
		<item>
		<title>Customizing vTiger custom views with dynamic “variables” &#8211; II</title>
		<link>http://wuwei2k2.wordpress.com/2008/04/02/vtiger-custom-view-dynamic-variables-current-user-ii/</link>
		<comments>http://wuwei2k2.wordpress.com/2008/04/02/vtiger-custom-view-dynamic-variables-current-user-ii/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 19:40:34 +0000</pubDate>
		<dc:creator>wuwei2k2</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[vtiger]]></category>

		<guid isPermaLink="false">http://wuwei2k2.wordpress.com/?p=5</guid>
		<description><![CDATA[A quick follow up to my previous post Customizing vTiger custom views with dynamic “variables” . There is an easy extension to enable multiple variables to be used in the custom views.

This is the code:

        /* Associative array with list of replacement pairs */
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=5&subd=wuwei2k2&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A quick follow up to my previous post <a href="http://wuwei2k2.wordpress.com/2008/04/01/vtiger-custom-view-dynamic-variables-current-user/">Customizing vTiger custom views with dynamic “variables”</a> . There is an easy extension to enable multiple variables to be used in the custom views.</p>
<p><span id="more-5"></span></p>
<p>This is the code:</p>
<pre class="brush: php;">
        /* Associative array with list of replacement pairs */
        $dvReplacements = array(
                &quot;yourstring&quot; =&gt; $variable,
               //
        );
        /* Replace each of the variables */
        foreach ($dvReplacements as $dvKey=&gt;$dvValue) {
            if (strstr($advfsql,$dvKey))
            {
                $advfsql = str_replace ($dvKey, $dvValue, $advfsql );
            }
        }</pre>
<p>For example, say I want to replace the variables SP_CURRENTNAME and SP_TODAY with the username of the logged in user and today&#8217;s date, respectively. The code is as follows (I am using &#8220;2099-12-31&#8243; as the replacement key, since for dates, vTiger requires you to enter them in date format. So, if I want a custom view to check against today&#8217;s date, I enter this value in the date field.)</p>
<pre class="brush: php;">

$dvReplacements = array(
            &quot;CURRENTUSER&quot; =&gt; $current_user-&gt;user_name,
            &quot;2099-12-31&quot; =&gt; date(&quot;Y-m-d&quot;)
        );
        foreach ($dvReplacements as $dvKey=&gt;$dvValue) {
            if (strstr($advfsql,$dvKey))
            {
                $advfsql = str_replace ($dvKey, $dvValue, $advfsql );
            }
        }
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wuwei2k2.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wuwei2k2.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wuwei2k2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wuwei2k2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wuwei2k2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wuwei2k2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wuwei2k2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wuwei2k2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wuwei2k2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wuwei2k2.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wuwei2k2.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wuwei2k2.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wuwei2k2.wordpress.com&blog=3138671&post=5&subd=wuwei2k2&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wuwei2k2.wordpress.com/2008/04/02/vtiger-custom-view-dynamic-variables-current-user-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff7b15ccba4d663eefef1411e3d15a78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wuwei2k2</media:title>
		</media:content>
	</item>
	</channel>
</rss>