Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem with BuddyPress Album+

  • @johnwinch42

    Participant

    Hello,

    I’ve installed BuddyPress Album+ (http://wordpress.org/extend/plugins/bp-album/), it’s working well but If I type something like this in the photo’s description : “It’s a test” it’s displaying “It’s a test”.

    On the activity stream it’s displaying correctly “It’s a test”. Is there a way to fix the photo’s description ?

    Thanks you for your help.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • @thelandman

    Participant

    Hi @johnwinch42,

    Could you clearly explain exactly what your problem is? Surely if you type in “It’s a test” in the image description then you want the description of the image to display as “It’s a test”. That’s what you’ve described in your problem…

    If you could give a bit more clarity on your problem. Will be more than willing to provide some assistance if possible.

    @johnwinch42

    Participant

    My bad I forgot the “/”, you’ll see more clearly now.

    If I type something like this in the photo’s description : “It’s a test” it’s displaying ‘It’s a test’ (there’s a / between the t and the s)

    @anonymized-96400

    Inactive

    The string doesn’t get escaped properly. It’s very easy easy to fix. Contact the plugin author to let him know.

    @johnwinch42

    Participant

    Isn’t there a way to fix it myself ?

    @anonymized-96400

    Inactive

    Wrap the photo description variable in stripslashes().

    @johnwinch42

    Participant

    Thanks, here’s the code

    how do I put the stripslashes ? I’ve tried with an echo but it didn’t work.

    @johnwinch42

    Participant

    Here’s the original code “

    I’ve wrap it in stripslashes like this

    `<?php
    $str = bp_album_picture_desc();

    echo stripslashes($str);
    ?>`

    It’s still displaying the /, maybe there’s something to fix in the box where I write/edit the description ? If I try to write/edit something with a ‘ it’s automatically giving me an error message and correcting the sentence with a /.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with BuddyPress Album+’ is closed to new replies.
Skip to toolbar