Quote:
Yesterday at 01:59 AM XFLBret said this in Post #40
hello.
first off. i want to say that this is one of my favorite hacks. as far as administrative hacks, this is by far my favorite.
it worked like a champ on my old host, no complaints at all. but i have moed hosts, and then upgraded my board to 2.3.0, and now I can't get this hack to work the way I want it to.
first off, the email no longer sends me the password for each user. how do i correct that error?
second, the email has a blank line between each line, as if it were separated by a <br> thing or something. I double-checked the template, and it looks fine.
help!
|
I don't have access to 2.3.0 code as I didn't renew my expired membership so hard to debug for me blindly. But I know that 2.3.0 put all mailing actions into a function and PHP functions does not access to global variables. So you have to find the mailing function and globalize password variable to get it by mail via this line:
PHP Code:
global $password;
As I don't have the code, I can not help you with its location, sorry..
As for extra line, again hard to debug as I don't use that version, but you can try to remove \n at the end of
PHP Code:
$match_user_final.=(string)($i+1)."- ".${$result}[probability]."% => ".${$result}[username]." (id:".${$result}[userid].") ".${$result}[email]." ".${$result}[matches]."\n";
and see if it helps.