Hi, I'm using this code you provided me with:
global $user; print facebook_status_form_display(NULL, $user->uid);
But it's showing the status of the node author rather than the logged in user. How do I make it into the logged in user? Thanks.
Hi, I'm using this code you provided me with:
global $user; print facebook_status_form_display(NULL, $user->uid);
But it's showing the status of the node author rather than the logged in user. How do I make it into the logged in user? Thanks.
Comments
Comment #1
icecreamyou commentedProblem confirmed in 6.x, not an issue in 5.x. It should not be a problem because it's set up correctly and the only thing changed in the last 6.x-dev was a few instances of theme_username() to theme('username') and the unrelated addition of facebook_status_user('load'). Reverting the changes doesn't fix it as far as I can tell. How frustrating.
The problem is that facebook_status_form_display is not passing $uid to the form-builder function. I don't know why and I won't have time to figure it out until at least Tuesday. For an immediate solution, try using the previous -dev...
Comment #2
Flying Drupalist commentedAhh, eh. Would you happen to have a copy still around? :D I don't have a copy anymore.
Comment #3
icecreamyou commentedThe CVS repository keeps everything. All you need is this version of facebook_status.module.
Comment #4
Flying Drupalist commentedHmm I'm using that old version of of the module, but I still have this problem. Maybe it's not that file that's causing it...
Comment #5
icecreamyou commentedThat is my suspicion, since what was changed was unrelated to anything like this. I have no idea why it would suddenly stop working but I've had several frustrating, similar problems with this module.
I have zero time until December 19, after which I will do whatever I can to fix it. I'd like to get a fully working Beta out by early January.
Comment #6
Flying Drupalist commentedThanks for the update. :)
Comment #7
Flying Drupalist commentedHi, if this is a clue.
I have the status printed on the comment. When using the live module to preview the comment, the status being shown is the node author's rather than the commenter's. Or maybe this is just a symptom of the same problem.
Comment #8
icecreamyou commentedIt's unrelated I believe, and not fixable, since the necessary UID in that case is probably computed via a DB call to a comment. Since the comment doesn't exist yet the call returns NULL so it defaults to the node author.
Comment #9
PGiro commentedYou need to remove the formstate from your get form call. The following function replacement works for me. Can anyone confirm on their project ?
Comment #10
icecreamyou commentedCommitted locally, but untested. Will release a new dev later this week.
Comment #12
michtoen commentedThis issue is still there in the 6.x-1.0-beta1 , the status is wild changing in the blocks depending on the viewed content.
Comment #13
michtoen commentedComment #14
icecreamyou commentedThat's the intended behavior. This was a special issue where I gave Miraploy specific code that wasn't working. If you want the status shown to always be the current user's, use the code at the top of the page.