BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14165

    Hi Ravi,

    I have tested the new update and it works flawlessly.

    Thank you very much!

    Kind regads,
    Daniel

  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14119

    Hi Ravi,

    Thank you very much for your code. I have changed it accordingly and it is working perfectly.

    Many thanks again!

    I have a question: BuddyBlog does allow the user to enable/disable Commenting on the blogs right ?

    I have figured out, when the user allows commenting first when publishing the blog, and somebody does write a comment on his blog, but the user afterwards changes his mind and wants to disable commenting, then it is not possible anymore to disable comments as when disabling commenting, it does not apply and other users still can write comments on the blog. It is only possible to enable/disable commenting until nobody has added a comment yet to the blog.

    My question, was this programmed like this on purpose? I am asking because I think even when somebody has already commented on a blog, but the author changes his mind in the meantime and wants disable commenting, then it would be nice that he could just close commenting and it shows only the comments which were already added with a note “Comments Closed”.

    What do you think about it ?

    Thank you for your feedback!

    Kind regards,
    Daniel

    • This reply was modified 7 years, 2 months ago by Daniel.
  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14104

    Hi Ravi,

    Please disregard my ticket #14101. I have found out the IDs of all my Categories and I have implemented them with success.

    Thank you very much!

    By the way, this will be my last concern:

    On my website, the FEATURED IMAGE is a REQUIRED FIELD and in BuddyBlog Backend Settings I can choose if I would like to enable the user to upload images when editing.

    Is there a code you could provide to make the FEATURED IMAGE a required field in order if the user deletes the featured image when editing, he will get an alert message that the featured image is mandatory, like “PLEASE SELECT A FEATURED IMAGE!”

    Many thanks for your help!

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502

    Hi Ravi,

    It works, that’s great! Thank you very much!

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14101

    Hi Ravi,

    Thanks for your code, I have implemented it with Success and it works.

    The only thing is, as I am a PHP beginner I do not understand how I can find out my other Category ids as 77, 75, …

    Could you please tell me precisely how I can find out the Category ids or is there a way to use the slugs ?

    Many thanks for your help!

    Kind regards,
    Daniel

    • This reply was modified 7 years, 2 months ago by Daniel.
  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14094

    Hi Ravi,

    Please disregard my answer #14067 as I have found out how to implement the code and to use it.

    The code you have provided works with Success!

    I only have one more question.

    I would like to hide some categories in the category list to choose.

    The category slug I want to hide is called “blog”.

    Could you please help me and tell me which code I need to add in order that it does not show the Category “blog” ?

    Thank you very much!

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502

    Hi Ravi,

    I have tested the code and the tab “New Post” has disappeared with success.

    But the problem now is, that the user cannot EDIT his post anymore after I have inserted your code.

    When the user wants to EDIT his post, then the user gets redirected to the search page and it says:

    “It looks like nothing was found at this location. (And then it shows the Search bar underneath.)

    I only want that the “New Post” Tab disappears and not more. But I still would like that the user can EDIT his post.

    Is there a way to only hide the “New Post” Tab but that the user still can EDIT his post ?

    Thank you for your support.

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14067

    Hi Ravi,

    Many thanks for your information.

    I have updated the plugin and I have checked if it worked and indeed, point 1. 2. and 3. are resolved. That’s excellent, thank you!

    Now just one question about the additional code you have provided: do I need to implement the code inside the bp-custom.php file under /wp-content/plugins/bp-custom.php and then just insert the code at the end of the file on a new line ?

    Thank you for clarification.

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502

    Hi Ravi,

    Basically, I had no bp-custom.php file, so what I did was I have created an empty bp-custom.php file and I have copied your code you have provided into the empty bp-custom.php file.

    Therefore, the whole file code of my bp-custom.php file is the same as the code you have provided above. Means, there is no other code included other than your code.

    I hope this helps.

    If you want you can send me an email and I will attach the bp-custom.php file and send you back an email.

    Thank you and please let me know if I can provide any further information.

    Kind regards,
    Daniel

  • Participant
    Level: Guru
    Posts: 502

    Hi Ravi,

    Thanks for your reply.

    I have created the bp-custom.php file as per the link you have provided and I have copy your code inside the file and added the file under wp-content/plugins.

    Unfortunately, the code you have provided did not work. I still can see the “New Post” Tab.

    Kind regards,
    Daniel