Please or Register to create posts and topics.

Private Messages with BP Better Messages

Hi there!

Im developer of BP Better Messages.

BP Better Messages

I found this great plugin and decided to integrate my plugin to this one to implement private messages in this forum plugin.

It will also show button to write private message in another user profile:

And simple link in thread views:

Hope you will like it!

Thanks!

Asgaros and dantesora have reacted to this post.
Asgarosdantesora

Great plugin, easy to use thx

Nice addition! Something a lot of users have asked for. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on February 17, 2021, 9:38 am

Nice addition! Something a lot of users have asked for. 🙂

Hi there!

Would be much appreciated if you can add abit more hooks in some of future updates.
My integration is abit hacky at the moment, wish to make it more legit, if possible.

Thanks!

It is a pity that this plugin does not contain a German language file.

Quote from Biker on February 17, 2021, 11:24 am

It is a pity that this plugin does not contain a German language file.

Hi there!

You can translate with Loco Translate or translate it here:
https://translate.wordpress.org/locale/de/default/wp-plugins/bp-better-messages/

Thanks!

Hello @wordplus

Can you let me know which additional hooks you need? I am always happy to add additional ones to the core of the plugin! 🙂

wordplus has reacted to this post.
wordplus
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from wordplus on February 17, 2021, 11:27 am
Quote from Biker on February 17, 2021, 11:24 am

It is a pity that this plugin does not contain a German language file.

Hi there!

You can translate with Loco Translate or translate it here:
https://translate.wordpress.org/locale/de/default/wp-plugins/bp-better-messages/

Thanks!

Got a lot of it done.

Unfortunately, I didn't know everything.

 

wordplus has reacted to this post.
wordplus

@asgaros

In this file:
wp-content/plugins/asgaros-forum/includes/forum.php

function forum() {
...
}

Custom plugin developers like me need add_filter function for error, before this part of code is executed:

if (!empty($this->error)) {
            echo '<div class="error">'.$this->error.'</div>';
} else {

Also to hook into nicely to the forum template, we need hook into this switch, so we can hook into layout natively:

switch ($this->current_view) {
                    case 'search':
                        $this->search->show_search_results();
                    break;
                    case 'subscriptions':
                        $this->notifications->show_subscription_overview();
                    break;
                    case 'movetopic':
                        $this->showMoveTopic();
                    break;
                    case 'forum':
                        $this->show_forum();
                    break;
                    case 'topic':
                        $this->showTopic();
                    break;
                    case 'addtopic':
                    case 'addpost':
                    case 'editpost':
                        $this->editor->showEditor($this->current_view);
                    break;
                    case 'profile':
                        $this->profile->showProfile();
                    break;
                    case 'history':
                        $this->profile->show_history();
                    break;
                    case 'members':
                        $this->memberslist->show_memberslist();
                    break;
                    case 'activity':
                        $this->activity->show_activity();
                    break;
                    case 'unread':
                        $this->unread->show_unread_topics();
                    break;
                    case 'unapproved':
                        $this->approval->show_unapproved_topics();
                    break;
                    case 'reports':
                        $this->reports->show_reports();
                    break;
                    default:
                        $this->overview();
                    break;
                }

If you can add hooks in this 2 places, would be perfect!

Thanks!

Hello @wordplus

I added a filter for the error-message which will be available with the upcoming update:

https://github.com/Asgaros/asgaros-forum/commit/e82f583f4cf93b51a38bf38e7e1ea76208895faa

Filter for views will be added later - feel free to add one in a PR in the meantime if its urgent. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!