Customizing SMF > Modifications and Packages

SA Facebook Integration

<< < (536/672) > >>

el_canaya89:

--- Quote from: SA™ on June 02, 2012, 01:58:58 PM ---that part is in sources/facebook/facebookintergrate.php

the password is set in this line
$password = self::fb_createRandomPassword();

though i never got as far as to actualy send/pm the pass to the user

you could setup to send the pass to the user after reg is compleate

in
public static function fb_reg_auto(){

find
 $memberID = registerMember($regOptions);

after you could do this to pm the pass to the users


--- Code: ---
    //Set up the pm
    $title = 'Forum password'; //the title of the pm
    $message = $password; //the body of the pm
   
    $pmfrom = array(
        'id' => 0, //user id where the pm is from
        'name' => 'Admin', //name of the user who the pm is from
        'username' => 'Admin', //username of the user who the pm is from
    );
       
    $pmto = array(
        'to' => array($memberID),// array of ids to send the pm to
        'bcc' => array()//bbc array
    );

    //Now send it
    sendpm($pmto, $title, $message , 0, $pmfrom);
--- End code ---

this is untested so pls back up before trying this chnage

--- End quote ---

Thanks you! It's work OK

Gà Mái:
It's a nice and useful mod.
Thanks!!

mossite:
when i tried to install  SA Facebook Integration, i got: You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
what can i do please

Gà Mái:
Check Package Manager/File Permissions try 0644

Kindred:
Gà Mái...

no.... that is incorrect.

mossite,
Make sure that your packages directory is 755 (or maybe 777, depending on your host)
make sure that there is a temp directory inside the packages directory and that is also 755 (or 777)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version