Message Globals problem – preventing welcome message from sending
-
Ok here is the deal – I am modifying the welcome plugin becuase it doesnt work with the fbconnect plugin…and it seems to require email authorization before it shoots off the initial welcome message….which my site won’t require – in effect preventing the welcome series of functions from firing.
I have echo’d the order of “do_actions” for purposes of tracking down my problem.
//////
Action is : user_register
Action is : fbc_insert_user
Action is : xprofile_data_before_save
Action is : xprofile_data_after_save
function installed Inside Messages() – inside Send Function()
Action is : messages_message_before_save
Action is : xprofile_data_before_save
Action is : xprofile_data_after_save
function installed Inside Messages() – inside Send Function()
Action is : messages_message_before_save
Action is : fb_done_inserting
Action is : set_auth_cookie
Action is : set_logged_in_cookie
Action is : set_current_user
Action is : xprofile_data_before_save
Action is : xprofile_data_after_save
Action is : messages_message_before_save
Action is : bp_core_setup_globals
Action is : bp_activity_setup_globals
Action is : bp_blogs_setup_globals
Action is : bp_forums_setup
Action is : friends_setup_globals
Action is : groups_setup_globals
Action is : messages_setup_globals
////////
Now you can see (above) where I echo’d the attempt to send a welcome message. (it says function installed Inside Messages() – inside Send Function() ) — basically thats a series of echos that I embeded into the various functions all the way to “send” which actuall sends the message to the database.
Here is the problem – Unless I setup the messages_new_message() to go AFTER the last do_action above (the messages_setup_globals) than I can’t send it off.
But doing it AFTER that seems a little clunky in that the initial registration steps are so far above it in the process of loading.
Any ideas for how to approach initial actions (only to occur on registration) but that require all of the globals to be set that way you have access to the different activity/messaging/etc…functions
Does that make sense? Trying to figure out the right way to solve it
Once I add the messages_new_message after the message globals all works as intended..so I know my hooks are all setup correctly (functionaly) but its rather the “timeline” of loading these globals and classes that is throwing it off
Thanks!
- The topic ‘Message Globals problem – preventing welcome message from sending’ is closed to new replies.