Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Contributor Ismail

    (@elhardoum)

    Hello mica,

    I am sorry i can’t try your site now as i am away from my computer and i am on mobile..

    Please make sure the emails are being sent in general, test out wp_mail function or just try forgot pass tool and see if emails are being sent…

    Also, edit the bbpress profile of user you are trying to contact and see if the ‘message me’ checkbox is checked…

    Not really that is a minor upgrade it wont cause trouble depending on your current software version..

    Regards,
    Samuel

    Thread Starter mica123

    (@mica123)

    Sorry, Samuel – I posted my reply elsewhere here by mistake, I should have done it here:
    Samuel,

    I did set up your Private Messages on the fully functioning site.
    Everything works.
    However, I have to say that it took me a while to sort out the 404 error.
    The problem is that my path to forums is not just /forums but xxx-forums.
    I modified the path in your loader.php – at first I modified it in the child theme where I copied the entire plugin folder. It didn’t work – so I saved the form settings, permalinks etc – it didn’t work. So I modified the loader.php in in the parent plugin folder – saved the settings – it didn’t work. It started to work only after a while for no apparent reason.
    Is there a time lag? Also, do I have to modify the loader.php in both the parent plugin and child theme folders>

    Another thing: the option in the profile to email the user whenever somebody sends a message is not turned on by default.

    In any case, I am relieved that the sending of messages works. Many thanks.

    Plugin Contributor Ismail

    (@elhardoum)

    Hello Mica,

    Hope you are great.

    Yes since we first released this, we stupidly made forums/users/ static which is really not something dynamic..

    I fixed this couple days ago and an update will be there when possible.

    To fix this, go to mysite.ext/wp-admin/plugin-editor.php?file=bbp-messages/includes/core/loader.php and replace this code:

    add_action('init', function() {
    
        add_rewrite_rule(
        	'forums/users/([^/]+)/' . bbpm_get_bases()->messages . '/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1',
        	'top'
        );
    
        add_rewrite_rule(
        	'forums/users/([^/]+)/' . bbpm_get_bases()->messages . '/([^/]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_recipient=$matches[2]',
        	'top'
        );
    
        add_rewrite_rule(
        	'forums/users/([^/]+)/' . bbpm_get_bases()->messages . '/([^/]+)/page/([0-9]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_recipient=$matches[2]&bbp_messages_page=$matches[3]',
        	'top'
        );
    
        add_rewrite_rule(
        	'forums/users/([^/]+)/' . bbpm_get_bases()->messages . '/page/([0-9]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_page=$matches[2]',
        	'top'
        );
    
    });

    with this:

    add_action('init', function() {
    
    	add_rewrite_rule(
        	bbp_get_user_slug() . '/([^/]+)/' . bbpm_get_bases()->messages . '/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1',
        	'top'
        );
    
        add_rewrite_rule(
        	bbp_get_user_slug() . '/([^/]+)/' . bbpm_get_bases()->messages . '/([^/]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_recipient=$matches[2]',
        	'top'
        );
    
        add_rewrite_rule(
        	bbp_get_user_slug() . '/([^/]+)/' . bbpm_get_bases()->messages . '/([^/]+)/page/([0-9]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_recipient=$matches[2]&bbp_messages_page=$matches[3]',
        	'top'
        );
    
        add_rewrite_rule(
        	bbp_get_user_slug() . '/([^/]+)/' . bbpm_get_bases()->messages . '/page/([0-9]+)/?$',
        	'index.php?bbp_user=$matches[1]&bbp_messages=1&bbp_messages_page=$matches[2]',
        	'top'
        );
    
    });

    and it would be better if you used a code editor. (Did I mention to replace mysite.ext with your own site?)

    bbPress has bbp_get_user_slug() which returns the path to users place, which is by default forums/users but it is customizable and extensible..

    For the child theme, only files in themes/ and assets/ directories will apply, other than that it won’t..

    Another thing: the option in the profile to email the user whenever somebody sends a message is not turned on by default.

    My bad, that is something that has been bugging me for days when I released this.. Let me set this one to work independently and then make an update..

    Thanks Mica! and hope this works for you.

    Let me know.

    Samuel

    Thread Starter mica123

    (@mica123)

    Thanks, Samuel, yes it worked. It seems that the permalinks have to be saved again. I’ll mark it as resolved.
    Could you perhaps let me know how long it will be before you make the update? Users are already asking for the default option.
    Thanks again!

    Plugin Contributor Ismail

    (@elhardoum)

    Hello Mica!

    I hope you are great.

    It seems that the permalinks have to be saved again.

    Yes, the rewrite rules need to be flushed and you can do so by saving permalinks or updating slugs in the bbPM settings page, then visit your front-end and then refresh the page and the new URLs will work.

    I am sorry about the delay, I have just made an update, it should be fixing those issues. please try it and if there is anything wrong please let me know.

    Thank you and have a nice day!

    Samuel

    P.S: I appreciate your kindness and helping out @officerofthewatch in the other thread sharing your experience. I was going to thank you there but, you made it resolved and why bumping another thread? ??

    Thank you so much Mica ??

    Thread Starter mica123

    (@mica123)

    Thank you, Samuel. Is the update regarding the default option?
    P.S. I didn’t make the other thread resolved – it must have been done
    by somebody else.

    Plugin Contributor Ismail

    (@elhardoum)

    Hello Mica,

    No worries. I meant that you helped them resolve their issue ??

    Yes, fixed the 404 issue and the default option for user notification preferences. To test this, as admin in your sites, go to any user and edit their profile, the option should be checked and you can also create a new user and send them a test message.

    Thank you,
    Samuel

    Thread Starter mica123

    (@mica123)

    Hello Samuel,

    I upgraded your plugin after I upgraded WordPress to 4.5.
    It seems to work. Do I have to save permalinks again after
    this upgrade?
    Many thanks.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Links to PM’ is closed to new replies.