Hi there
Really stoked to find this great little module. But I'm still a newbie to Drupal and was just wanting a bit more explaination on where to add the $path in the code. It would be nice to be able to set this in the user settings with the email template?
I also would really, really like the feature to send a one time link to all users. I'm not so gifted to add the code, button etc. Not sure of all your the reasons not to add it. Couldn't a warning message be used? Adding it to the "User list" page in the "Update options" dropdown would be fantastic.....
Any help would be appreciated
Tan
Comments
Comment #1
danielb commentedI don't understand that question. Are you familiar with PHP?
You can easily make a script like so to do that:
I don't understand the suggestion.
Comment #2
tanma commentedSorry, I'm not so familiar with PHP - but with some simple directions I can often manage.
My key question was - where do I set the path?
When I click the "Send one time login link to xxx" it sends the email and generates a one time link that has a path set to the user details page. I want just want the sites home page.
You mentioned in the module usage that:
I guess it is obvious but could you please give some basic directions on where to put this code?
Comment #3
danielb commentedPut the code wherever you need it mate, in a node template or something.
The path they will go to is the value of $path.
You really need to learn some basic PHP :/ I can't teach that to you here.
php.net/manual
Comment #4
tanma commentedIf I'm not mistaken this code will give an a new button?
I just want to modify the path for the exisitng button that appears on the user account page.
The only place I see to set the path is in the login_one_time.module, I'll try adding the path here:
'#value' => login_one_time_button($account, "http://mysite/?q=node/99"),
Comment #5
tanma commentedNo worries now.
I managed to get what I want.
Not ideal but will do for immediate needs.