bbPress

Simple, fast, elegant

bbPress Plugin Browser »

bbPM (1.0)

Download

Version: 1.0

Other Versions

Last Updated: 2010-1-3

Requires bbPress Version: 1.0 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(24)

Your Rating

Author: Ben L. (Nightgunner5)


  1. wilcosky

    Member

    sorry, i just noticed something else.. where would I add stripslashes at? When you send a message like, "I'm Billy." it shows up as "I\'m Billy.". I know for other pages on my site I've had to add "stripslashes", but I must not be adding it in the right spot because I get an error when I add it...

    I'm guess somewhere here:

    <div class="threadpost">
    	<div class="post"><?php echo apply_filters( 'post_text', apply_filters( 'get_post_text', $the_pm->text ) ); ?></div>
    	<div class="poststuff"><?php printf( __( 'Sent %s ago', 'bbpm' ), bb_since( $the_pm->date ) ); ?> <a href="<?php echo $the_pm->delete_link; ?>"><?php _e( 'Delete', 'bbpm' ); ?></a> <a href="<?php echo $the_pm->reply_link; ?>" class="reply"><?php _e( 'Reply', 'bbpm' ); ?></a></div>
    </div>

    I've tried:

    <div class="threadpost">
    	<div class="post"><?php echo stripslashes("apply_filters( 'post_text', apply_filters( 'get_post_text', $the_pm->text ) )"); ?></div>
    	<div class="poststuff"><?php printf( __( 'Sent %s ago', 'bbpm' ), bb_since( $the_pm->date ) ); ?> <a href="<?php echo $the_pm->delete_link; ?>"><?php _e( 'Delete', 'bbpm' ); ?></a> <a href="<?php echo $the_pm->reply_link; ?>" class="reply"><?php _e( 'Reply', 'bbpm' ); ?></a></div>
    </div>
    Posted: 10 months ago #
  2. wilcosky: You're almost on the button. Just remove the quotes from directly inside the stripslashes call, like so:

    <div class="threadpost">
    	<div class="post"><?php echo stripslashes( apply_filters( 'post_text', apply_filters( 'get_post_text', $the_pm->text ) ) ); ?></div>
    	<div class="poststuff"><?php printf( __( 'Sent %s ago', 'bbpm' ), bb_since( $the_pm->date ) ); ?> <a href="<?php echo $the_pm->delete_link; ?>"><?php _e( 'Delete', 'bbpm' ); ?></a> <a href="<?php echo $the_pm->reply_link; ?>" class="reply"><?php _e( 'Reply', 'bbpm' ); ?></a></div>
    </div>
    Posted: 10 months ago #
  3. wilcosky

    Member

    The above code isn't getting rid of the slashes either... :(

    My regular forum area doesn't have this problem when people post, just this plugin... are you adding slashes or anything in the code?

    Also, this problem only occurs in the message body, not the title. For example, I created a new message and for the title I put "Test's" and for the message body I put "Test's" again. The title posts as "Test's" correctly, but the message body posts as "Test\'s".

    Why would the title part be set up correctly to handle slashes, but not the actual post body?

    Posted: 10 months ago #
  4. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    I was having problems with slashes as well, but I was so hung up on retrieving old messages properly that I must have forgot to mention it. :-)

    Also, I upgraded to RC1 and wasn't able to activate bbPM.

    Plugin could not be activated, it produced a Fatal Error. The error is shown below.
    
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /domains/mydomain.com/html/forums/my-plugins/bbpm/bbpm.php on line 19
    Posted: 10 months ago #
  5. wilcosky: Try using the development version of bbPM.

    citizenkeith: What version of PHP are you using?

    Posted: 10 months ago #
  6. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    citizenkeith: What version of PHP are you using?

    PHP Version 4.4.8

    Posted: 10 months ago #
  7. If you can, upgrade to PHP5. There's probably some incompatibility between PHP4 and bbPM.

    Posted: 10 months ago #
  8. wilcosky

    Member

    Using the development version fixed my slashes problem, thanks!

    Posted: 10 months ago #
  9. @ Nightgunner5, can't we make it more noticeable when a user receives personal messages by using javascript alert box to notify him whenever he log in on the forum... ???

    Posted: 9 months ago #
  10. @ Nightgunner5, can't we make it more noticeable when a user receives personal messages by using javascript alert box to notify him whenever he log in on the forum... ???

    Posted: 9 months ago #
  11. @ Nightgunner5, can't we make it more noticeable when a user receives personal messages by using javascript alert box to notify him whenever he log in on the forum... ???

    Posted: 9 months ago #
  12. vlovers: Isn't an email noticeable?

    Posted: 9 months ago #
  13. tribsel

    Member

    yes it it, of course. But I also think that user shoud be able to see if there is a new message directly on the page somewhere (without actually going into inbox). I would use email notification as something "extra" what could be turned off. Someone could consider email notifications annoying. Just my opinion :)

    Thanks for this plugin anyway - its really usefull and a must for every forum.

    Posted: 9 months ago #
  14. also , one more suggestion, How can I use report plugin with bbpm plugin i.e. wht sort of edits are required to embed a report button(report to mod/admin using report plugin) in the pms received.. ???

    Posted: 9 months ago #
  15. vlovers - Private messages in bbPM are not accessible by anyone unless they either sent or received the message. Reporting private messages would also violate privacy.

    Posted: 9 months ago #
  16. tribsel

    Member

    I am not sure how to translate plugins... can you suggest something please? there are pot, mo and po files in download archive. I do understand what are pot, po and po files. But how do you use them in bbPress? Should it work right away? It doesnt in my case (bbpress 0.9.0.4 integrated with wp 2.7.1) thanks.

    Posted: 9 months ago #
  17. tribsel

    Member

    btw - I would like to ask two more things:

    should this work with "human-test" plugin?
    I get this error if I try to use both: Fatal error: Call to a member function has_cap() on a non-object in .../human-test.php on line 49

    and another one - is there a way to set this plugin accessible for registered and logged-in users only?

    Posted: 9 months ago #
  18. tribsel:

    As far as I know, translation should work automatically if you are using one of the supported languages in bbPress.

    That line in the Human Test plugin should not be affected by bbPM.

    It already is.

    Posted: 9 months ago #
  19. tribsel

    Member

    thanks for fast reply! unfortunatelly, in my case - PM to user link (and form) is accessible to anyone - even when you are logged out.

    this is how can I get to the send PM form when I am logged out. Go to any topic. There is a "PM this user" link and it works (in case of human test plugin is turned off). Kind of funny :)

    As for human test - error I mentioned before dissappears once I turn off that plugin. and translations doesnt work of course :(

    Posted: 9 months ago #
  20. Hi,

    I had problems installing the bbpm plugin so I wanted to do a fresh install. I thought that the plugin created the database and I erased it from my database thinking it would re create it. But now I get the error that the [Table 'howtogf0_bbp01.bb_bbpm' doesn't exist] is there any way to fix this without having to use a DB backup?

    Can I just import one table and add it to my bbpress database? ?

    Thanks!

    Posted: 9 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.