$post.user_id and the quick reply box

Marcel

Active member
I'm currently installing Shelley's rather nice Threadstarter ribbon tweaks (Link)
Unfortunately it doesn't seem to be working as intended.
It always shows on the first post correctly, but inconsistent with the quick reply box.

Basically, a quick template edit in message_user_info adds a conditional which compares the variable
$thread.user_id (Thread starter)
against
$post.user_id (Current post being checked).
and enables the helper class if it's a match (which has some custom css in it to show the ribbon)

Aaaah, while typing this, it seems that when showing the quickreply box the conditional reports the $post.user_id of the last post (Which makes sense, it would be the value that was last read during the loop).
So my question is where do I go from here?

I've done what is suggested on Shelley's thread and added this CSS
.conversation_view .quickReply .messageUserInfo .helper {display:none;}

to disable the ribbon from showing on quick reply and also conversation view, but the QR box is still showing as above. I suppose I could do it with a conditional in the template, but I suppose that's another thing for the server to check, and I'm conscious of adding more work for the server where it's not necessary :)
 
Done it. FYI, I was a complete nugget and had the extra CSS to remove the ribbon in the wrong order :$
 
Back
Top Bottom