[buddypress-trac] [BuddyPress Trac] #7840: bp_is_messages_compose_screen not working with BP Nouveau
buddypress-trac
noreply at wordpress.org
Sun May 20 14:25:16 UTC 2018
#7840: bp_is_messages_compose_screen not working with BP Nouveau
-------------------------------+---------------------
Reporter: sbrajesh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0.1
Component: Templates | Version: 3.0.0
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+---------------------
Comment (by sbrajesh):
Thank you both of you for looking into it.
My goal is to redirect certain users from compose screen based on their
activity and show them a message.
It is possible to hook on the ajax actions and show the specific error
message, the client has been insisting on the earlier method.
In past, you could simply hook to bp_template_redirect and do a check.
Since the Message component is built like SPA in 'Nouveau', It makes it
unusable unless someone opens the message box directly.
Also, In my personal view, It will be a bad idea to have different
behaviour for core functions based on template packs. Many plugin which
still uses these to check for the compose screen will fail.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7840#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list