Help with a wordpress plugin
Posted: Tue Apr 20, 2010 2:45 pm
Hi everybody, the plugin i'm talking about is http://wordpress.org/extend/plugins/kb-gradebook/ and what it does is: import data from a .csv, generate random passwords and use a defined column as user for login to display grades. Basically it uses e-mails to generate passwords.
What I would like:
What I want to do is use data from another column "name" to be used for login and the data from the column "email" to be used only for finding out the password.
The problem i encountered is that the plugin uses an array with emails as keys and passwords as values, and when i add the "name" variable it just replaces the emails and is used as a key. I would like to use something like 2 keys for the password value so that when i complete the field to find out the password i use the email and when i complete the login form i use the "name". Hope I was clear enough, the whole php file for the plugin is at the link above, any help would be much appreciated. I promise you that I really tried a lot before posting here. Have a nice day!
Oh i forgot to say that i already added another field in the admin part where i select the name of the column i use for the "name" variable similar to the one used for finding the email column.
What I would like:
What I want to do is use data from another column "name" to be used for login and the data from the column "email" to be used only for finding out the password.
The problem i encountered is that the plugin uses an array with emails as keys and passwords as values, and when i add the "name" variable it just replaces the emails and is used as a key. I would like to use something like 2 keys for the password value so that when i complete the field to find out the password i use the email and when i complete the login form i use the "name". Hope I was clear enough, the whole php file for the plugin is at the link above, any help would be much appreciated. I promise you that I really tried a lot before posting here. Have a nice day!
Oh i forgot to say that i already added another field in the admin part where i select the name of the column i use for the "name" variable similar to the one used for finding the email column.