Last 2 month ago one of my office colleague signed up with digital forums and got error and even not received any email from digital point
Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235
I thought it may be they have updated some code so it is not working and will get fixed after some day.
Today I tried again with digital forums I am not able to login with my id. I have tried with some other friend id that was too not working. So I tried to sign up for an account and unfortunately the same error I see again
Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235
It seems dp is not doing any development or testing to there script. Do any one have any idea or facing problem like me. Please share your thought so me and other can get help on the matter.
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.
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.
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.
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/>”;
}
}
?>
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
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!
