D7: unable to login after registered with my customized user registration page (password encryption issue)

I am currently working on a customized user registration page. It worked fine to a point I was able to save users into the database. The user will enter their default password on the form, so I hashed it and stored in the pass column in the users table.

$hashedpassword =  user_hash_password(check_plain($form_state['values']['password']));

But after a test user entered, i was not able to login to the site. I am getting this password mismatch error. Here is what I found out so far:

	//return a valid user account if the user data successfully saved into database
	$newaccount = user_save(null, $newUser);
	drupal_set_message('plain password before user_hash_password() is : '.$form_state['values']['password']);
	drupal_set_message('Password in $account after user saved :'.$newaccount->pass);
	if (user_check_password($form_state['values']['password'], $newaccount))
	{
		drupal_set_message(t('passwords match'));
	}
	else
	{
		drupal_set_message(t('passwords not match'));
	}

Here are the output:

plain password before user_hash_password() is : er23er
Password in $account after user saved :$S$Cy5ZuH9713b.t71/TtEmJDLlW1GvyZwwqUzDiG2yzdo1iEjkIbPK
stored hash variable in user_check_password is : $S$Cy5ZuH9713b.t71/TtEmJDLlW1GvyZwwqUzDiG2yzdo1iEjkIbPK
plain password before _password_crypt call is : er23er

How can I form a URL so that drupal returns a particular field of a node as is without any theme

I have about 2 days worth of experience on drupal.

what I want to do:

if I hit a url like this

http://mydrupalsite.com/getfield/node/57/field_x

Then I want this URL to return the actual value of "field_x" of node "57".

Is there a way to do this natively in drupal?
is there a module that can do this?
do I need to write a menu hook and theme hook to retrieve the node part and return?

Your help is so much appreciated

Help to put psd theme working on drupal

Hi, I am Gabriel von Barthalis and im developing a social network with a team. Unfortunately, the coders have no previous experience with Drupal. So im looking for someone who can give us a hand and get our design working on it, ready for us to implement all site features.

Also, if you are intersted in joining the team you can, we are looking for more coders! Simply contact me at vonbarthalis@gmail.com

Thanks a lot!

Empty comment posting - without comment/reply page

When someone submits an empty comments it take him to a comment/reply page, which does not show my custom configure comment form.
In have configure comment form to be without homepage field, and without text input filter instructions.
So comment/reply does not follow the custom formating.

So how I can make empty comment posting to stay at the same content URL?

thanks

Ranking Website-Module Needed

Hey guys, I am looking for a module/theme that will help me create a ranking directory website. I would like to have people be able to select a term from a list and then a list of businesses comes up, with the highest ranked on top. Can I use taxonomy? If so, how do I do it?

Thanks in advance

Combining default feed and external rss feed

I am trying to present on the frontpage of my site a list that contains both local news items and items from an external rss and display it in a similar manner as the default frontpage feed. How can I do this?

I tried combining a view with an rss display and an external rss feed into a single feed category, which successfully combines them, but I don't seem to have any control over how the Aggregator block formats the display of its items, and its default formatting is pretty minimal.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x