<?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>Linksutra &#187; Joomla</title>
	<atom:link href="http://linksutraadmin.linksutra.com/wordpress/category/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://linksutraadmin.linksutra.com/wordpress</link>
	<description>Just another Linksutra Blogs weblog</description>
	<lastBuildDate>Tue, 25 May 2010 21:51:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ajax in Joomla Component</title>
		<link>http://linksutraadmin.linksutra.com/wordpress/2010/05/26/ajax-in-joomla-component/</link>
		<comments>http://linksutraadmin.linksutra.com/wordpress/2010/05/26/ajax-in-joomla-component/#comments</comments>
		<pubDate>Tue, 25 May 2010 21:49:19 +0000</pubDate>
		<dc:creator>Link Sutra</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax in joomla]]></category>
		<category><![CDATA[ajax joomla component]]></category>

		<guid isPermaLink="false">http://linksutraadmin.linksutra.com/wordpress/?p=112</guid>
		<description><![CDATA[If you already have your own joomla component then it is fine otherwise create new one for yourself within minute.  Joomla Component Creator
Lets assume we have component &#8220;ajaxcall&#8221; and we are making ajaxcall from &#8220;com_ajaxcall\views\ajaxcall\tmpl\default.php&#8221; file.
We will make ajax call  to the format &#8220;ajaxcallformat&#8221; (i.e. view.ajaxcallformat.php)
javascript code in &#8220;com_ajaxcall\views\ajaxcall\tmpl\default.php&#8221;

&#60;script type=&#34;text/javascript&#34;&#62;

function AjaxCall(name)
{

var httpxml;
try
{
// Firefox, Opera 8.0+, [...]]]></description>
			<content:encoded><![CDATA[<p>If you already have your own joomla component then it is fine otherwise create new one for yourself within minute.  <a href="http://www.notwebdesign.com/joomla-component-creator/">Joomla Component Creator</a></p>
<p>Lets assume we have component <strong>&#8220;ajaxcall&#8221;</strong> and we are making ajaxcall from &#8220;com_ajaxcall\views\ajaxcall\tmpl\default.php&#8221; file.</p>
<p><strong>We will make ajax call  to the format &#8220;ajaxcallformat&#8221; (i.e. view.ajaxcallformat.php)</strong></p>
<p>javascript code in<strong> </strong>&#8220;com_ajaxcall\views\ajaxcall\tmpl\default.php&#8221;</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;

function AjaxCall(name)
{

var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}

function statecall()
{

if(httpxml.readyState==4)
{
var resp=httpxml.responseText;
alert(resp);

}
}

var url=&quot;index.php?option=com_ajaxcall&amp;view=ajaxcall&amp;format=ajaxcallformat&quot;;

var params=&quot;name=&quot;+name;

httpxml.onreadystatechange=statecall;
httpxml.open(&quot;POST&quot;,url,true);

//Send the proper header information along with the request
httpxml.setRequestHeader(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded&quot;);
httpxml.setRequestHeader(&quot;Content-length&quot;, params.length);
httpxml.setRequestHeader(&quot;Connection&quot;, &quot;close&quot;);

httpxml.send(params);

}
&lt;/script&gt;
</pre>
<p><strong>AjaxCall in &#8220;com_ajaxcall\views\ajaxcall\default.php&#8221;</strong></p>
<pre class="brush: xml;">
&lt;label&gt;Name:&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot;&gt;
&lt;input type=&quot;button&quot; value=&quot;Submit&quot;
OnClick=&quot;AjaxCall(document.getElementById('name').value);&quot;&gt;
</pre>
<p><span style="color: #000000"><strong>view.ajaxcallformat.php</strong></span> will be in (i.e. com_ajaxcall\views\ajaxcall ) folder.</p>
<pre class="brush: php;">
&lt;?php
/**
 * Joomla! 1.5 component AjaxCall
 *
 * @version $Id: view.html.php 2010-05-25 15:58:28 svn $
 * @author govind dubey
 * @package Joomla
 * @subpackage AjaxCall
 * @license GNU/GPL
 *
 * AjaxCall
 *
 * This component file was created using the Joomla Component Creator by Not Web Design
 * http://www.notwebdesign.com/joomla_component_creator/
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the AjaxCall component
 */
class AjaxcallViewAjaxcall extends JView {
 function display($tpl = null) {

 }
}

echo $_POST['name'];

?&gt;
</pre>
<p><a href="http://www.linksutra.in/com_ajaxcall.zip"><strong>DOWNLOAD ZIP FILES</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://linksutraadmin.linksutra.com/wordpress/2010/05/26/ajax-in-joomla-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linksutra Social Networking Component and Module (2.0)</title>
		<link>http://linksutraadmin.linksutra.com/wordpress/2010/04/21/linksutra-social-networking-component-and-module-2-0/</link>
		<comments>http://linksutraadmin.linksutra.com/wordpress/2010/04/21/linksutra-social-networking-component-and-module-2-0/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:15:25 +0000</pubDate>
		<dc:creator>Link Sutra</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://linksutraadmin.linksutra.com/wordpress/?p=80</guid>
		<description><![CDATA[


Linksutra Profile Module (needs Linksutra Profile Component)
Linksutra Profile Component
These component and module provides facility to joomla admin to  create social networking site easily.
UPDATES:
1) backend admin part to customize profile and translations (no 404 error anymore) .
2) phpthumb support for thumbnail in profile,scraps,friends etc
3) live updates from friend stream on profile
DEMO Download
Features:


1) Users Profile 
2) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-85" src="http://linksutraadmin.linksutra.com/wordpress/files/2010/04/backend-150x150.jpg" alt="backend" width="150" height="150" /></p>
<p><code><br />
</code></p>
<p>Linksutra Profile Module (needs Linksutra Profile Component)</p>
<p>Linksutra Profile Component</p>
<p>These component and module provides facility to joomla admin to  create social networking site easily.</p>
<p><strong><span style="color: #ff0000">UPDATES:</span></strong></p>
<p><strong>1) backend admin part to customize profile and translations (no 404 error anymore) .<br />
2) phpthumb support for thumbnail in profile,scraps,friends etc<br />
3) live updates from friend stream on profile</strong></p>
<p><a title="DEMO" href="http://demo.linksutra.com" target="_blank">DEMO</a> <a href="http://www.linksutra.com/linksutra.zip">Download</a></p>
<p><strong>Features:</strong></p>
<p><strong><br />
</strong></p>
<p><strong><em>1) Users Profile </em></strong></p>
<p><strong><em>2) friends:</em></strong></p>
<p><strong><em>3) scrapbook :</em></strong></p>
<p><strong><em>4) Demands</em></strong></p>
<p><strong><em>5) Offers </em></strong></p>
<p><strong><em>6) album :</em></strong></p>
<p><a title="Linksutra Module " href="http://www.linksutra.com/linksutra.zip">Linksutra  Component/Module<strong><span style="color: #ff0000"> </span></strong></a><strong><span style="color: #ff0000"> ( first unzip the  downloaded file and install component/module separately.)</span></strong></p>
<p><strong><br />
</strong></p>
<p><strong>HELP: 21/10/2009</strong></p>
<p>follow these steps to get linksutra component/module working.</p>
<p><span style="color: #993300">1)  download and install linksutra component and module</span></p>
<p><span style="color: #993300"><br />
2) edit/create  menu items (i prefer top menu) to linksutra components  by &#8220;change menu item type&#8221;  to  (profile/demands/offers/scrapbook/friends)</span></p>
<p><span style="color: #993300"><br />
3) publish linksutra module either to left or right position and with  registered access.</span></p>
<p><span style="color: #993300"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linksutraadmin.linksutra.com/wordpress/2010/04/21/linksutra-social-networking-component-and-module-2-0/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linksutra Social Networking Component and Module &#8211; Joomla 1.5</title>
		<link>http://linksutraadmin.linksutra.com/wordpress/2009/09/19/linksutra-social-networking-component-and-module-joomla1-5/</link>
		<comments>http://linksutraadmin.linksutra.com/wordpress/2009/09/19/linksutra-social-networking-component-and-module-joomla1-5/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 08:25:38 +0000</pubDate>
		<dc:creator>Link Sutra</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://linksutraadmin.linksutra.com/wordpress/2009/09/19/linksutra-social-networking-component-and-module-joomla1-5/</guid>
		<description><![CDATA[

Linksutra Profile Module (needs Linksutra Profile Component)
Linksutra Profile Component
These component and module provides facility to joomla admin to create social networking site easily.


DEMO
Features:


1) Users Profile 
showing the total visits, friends connection, friends, 5 demands and offers of user , basic information of user like about me, city, age, gender etc
2) friends:
showing the list of friends [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
</code></p>
<p>Linksutra Profile Module (needs Linksutra Profile Component)</p>
<p>Linksutra Profile Component</p>
<p>These component and module provides facility to joomla admin to create social networking site easily.</p>
<p><code><br />
</code></p>
<p><a title="DEMO" href="http://demo.itrindia.com" target="_blank">DEMO</a></p>
<p><strong>Features:</strong></p>
<p><strong><br />
</strong></p>
<p><strong><em>1) Users Profile </em></strong></p>
<p>showing the total visits, friends connection, friends, 5 demands and offers of user , basic information of user like about me, city, age, gender etc</p>
<p><strong><em>2) friends:</em></strong></p>
<p>showing the list of friends and their basic information</p>
<p><strong><em>3) scrapbook :</em></strong></p>
<p>showing the scrapbook of user where user can send scrap or reply.</p>
<p><strong><em>4) Demands</em></strong></p>
<p>showing  demands posted by all the users and user can also post new demand.</p>
<p><strong><em>5) Offers </em></strong></p>
<p>showing offers posted by all the users and user can also post new offer.</p>
<p><strong><em>6) album :</em></strong></p>
<p>users can maintain their pics and albums by uploading, editing pics/albums.</p>
<p><a title="Linksutra Module " href="http://www.linksutra.com/linksutra.zip">Linksutra Component/Module<strong><span style="color: #ff0000"> </span></strong></a><strong><span style="color: #ff0000"> ( first unzip the downloaded file and install component/module separately.)</span></strong></p>
<p><strong>UPDATED: 13/10/2009</strong><br />
modules and components pointing to joomla installation now.<br />
layout css now working for firefox and IE both.</p>
<p><strong>HELP: 21/10/2009</strong></p>
<p>follow these steps to get linksutra component/module working.</p>
<p><span style="color: #993300">1) download and install linksutra component and module</span></p>
<p><span style="color: #993300"><br />
2) edit/create  menu items (i prefer top menu) to linksutra components by &#8220;change menu item type&#8221;  to (profile/demands/offers/scrapbook/friends)</span></p>
<p><span style="color: #993300"><br />
3) publish linksutra module either to left or right position and with registered access.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linksutraadmin.linksutra.com/wordpress/2009/09/19/linksutra-social-networking-component-and-module-joomla1-5/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Joomla and wordpress MU bridge</title>
		<link>http://linksutraadmin.linksutra.com/wordpress/2009/09/01/joomla-wordpress/</link>
		<comments>http://linksutraadmin.linksutra.com/wordpress/2009/09/01/joomla-wordpress/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:02:39 +0000</pubDate>
		<dc:creator>Link Sutra</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I will try to explain how you can use wordpress MU (2.8.4)  inside your joomla (1.5)  to create blogs for your joomla users automatically.
you will not want  every joomla user to have blogs without actually user wants it to create.
keeping it in mind we follow these things.
1)  install wordpress MU inside your joomla main installation [...]]]></description>
			<content:encoded><![CDATA[<p>I will try to explain how you can use wordpress MU (2.8.4)  inside your joomla (1.5)  to create blogs for your joomla users automatically.</p>
<p>you will not want  every joomla user to have blogs without actually user wants it to create.</p>
<p>keeping it in mind we follow these things.</p>
<p>1)  install wordpress MU inside your joomla main installation directory (i.e if my joomla is installed in ABC/joomla then I would install wordpress inside ABC/Joomla/wordpress</p>
<p>2) when installing your wordpress keep the database same as joomla is using (remember you should not have ur joomla tables prefix &#8220;wp_&#8221; if it is so then change your joomla tables prefix to something else)</p>
<p>3) configure your wordpress.</p>
<p>4) now come to the button or link on your registered joomla user page where you want to give user an option to create wordpress blogs.</p>
<p>5) following functions you should have</p>
<p><strong><br />
</strong></p>
<pre class="brush: php;">

function  getUserValue($id,$field){

$db      =&amp; JFactory::getDBO();
$query=&quot;SELECT $field from #__users Where id=&quot;.$id;
$db-&gt;setQuery($query);
$result=$db-&gt;loadObject($field);

//if(strlen($result-&gt;$field)&lt;100){
return nl2br($result-&gt;$field);
// }else{
//return ;
//  }

}

function isBlogActive($username){
$db      =&amp; JFactory::getDBO();
$query=&quot;SELECT COUNT(*) FROM wp_blogs Where domain='&quot;.$username.&quot;.&lt;span style=&quot;color: #993300&quot;&gt;&lt;strong&gt;&lt;em&gt;yourdomain&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;.com'&quot;;
//echo $query;

$db-&gt;setQuery($query);
//echo $db-&gt;stdErr();
$results=$db-&gt;loadResult();

//echo $results;

return $results;

}
</pre>
<p>#### now paste given below where you want to give user an option to create  blog</p>
<pre class="brush: php;">&lt;/pre&gt;
&lt;pre&gt;&lt;?php
 $user=&amp; JFactory:getUser();
$id=$user-&gt;get('id);
if(isBlogActive(getUserValue($id,'username'))){
echo '&lt;a href=&quot;http://'.getUserValue($id,'username').'.&lt;span style=&quot;color: #993300&quot;&gt;&lt;strong&gt;yourdomain&lt;/strong&gt;&lt;/span&gt;.com&quot;&gt;
MY BLOGS&lt;/a&gt;';
}else{

?&gt;

&lt;form method=&quot;post&quot; action=&quot;/wordpress/wp-admin/wpmu-edit.php?action=addblog&quot;&gt;
&lt;input name=&quot;blog[createblog]&quot; type=&quot;hidden&quot; title=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;some key&lt;/span&gt;&quot; value=&quot;&lt;span style=&quot;color: #0000ff&quot;&gt;some key&lt;/span&gt;&quot;/&gt;
&lt;input name=&quot;blog[domain]&quot; type=&quot;hidden&quot;
title=&quot;&lt;?php echo getUserValue($id,'username'); ?&gt;&quot;
value=&quot;&lt;?php echo getUserValue($id,'username'); ?&gt;&quot;/&gt;

&lt;input type=&quot;hidden&quot; name=&quot;blog[title]&quot;  size=&quot;20&quot;
title=&quot;&lt;?php echo getUserValue($id,'name'); ?&gt;&quot;
value=&quot;&lt;?php echo getUserValue($id,'name'); ?&gt;&quot;/&gt;

&lt;input type=&quot;hidden&quot; name=&quot;blog[email]&quot;  size=&quot;20&quot;
title=&quot;&lt;?php echo getUserValue($id,'email'); ?&gt;&quot;
value=&quot;&lt;?php echo getUserValue($id,'email'); ?&gt;&quot;/&gt;

&lt;input type=&quot;submit&quot; name=&quot;go&quot; id=&quot;go&quot;
Value=&quot;Add &lt;?php echo getUserValue($id,'name');?&gt; Blogs&quot; &gt;

&lt;/form&gt;

 &lt;?php

 }
 ?&gt;
</pre>
<p>##################################</p>
<p>6) now come to wordpress/wp-admin/wpmu-edit.php file to make some changes</p>
<p>#######CHANGE FROM:##########################</p>
<pre class="brush: php;">
if( is_site_admin() == false ) {
wp_die( __('You do not have permission to access this page.') );
} do_action('wpmuadminedit', '');
if( isset($_GET[ 'id' ]) ) {
$id = intval( $_GET[ 'id' ] );
} elseif( isset($_POST[ 'id' ]) ) {
$id = intval( $_POST[ 'id' ] );
}
if( isset( $_POST['ref'] ) == false &amp;&amp; !empty($_SERVER['HTTP_REFERER']) ) {
$_POST['ref'] = $_SERVER['HTTP_REFERER'];
}
</pre>
<p>#######################  CHANGE TO:##########</p>
<pre class="brush: php;">
$blog = $_POST['blog'];

if($blog['createblog']=='&lt;span style=&quot;color: #0000ff&quot;&gt;some key&lt;/span&gt;'){

}else{

if( is_site_admin() == false ) {
wp_die( __('You do not have permission to access this page.') );
}

do_action('wpmuadminedit', '');

if( isset($_GET[ 'id' ]) ) {
$id = intval( $_GET[ 'id' ] );
} elseif( isset($_POST[ 'id' ]) ) {
$id = intval( $_POST[ 'id' ] );
}

}
</pre>
<p>7)  go to case &#8220;addblog&#8221;: line  in wpmu-edit.php and replace check_admin_referer(&#8217;add-blog&#8217;); line with</p>
<pre class="brush: php;">

$blog = $_POST['blog'];
if($blog['createblog']=='&lt;span style=&quot;color: #0000ff&quot;&gt;&lt;strong&gt;some key&lt;/strong&gt;&lt;/span&gt;'){
}else{
check_admin_referer('add-blog');
}
</pre>
<address><strong><strong> <img src='http://linksutraadmin.linksutra.com/wordpress/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </strong>open admin.php in same directory and comment the line <strong>auth_redirect()</strong>;</strong></address>
<p><strong>to <strong> </strong></strong></p>
<p><strong><strong>//auth_redirect();</strong></strong></p>
<p><strong><strong>################</strong></strong></p>
<p><strong><strong>DO NOT FORGET TO CHANGE &#8220;<span style="color: #0000ff">some key</span>&#8221; and &#8220;<span style="color: #993300">yourdomain</span>&#8220;.<br />
</strong></strong></p>
<p><strong><strong>and you are done with it but make sure your wordpress is configured to send user login/passwd after their registeration so that user can get his blog pasword otherwise use &#8220;configure smtp&#8221; plugin to send mail using gmail or google hosted emails.</strong></strong></p>
<p><strong><strong>HAPPY BLOGGING</strong></strong></p>
<p><strong><strong><a title="Linksutra" href="http://www.linksutra.com" target="_blank">http://www.linksutra.com</a><br />
</strong></strong></p>
<p><strong><strong><br />
</strong></strong></p>
<p><strong><strong><br />
</strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://linksutraadmin.linksutra.com/wordpress/2009/09/01/joomla-wordpress/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>
