Customizing SMF > Modifications and Packages
SA Facebook Integration
Texan78:
Another small issue I have come across. I have it set up to send the PM to the member upon registration, that works great.
Problem is when it sends it from the Administrator it sends it as a Guest. That is a problem because only the Administrator can use the bbc tag to parse the html in the message from the language file.
So is there a way to add to the code to send it from the registered Active Administrator?
--- Code: --- //Set up the pm
$title = 'Facebook Forum Password'; //the title of the pm
$message = sprintf($txt['fb_password_welcome'], $password); //the body of the pm
$pmfrom = array(
'id' => 0, //user id where the pm is from
'name' => 'Administrator', //name of the user who the pm is from
'username' => 'Administrator', //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);
updateMemberData($memberID,
array(
'fbname' => $fb_object->user_info_fbname,
'fbid' => $fb_object->user_info_fbid,
)
);
--- End code ---
-Thanks
SA™:
in the code theres
--- Quote ---'id' => 0, //user id where the pm is from
--- End quote ---
just change the id to a registerd member
Texan78:
Wow, I missed the obvious on that one! LoL
Thank you SA, you are they man!
Sure would love to hire you to help me sort some other small issues unrelated to this mod if you're interested. I am sure it would take you mins to fix them.
-Thanks
SA™:
shoot me a pm if you want 8)
Texan78:
Ok I have been doing some testing with this QuickReply for members who have registered with FB.
I have removed the social buttons from the page (I.E. Google +1, Twitter, Facebook). Quick reply still doesn't show for FB members logged in. For normal registered members it shows no problem.
Uninstalled the WYSIWYG QuickReply Mod below...
http://www.simplemachines.org/community/index.php?topic=251436.msg3378774#msg3378774
And then installed this one. Which I like much better anyways. Thinking maybe it was just that mod above that was causing the issue as suggested above.
http://custom.simplemachines.org/mods/index.php?mod=3246
QuickReply still doesn't show for registered FB members.
Thinking maybe this could be a permissions issue with how FB members are registered with the forum? Just taking a guess since members who registered normally can see the QR with no problem.
Any suggestions or ideas?
-Thanks
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version