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

<channel>
	<title>Juipo Web Design &#187; Code Hacks</title>
	<atom:link href="http://juipo.com/category/code-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://juipo.com</link>
	<description>Website Design, Development, Premium and Free Website Templates, Elgg PHP HTML CSS Tips and Tricks.</description>
	<lastBuildDate>Mon, 21 May 2012 20:33:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Changing Elgg Profile Layout</title>
		<link>http://juipo.com/code-hacks/elgg-hacks/changing-elgg-profile-layout/</link>
		<comments>http://juipo.com/code-hacks/elgg-hacks/changing-elgg-profile-layout/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:06:10 +0000</pubDate>
		<dc:creator>Damir Gasparlin</dc:creator>
				<category><![CDATA[Elgg Hacks]]></category>

		<guid isPermaLink="false">http://juipo.com/?p=163</guid>
		<description><![CDATA[If you work with Elgg, you know that in default Elgg profile page, the Profile Fields extend into the middle column. No matter what theme you use (Elgg default or plugin) this is the default layout that is coded in Elgg core Profile plugin files. One of our clients wanted to have the Elgg Profile [...]]]></description>
			<content:encoded><![CDATA[<p>If you work with Elgg, you know that in default Elgg profile page, the Profile Fields extend into the middle column. No matter what theme you use (Elgg default or plugin) this is the default layout that is coded in Elgg core Profile plugin files.</p>
<p>One of our clients wanted to have the <a href="http://juipo.com/elgg-custom-mod/custom-profile-page/">Elgg Profile table in one single column</a> with Profile Info Fields below the Profile Icon so other widgets can be flush on the top of middle and right columns with the Profile.</p>
<p><a href="http://juipo.com/wp-content/uploads/2010/02/3colProfile.jpg" rel="facebox"><img class="alignleft size-full wp-image-164" title="SingleColumnProfile" src="http://juipo.com/wp-content/uploads/2010/02/3colProfile.jpg" alt="Profile Info Single Column Layout" width="500" height="293" /></a></p>
<p>To make these sorts of changes you need to get familiar with Elgg&#8217;s view system. This is not easy to achieve as it is controlled by Elgg core/plugin files (even though in this particular project, code was done in such way that layout is controlled by the theme itself &#8211; photo above)</p>
<p>The layout of the profile widgets and dashboard widgets is handled in: /views/default/canvas/layouts/widgets.php</p>
<p>Right now it is using tables to display profile. With some css styling and php coding this can be achieved for unique, single column user profile view.</p>
]]></content:encoded>
			<wfw:commentRss>http://juipo.com/code-hacks/elgg-hacks/changing-elgg-profile-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Elgg 1.5 Theme on Elgg 1.6.1</title>
		<link>http://juipo.com/code-hacks/elgg-hacks/using-elgg-1-5-theme-on-elgg-1-6-1/</link>
		<comments>http://juipo.com/code-hacks/elgg-hacks/using-elgg-1-5-theme-on-elgg-1-6-1/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 22:23:09 +0000</pubDate>
		<dc:creator>Damir Gasparlin</dc:creator>
				<category><![CDATA[Elgg Hacks]]></category>

		<guid isPermaLink="false">http://juipo.com/?p=141</guid>
		<description><![CDATA[When Elgg 1.6.1 came out with many great improvements and bug fixes, many upgraded from the 1.5 version, I was one of them. Everything looked good until I logged in and popup message showed up letting me know that I was now logged in but it was not disappearing from the screen. Even clicking on [...]]]></description>
			<content:encoded><![CDATA[<p>When Elgg 1.6.1 came out with many great improvements and bug fixes, many upgraded from the 1.5 version, I was one of them.</p>
<p><img class="alignleft size-full wp-image-143" style="padding: 8px;" src="http://juipo.com/wp-content/uploads/2010/01/elggcamp.gif" alt="" width="61" height="54" />Everything looked good until I logged in and popup message showed up letting me know that I was now logged in but it was not disappearing from the screen. Even clicking on &#8220;click to dismiss&#8221; link did not work.</p>
<p>Another problem was that elgg topbar tools dropdown menu did not drop down. It took me a while to realize that I was using elgg theme for Elgg ver. 1.5 which uses older javascript files. I wanted to use the same theme but upgraded version of the theme was not available so I uploaded js files from Elgg 1.5 vendors/js folder and replaced ones on my new 1.6.1 elgg installation. It worked but that was only a temporary fix.</p>
<p>To get the permanent fix you have to update code in your theme folder/views/default/page_elements/ header.php file so it will call the new javascript files that are included in elgg version 1.6.1</p>
<p>Look for this code:</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo $vars['url']; ?&gt;vendors/jquery/jquery-1.2.6.pack.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo $vars['url']; ?&gt;vendors/jquery/jquery-ui-personalized-1.5.3.packed.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p>And replace with this:</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo $vars['url']; ?&gt;vendors/jquery/jquery-1.3.2.min.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo $vars['url']; ?&gt;vendors/jquery/jquery-ui-1.7.2.custom.min.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo $vars['url']; ?&gt;vendors/jquery/jquery.form.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p>And that should do the trick. So instead of changing to a different theme with a little copy and paste you can make your older theme work with new Elgg 1.6.1</p>
<p>If you have any problems, comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://juipo.com/code-hacks/elgg-hacks/using-elgg-1-5-theme-on-elgg-1-6-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transferring Pligg Site to New Host</title>
		<link>http://juipo.com/code-hacks/pligg-hacks/transferring-pligg-site-to-new-host/</link>
		<comments>http://juipo.com/code-hacks/pligg-hacks/transferring-pligg-site-to-new-host/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 23:03:04 +0000</pubDate>
		<dc:creator>Damir Gasparlin</dc:creator>
				<category><![CDATA[Pligg Hacks]]></category>

		<guid isPermaLink="false">http://juipo.com/?p=21</guid>
		<description><![CDATA[This article explains steps on how to successfully transfer Pligg site to a new host including files and database. Recently I had to transfer my Pligg website installation to a new host (My first time) and I wish I had known a bit more but I learned the hard way. Even Google wasn&#8217;t much help, [...]]]></description>
			<content:encoded><![CDATA[<p>This article explains steps on how to successfully transfer Pligg site to a new host including files and database.</p>
<p>Recently I had to transfer my Pligg website installation to a new host (My first time) and I wish I had known a bit more but I learned the hard way. Even Google wasn&#8217;t much help, there were no tutorials or gudes on how to do this. I have transfered many CMS sites (WordPress, ArticleMS ,etc.) before but this was my first Pligg transfer.</p>
]]></content:encoded>
			<wfw:commentRss>http://juipo.com/code-hacks/pligg-hacks/transferring-pligg-site-to-new-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO Friendly Page Titles for Pligg</title>
		<link>http://juipo.com/code-hacks/pligg-hacks/seo-friendly-page-titles/</link>
		<comments>http://juipo.com/code-hacks/pligg-hacks/seo-friendly-page-titles/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 00:12:02 +0000</pubDate>
		<dc:creator>Damir Gasparlin</dc:creator>
				<category><![CDATA[Pligg Hacks]]></category>
		<category><![CDATA[pligg]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[seo friendly title]]></category>
		<category><![CDATA[title tag]]></category>

		<guid isPermaLink="false">http://juipo.com/code-hacks/pligg-hacks/seo-friendly-page-titles/</guid>
		<description><![CDATA[You must have noticed on your default Pligg installation whatever page you open, the title tags stay the same "Pligg Beta 9 " (or the name of your site when you change it). This is not very Search Engine Friendly because the "page title tag element is still one of the most important factors for ranking highly in the search engines" so having the same title tag on every page would do you no good. Here is a really simple hack that will fix your Title tags on your Pligg Site.]]></description>
			<content:encoded><![CDATA[<p><strong>Create SEO Friendly Titles on your Pligg pages</strong></p>
<p>You must have noticed on your default Pligg installation whatever page you open, the title tags stay the same &#8220;Pligg Beta 9 &#8221; (or the name of your site when you change it). This is not very Search Engine Friendly because the &#8220;<a href="http://seojr.com/meta-tags-building-and-optimizing-a-search-engine-friendly-pages-part-1/" target="_blank">page title tag element</a> is still one of the most important factors for ranking highly in the search engines&#8221; so having the same title tag on every page would do you no good.</p>
<p>So here is a really simple hack that anyone can do and I have been using on all my Pligg sites and in <a href="http://juipo.com/category/free-tamplates/free-pligg-tamplates/">free pligg templates</a> offered here. This little hack will display Story titles on story pages, category names as titles on category pages and for all other pages whatever you name them in your Admin Panel (under Â» Admin Â» Modify Language) in  PLIGG_Visual names. It will also reverse page titles putting your site name AFTER the page name which is also better for Search Engines. Here are some examples of this below.</p>
<p><strong>Original Pligg Story Title</strong><br />
BuzzSEOjr.com | Most Important SEO Tips</p>
<p><strong>SEO Friendly Pligg Story Title</strong><br />
Most Important SEO Tips | BuzzSEOjr.com</p>
<p>Now your most important keywords are at the front of the page title. Very SEARCH ENGINE FRIENDLY title don&#8217;t you think?</p>
<p>Here&#8217;s how to do it:</p>
<p>First open <strong>templates/templateName/</strong><strong>pligg.tpl</strong> and <strong>FIND</strong></p>
<p><code>&lt;title&gt;{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)}{$posttitle}{/if}&lt;/title&gt;</code></p>
<p><strong>REPLACE WITH</strong></p>
<p><code>{if $pagename eq "story" || $pagename eq "topusers" || $pagename eq "cloud" || $pagename eq "upcoming" || $pagename eq "live" || $pagename eq "submit"}<br />
&lt;title&gt;{$posttitle|substr:3} | {#PLIGG_Visual_Name#}&lt;/title&gt;<br />
{elseif $pagename eq "search"}<br />
&lt;title&gt;{$posttitle|substr:3} search results | {#PLIGG_Visual_Name#}&lt;/title&gt;<br />
{else}<br />
&lt;title&gt;{#PLIGG_Visual_Name#} | {$pretitle|substr:22} {$posttitle|substr:3 }&lt;/title&gt;<br />
{/if}</code></p>
<p>That will take care of your main title tags. Now this Hack should take care of your h2 header tag on search page and it is optional.</p>
<p>Open <strong>templates/templateName/search_centre.tpl</strong> and <strong>FIND</strong></p>
<p><code>{if isset($templatelite.get.search)}<br />
&lt;h2&gt;{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes}&lt;/h2&gt;<br />
{/if}<br />
{if isset($templatelite.get.q)}<br />
&lt;h2&gt;{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes}&lt;/h2&gt;<br />
{/if}</code></p>
<p><strong>REPLACE WITH</strong></p>
<p><code>{if isset($templatelite.get.search)}<br />
&lt;h2&gt;{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes} search results&lt;/h2&gt;<br />
{/if}<br />
{if isset($templatelite.get.q)}<br />
&lt;h2&gt;{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes} Search Results&lt;/h2&gt;<br />
{/if}</code></p>
<p>There is one more thing to do, go to your Admin Panel / Modify Language and filter for &#8220;Search results for&#8221;, remove both pieces of text by editing and deleting the text then clicking save leaving blank text fields.</p>
<p>Thats it, you&#8217;re done. You just created SEO Optimized Page Titles on your Pligg site.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://juipo.com/code-hacks/pligg-hacks/seo-friendly-page-titles/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pligg Duplicate Content Fix</title>
		<link>http://juipo.com/code-hacks/pligg-hacks/pligg-duplicate-content-fix/</link>
		<comments>http://juipo.com/code-hacks/pligg-hacks/pligg-duplicate-content-fix/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 00:59:42 +0000</pubDate>
		<dc:creator>Damir Gasparlin</dc:creator>
				<category><![CDATA[Pligg Hacks]]></category>
		<category><![CDATA[dupe content]]></category>
		<category><![CDATA[pligg]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://juipo.com/code-hacks/pligg-hacks/pligg-duplicate-content-fix/</guid>
		<description><![CDATA[Most websites powered by CMS (Joomla, WordPress, etc.) have files and folders that are not relevant for search engines (like images or admin files) amd Pligg is no exception with story pages having several URLâ€™s that get indexed by the search engines and it would be flagged as duplicate content. The most effective and easiest [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juipo.com/wp-content/themes/branfordmagazine/images/pligg1sm.png" alt="" width="136" height="88" align="left" />Most websites powered by CMS (Joomla, WordPress, etc.) have files and folders that are not relevant for search engines (like images or admin files) amd Pligg is no exception with story pages having several URLâ€™s that get indexed by the search engines and it would be flagged as duplicate content. The most effective and easiest way to fix this is by adding a robots.txt file to your root folder.</p>
<p>The robots.txt file will tell the search engine robots what pages on your blog or website should be crawled and indexed and you really donâ€™t want them to index your admin files because there is no relevant content there so creating a simple robots.txt file can actually improve your website&#8217;s crawlability and overall SEO.</p>
<p>Here&#8217;s an example of Dupe content from a pligg website :</p>
<p>http://buzz.seojr.com/InternetMarketing/Most-Profitable-Adsense-Keywords-List/</p>
<p>http://buzz.seojr.com/story/title/Most-Profitable-Adsense-Keywords-List/</p>
<p>Both of those URLsÂ  point to the same page and will be indexed by search engines and there goes the flag, so here is the fix.</p>
<p><strong>1. </strong>Open your NotePad.</p>
<p><strong>2.</strong> Copy the text below and paste it into the file.</p>
<p># All robots will spider the domain<br />
User-agent: *<br />
Disallow: /templates/<br />
Disallow: /3rdparty/<br />
Disallow: /libs/<br />
Disallow: /modules/<br />
Disallow: /plugins/<br />
Disallow: /internal/<br />
Disallow: /backup/<br />
Disallow: /thickbox/<br />
Disallow: /api/<br />
Disallow: /evb/<br />
Disallow: /avatars/<br />
Disallow: /admin_index.php<br />
Disallow: /admin<br />
Disallow: /story.php<br />
Disallow: /login.php<br />
Disallow: /user.php<br />
Disallow: /js/<br />
Disallow: /img/<br />
Disallow: /story/<br />
Disallow: /story/title/</p>
<p><strong>3.</strong> Save the file on your computer as robots.txt</p>
<p><strong>4.</strong> Now upload the newly created robots.txt file to you pligg rott directory overwriting the existing file if there is one already.There you have it, no more duplicate content.Â  Read more on <a title="Improve SEO with robots.txt" href="http://seojr.com/improve-seo-robots-txt/" target="_blank">Robots.txt and SEO</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://juipo.com/code-hacks/pligg-hacks/pligg-duplicate-content-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

