MyBlogPlanner

May 27th, 2009

Auto Login Joomla function

One of my client always like to sent mail to his members with updates of the website to make them participate. For long time he was demanded me a auto login system in joomla.

Today at last we got the solution how we can do it. I am sharing this with you hope that may help a lot of people.

function FnAutoLogin($ActivateID)
{

global $mainframe;
$db = JFactory::getDBO();
$Password =  FnGenerateNewPassword(’9′); // Generating joomla password

//Fetching User Details according to Activation ID start

$query = “select * from #__users where activation=’”.$ActivateID.”‘”;
$db->setQuery( $query );
$UserDetailsInArray = $db->loadObjectList();

//Fetching User Details according to Activation ID end

if(isset($UserDetailsInArray[0]))
{
$TempPassword = $UserDetailsInArray[0]->password;   // Storing user actual password

$query1 = “update #__users set password=’”.$Password.”‘ where activation =’”.$id.”‘”; //Updating temporary password
$db->setQuery( $query1 );
if($db->query())
{
//                      User Login start

$usersipass[’username’] = $UserDetailsInArray[0]->username;
$usersipass[’password’] = ‘9′;
$mainframe->login($usersipass);

//                      User Login end
$query1 = “update #__users set password=’”.$TempPassword.”‘, block=0 where activation =’”.$ActivateID.”‘”; //Update user actual password againand redirect to your appropriate page you like :)
$db->setQuery( $query1 );
if($db->query())
{
$Msg = ‘Please upload your picture to see your profile.’;
$mainframe->redirect( ‘index.html’,$Msg);
}
}
}
else
{
echo ‘You don\’t have account yet? <a href=”/join.html”>Join Us Today </a>’;
}
}

Hope this will help a lot of developer to make auto login system in joomla. :)



April 27th, 2009

Create New joomla password function

Let me show you how you can create joomla password function

Here is the exmaple how you can create joomla 1.5.x password function.

function FnGenerateNewPassword($Password)
{
jimport(’joomla.user.helper’);

$salt        = JUserHelper::genRandomPassword(32);
$crypt        = JUserHelper::getCryptedPassword($Password, $salt);
$password    = $crypt.’:’.$salt;
return  $password;

}

Hope this will help you in some program. :)


December 1st, 2008

Drawing component module

Hi All itcslive introducing a new module for email drawing.

Feature:

This module wil help user to subscribe any drawing image to his email.

I am sharing this module with all give your comment how this is benifit for you.

Drawing Component

Drawing Module

October 10th, 2008

Justforjoomla review

Joomla1.5 is basically the higher version of joomla 1.0 and the open source content management system.It is one of the most successful cms system here internet world.
If you want see my joomla1.5 cms website you can check it here in this url.
http://subikar.justforjoomla.com

You are thinking why I am writing all this stuff to here. Am I wasting my time ?
Nopes :)
Actually every one has a dream now a days have one personal website but without investing money. So I will ask them to have your website just today like me. Go to http://www.Justforjoomla.com and have your cms website today.

January 15th, 2008

Upload any format image and resize

Here is another code from me.

Upload image and resize…….

Features available :

1. Upload any format image.

2. Resize image.

How to install.

  • Download
  • Extract the folder to your root directory.
  • Change Parameter                                                                                                                             $ArgumentsInArray = array(
    ‘TmpFileName’      =>$_FILES[’resize’][’tmp_name’],
    ‘DestinationFolder’=>’C:/wamp/www/resize/image/’, /* Change the path of the image where it will upload after resizing.*/
    ‘FileName’         => $_FILES[’resize’][’name’],
    ‘Width’            => 200, /* Width of the image after resize */
    ‘Height’           => 30,  /* Height of the image after resize */
    );
  • Run from web browser : http//www.yoursitename.com/resize/resizeme.php

Thanks a lot going to find out more simple work for you.

January 9th, 2008

At last MyBlogplanner is launced

Hi guys today I got time to work on my own domain worked 4 hour today and installed the community for you all. Partcipate and enjoy your life this is for you all in this new year a gift for all.

Love you all. :)

MyBlogPlanner Team

November 22nd, 2007

Know your site’s external and internal links!

Let me share with you one of my small development demos.

I have written a php code that checks in a web page, how many internal and external links it is holding. The code is really easy to install in your site or blog.

I think the SEOs who have a lesser knowldge in php would be very happy to avail this code.

Please check the demo over here.

I am sharing the code below with you :

<h2>External Internal Link checker</h2>
<form action=”" method=”post” enctype=”application/x-www-form-urlencoded” name=”form1″>
<b>Enter Url</b> :
<input name=”url” type=”text” size=”50″ style=”border:1px solid blue;”/>
<input name=”submit” type=”submit” value=”submit” style=”color:black; font-weight:bold; background-color:white; border:0px;” />
</form>
<?php
// retrieve link destinations
function get_a_href($url){
$url = htmlentities(strip_tags($url));
$ExplodeUrlInArray = explode(’/',$url);
$DomainName = $ExplodeUrlInArray[2];
$file = file_get_contents($url);
$h1count = preg_match_all(’/(href=[”|\’])(.*?)([”|\’])/i’,$file,$patterns);
$linksInArray = $patterns[2];
$CountOfLinks = count($linksInArray);
$InternalLinkCount = 0;
$ExternalLinkCount = 0;
for($Counter=0;$Counter<$CountOfLinks;$Counter++)
{

if($linksInArray[$Counter] == “” || $linksInArray[$Counter] == “#”)
continue;
preg_match(’/javascript:/’, $linksInArray[$Counter],$CheckJavascriptLink);
if($CheckJavascriptLink != NULL)
continue;
$Link = $linksInArray[$Counter];
preg_match(’/\?/’, $linksInArray[$Counter],$CheckForArgumentsInUrl);
if($CheckForArgumentsInUrl != NULL)
{
$ExplodeLink = explode(’?',$linksInArray[$Counter]);
$Link = $ExplodeLink[0];
}
preg_match(’/’.$DomainName.’/',$Link,$Check);
if($Check == NULL)
{
preg_match(’/http:\/\//’,$Link,$ExternalLinkCheck);
if($ExternalLinkCheck == NULL)
{
$InternalDomainsInArray[$InternalLinkCount] = $Link;
$InternalLinkCount++;
}
else
{
$ExternalDomainsInArray[$ExternalLinkCount] = $Link;
$ExternalLinkCount++;
}

}
else
{
$InternalDomainsInArray[$InternalLinkCount] = $Link;
$InternalLinkCount++;
}
}

$LinksResultsInArray = array(
‘ExternalLinks’=>$ExternalDomainsInArray,
‘InternalLinks’=>$InternalDomainsInArray
);
return $LinksResultsInArray;
}

if(isset($_POST[’submit’]) && $_POST[’submit’] == ’submit’)
{

$url = $_POST[’url’];
$linksInArray = get_a_href($url);
$CountOfExternalLink = count($linksInArray[’ExternalLinks’]);
$CountOfInternalLink = count($linksInArray[’InternalLinks’]);
echo “<h1>Link structure</h1>”;

if(!empty($linksInArray[’ExternalLinks’])){
echo “<br/>External Links found: (”.$CountOfExternalLink.”)<ul>”;
foreach($linksInArray[’ExternalLinks’] as $key => $val){
$val = preg_replace(”/</”,”<”,$val);
echo “<li>” . htmlentities($val) . “</li>”;
}
echo “</ul>”;
}else{
echo “<br/><div class=\”error\”>No External Links found</div><br/>”;
}

if(!empty($linksInArray[’InternalLinks’])){
echo “<br/>Internal Links found: (”.$CountOfInternalLink.”)<ul>”;
foreach($linksInArray[’InternalLinks’] as $key => $val){
$val = preg_replace(”/</”,”<”,$val);
echo “<li>” . htmlentities($val) . “</li>”;
}
echo “</ul>”;
}else{
echo “<br/><div class=\”error\”>No Internal Links found</div><br/>”;
}
}
?>

October 25th, 2007

My Blog Planner story

This is a short story a year back. I am designing a floating orkut system. Where user can scrap to other, can plan for there next blog post, can send private message to author of the blog and many more. At that time my boss Aji Issac Mathew plan to buy a domain for this tool. Today this tool is quite famous most of the blogger are using this tool and happy. Now the next phase of myblogplanner releasing now you will get thing here to do. Plan your blog to scrap your friend send private message to add your friend in your friend list. You can add video, audio, share your knowledge to other and make your blog known to the world a little time expand.

I hope you will enjoy to became part of this community and stay forever.

Best of luck

September 22nd, 2007

My Blog planner first post.

This is Subikar, an IT professional trying to run a website for the common net-savvy people . I have taken this decision only after being in the web-development industry for over 2 years. I have chosen the ‘myblogplanner’ domain as a platform, wherein I would be able to support the users with all the functionalities of the web-world & they might grasp it quite smoothly. I do not wish to say muchamidst the development of my site , but would like to have more of such opportunities ahead of us. It would just take a week’s time before I could launch this platform in order to let you feel the buzz around a newborn community!

My Blog Planner Blog