wshades (@wshades)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • wshades
    Participant

    @wshades

    A charm! Thank you very much, very glad the code is safe now 🙂
    Again: merry Xmas and thanks a lot!


    wshades
    Participant

    @wshades

    Hi, thanks, but I didn’t change a function, I just changed 2 links in functions.php

    327. function bsp_new_topic_button () {
    global $bsp_style_settings_buttons;
    if (!empty ($bsp_style_settings_buttons[‘new_topic_description’] )) $text=$bsp_style_settings_buttons[‘new_topic_description’] ;
    else $text=__(‘Create New Topic’, ‘bbp-style-pack’) ;
    if ($bsp_style_settings_buttons[‘button_type’] == 2) $class=$bsp_style_settings_buttons[‘Buttonclass’] ;
    else $class=’bsp_button1′ ;
    if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) {
    echo ‘https://mysite/leden/forum/ledenforum/#bsptopic”>’.$text.’‘ ;
    }
    }

    And

    400. function bsp_create_new_topica () {
    global $bsp_forum_display ;
    if (!empty ($bsp_forum_display[‘Create New Topic Description’])) $text=$bsp_forum_display[‘Create New Topic Description’] ;
    else $text=__(‘Create New Topic’, ‘bbp-style-pack’) ;
    if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) echo ‘<div class=”bsp-new-topic”> https://mysite/leden/forum/ledenforum/#bsptopic”>&#8217;.$text.’</div>’ ;
    }

    Both links were #bsptopic and an update will erase my URL’s. But #bsptopic leads to the homepage, unfortunately.

    Merry Xmas!


    wshades
    Participant

    @wshades

    Hi Robin, the link #bsptopic takes me to the home URL -which has to do with the .htaccess, I guess, as I have WordPress in a subfolder- so I changed it to https://mysite/../#bsptopic in bbp-style-pack/includes/functions.php which works just fine but will be destroyed when updating the plug-in. How can I get #bsptopic to work properly or where do I put the URL https://mysite/../#bsptopic where it’s safe. Adding to the child theme functions.php doesn’t work, of course, and trying a new-topic.php with snippets from the functions.php in a mu-plugin directory gave me the white screen 🙁

Viewing 3 replies - 1 through 3 (of 3 total)