Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,726 through 5,750 (of 14,305 total)
  • @robin-w

    Moderator

    no I can’t – you would need code to create the ability to upload a csv file into bbpress – and that is beyond free help

    @robin-w

    Moderator

    ok, so you haven’t imported the meta data.

    each topic and reply has both post data and post meta data, without both it will not work.

    @robin-w

    Moderator

    not unless you can describe how the csv file was created, and how you uploaded it to the site

    @robin-w

    Moderator

    so are the forums set as private ?

    @robin-w

    Moderator

    sorry, I don’t know what you were uploading from where and how

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    newer versions of php no longer like that code – use this

    add_filter( 'bbp_get_user_edit_profile_url', 'rew_redirect');
    
    function rew_redirect () {
    $url = 'https://www.facebook.com/' ;
    return $url ;
    }

    @robin-w

    Moderator

    don’t like the look of the trashed ending of the url, but this is a site specific issue, and not sure what we can do to fix.

    @robin-w

    Moderator

    start with

    dashboard>tools>forums>repair forums and run one at a time.

    If that doesn’t fix, or it starts happening again then

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>big fixes

    and tick the fix last active time

    @robin-w

    Moderator

    try adding

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes and tick the threaded replies box

    let me know if this works

    @robin-w

    Moderator

    ok, go into

    dashboard>replies>edit reply and go into a reply that is not showing, and juts click save.

    Then see if it shows

    then come back

    @robin-w

    Moderator

    try

    dashboard>settings>permalinks and just click save – this resets them

    come back if that doesn’t work

    @robin-w

    Moderator

    I did some thinking around this last night.

    Basically bbpress looks for an author ID in the posts table.

    Now there’s a hook in the topic/reply handlers (topic for topics, reply for replies, so they mirror) after a topic/reply is created.

    do_action( ‘bbp_new_reply_post_extras’, $reply_id );

    so if each of your characters has a WordPress user ID, then you could just hook to this, and change the post author to the worpress user ID.

    so say

    add_action ('bbp_new_reply_post_extras' , 'your function') ;
    
    function your_function ($reply_id) {
    $id = [either use the $_POST if still available and maybe have the value as the WordPress user ID , or get_post_meta for d20_character in the reply_id and do a look up to translate value to WordPress user ID]
    $my_post = array(
          'ID'           =>$reply_id,
          'post_author'   => $id,
          );
     
    // Update the post into the database
      wp_update_post( $my_post );
    
    }

    that way each topic/reply has a real author that happens to be your character chosen in the topic/reply form.
    that would save a ton of coding in the output, and risk of missing one and exposing the real user.

    @robin-w

    Moderator

    great – do come back of you need odd bits of help, and yes please a solution if you get there is always great to have

    @robin-w

    Moderator

    it may be that your mail client is chopping emails with multiple recipients

    try this

    AsynCRONous bbPress Subscriptions

    @robin-w

    Moderator

    you would start by looking at the topic and reply forms in the templates

    \bbpress\templates\default\bbpress\form-topic.php

    which you can amend and copy to your child theme putting them in a bbpress folder

    these link to the new topic or reply handlers in

    \bbpress\includes\topics\functions.php line 96
    and an equivalent in

    \bbpress\includes\replies\functions.php

    these are called by filters eg

    add_action( ‘bbp_post_request’, ‘bbp_new_topic_handler’, 10 );

    so you could rewrite the new topic handler and call it from a new version of the above action, this could catch the $_POST from your dropdown, and add say an extra meta field, and allocating all topics/replies to a single user_id to prevent needing individual users.

    You can then amend the other templates or use filters to show the drop-down from the meta in the content field.

    In reply to: JOB OFFER

    @robin-w

    Moderator

    UK, so EU at the moment !!

    contact me at wilsonrobine@btinternet.com

    In reply to: Freshness

    @robin-w

    Moderator

    no, that only fires on new topic/reply creation

    @robin-w

    Moderator

    nothing exists as far as I know. Like everything it could be coded, but beyond free help.

    In reply to: Freshness

    @robin-w

    Moderator

    ok, so have you run the repair forums, and did that correct?

    @robin-w

    Moderator

    ok that’s the best I can do.

    you then need to change hidden forums to public forums but use groups to prevent acess, and set forum visibility, then they will see that they exist, but not be able to access.

    @robin-w

    Moderator

    so have you tried the above?

    @robin-w

    Moderator

    you’ll need to look at the help section to see how to set it up

    @robin-w

    Moderator
Viewing 25 replies - 5,726 through 5,750 (of 14,305 total)