Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,351 through 2,375 (of 6,813 total)
  • Author
    Search Results
  • #161557
    23creative
    Participant

    you’re welcome mate. my code actually changed quite a bit form what I posted here. the tag list is pulled from wp-admin > Topics > Topic tags

    updated code below

    //change the seclected terms to string and return
    function restrict_topic_tags( $terms, $topic_id, $reply_id ) {
        if(isset($_POST['bbp_topic_tags'])){
            $bbp_topic_tags = filter_input(INPUT_POST, 'bbp_topic_tags', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
            return returnFormattedTags($bbp_topic_tags, $topic_id);
        }else{
            return $terms;
        }   
    }
    add_filter( 'bbp_new_reply_pre_set_terms', 'restrict_topic_tags' );
    
    //change the seclected terms to string and return
    function restrict_new_topic_tags( $topic_data ) {
       //$bbp_topic_tags = $data   = filter_input(INPUT_POST, 'bbp_topic_tags', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
       if(isset($_POST['bbp_topic_tags'])){
            $bbp_topic_tags = filter_input(INPUT_POST, 'bbp_topic_tags', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
            $topic_data['tax_input'] = array('topic-tag'=>checkTags($bbp_topic_tags)); 
       }
       return $topic_data;
    }
    add_filter( 'bbp_new_topic_pre_insert', 'restrict_new_topic_tags' );
    
    //change return the correct tag on a form error submission, we might need to go through the spam check here. But lets see how this goes
    function loadPostTagArray( $topic_tags ) {
       if( $topic_tags == 'Array'){
            if ( bbp_is_post_request() && isset( $_POST['bbp_topic_tags'] ) ) {
                $bbp_topic_tags = filter_input(INPUT_POST, 'bbp_topic_tags', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
                $topic_tags = returnFormattedTags($bbp_topic_tags); 
            }
       } 
       return $topic_tags;
    }
    add_filter( 'bbp_get_form_topic_tags', 'loadPostTagArray' );
    
    function returnFormattedTags($topicTags){
        foreach ($topicTags as $key => $topicTag){
          if($key > 0) $terms .= ', ';
          $terms .= esc_attr( strip_tags( $topicTag ) );
        }
       return $terms;
    }
    
    function checkTags($selectedTags){
        $tags = get_categories( array('hide_empty'=> 0,'taxonomy' => 'topic-tag'));
        $toReturn = array();
        foreach($tags as $tag){
            if (in_array($tag->name, $selectedTags)) {
               $toReturn[] = $tag->name;
            }
        }
        return $toReturn;
    }
    
    function displayTagElements($selectedTags, $userRole, $task){
        $html = array();
        $tags = get_categories( array('hide_empty'=> 0,'taxonomy' => 'topic-tag'));
        $selectedTagsArray = explode(', ', $selectedTags);
        if($userRole != 'bbp_participant' || $task != 'edit'){    
            $html[] = '<select class="chzn-select" multiple="multiple" name="bbp_topic_tags[]" id="bbp_topic_tags">';
                foreach($tags as $tag){
                    $selected = '';
                    if (in_array($tag->name, $selectedTagsArray)) {
                       $selected = 'selected="selected"';
                    }
                    $html[] = '<option '.$selected.' value="'.$tag->name.'">'.$tag->name.'</option>';
                }
            $html[] = '</select>';
        }else{
            $html[] = $selectedTags;
        }
        return implode('',$html);
    }
    #161523
    Robkk
    Moderator

    it should be by default , you probably installed a plugin that caused this issue or you messed with some users capabilities.

    follow the basic troubleshooting in this topic

    Before Posting

    #161517

    In reply to: reformatting ALL CAPS

    Robkk
    Moderator

    FriendlyCase should work, i tested with some default themes.

    it works in twentytwelve , twentythirteen , and twentyfifteen.

    link to your site so i can check on it maybe there is some CSS messing it up or something else.

    #161511

    In reply to: having problem

    Robkk
    Moderator

    @kellygree

    but when I try to register it direct me to my wordpress login page

    ive looked into this and its normal, its because the register form functionality isnt really finished

    https://bbpress.trac.wordpress.org/ticket/2137

    you can use the default WordPress registration pages if you want they are fine for user registration for all your users, and you could customize the default WordPress registration pages with some other plugins too.

    if you want dedicated front-end forms use a plugin like this

    https://wordpress.org/plugins/theme-my-login/

    our login shortcode [bbp-login] works fine though.

    #161502
    mrjarbenne
    Participant

    I found the culprit. I don’t know how I missed it before, but by default a registered user is added as a participant. This toggle was forcing me on the site, even when I removed myself.

    I can hack the plugin and set that as false by default. I’ll just need to remember to fix that every time the plugin updates, and I’ll need to let users know that they need to add a forum role to their users (which shouldn’t be a big deal).

    Looks like I can do that on bbpress/includes/admin/settings/line 532 changing the true to false.

    <input name="_bbp_allow_global_access" id="_bbp_allow_global_access" type="checkbox" value="1" <?php checked( bbp_allow_global_access( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_global_access' ); ?> />

    I can understand why it’s set this way. It does make the plugin work “out of the box” in a way that users would otherwise need to sort through what is already a very intricate settings panel.

    yoshimitsu1234
    Participant

    While trying the trial and error method of disabling the plugin, I was using tools.pingdom.com/fpt/ to test the website from different server location each time whether it is working or not. And each time it showed a blank page.
    I didn’t try switching back to default theme.
    Going back to bbpress 2.5.6 made everything fine.
    Cpanel error log was totally empty.

    Stephen Edgar
    Keymaster

    I can’t reproduce this issue at all 🙁

    Did you try switching back to a default theme? Twenty Fourteen or Fifteen before rolling back bbPress to 2.5.6?

    Any change you have a detailed error message? Anything in your web server logs that may help us track it down?

    Stephen Edgar
    Keymaster

    I can’t reproduce this issue at all 🙁

    Doesn’t matter what i try I can’t seem to reproduce it.

    Theoretically, your saying if a logged out users views the site it breaks, is this also the case for any visitor visiting your site for the first time?

    Did you try switching back to a default theme? Twenty Fourteen or Fifteen before rolling back bbPress to 2.5.6?

    Any change you have a detailed error message? Anything in your web server logs that may help us track it down?

    #161441
    Robkk
    Moderator

    @w-sky

    the theme actually works pretty well by default

    is there any CSS rules you added to customize bbPress for your site??

    it might be conflicting with that section.

    sharongraylac
    Participant

    Well this is embarrassing… lol

    I figured out what was wrong. It appears the link picked up a default color on my theme, which happened to be the same color as the background! 🙂

    All I need to do was change the color and… poof! The links appeared! lol So consider this issue RESOLVED.

    Thanks SO much again for all of your help, in ALL of my recent threads! 🙂

    Kindly,
    Sharon

    Robkk
    Moderator

    where is your favorite and subscribe links??

    they should by default be in your bbPress topic header.

    Robkk
    Moderator

    @sharongraylac

    more of a WordPress thing, as the biographical info doesn’t allow line breaks by default.

    you can create a new topic but at the WordPress support forums if you really need this type of thing

    Support Forums

    landshark
    Participant

    Hello I am in the process of converting a simplepress forum to bbpress.

    The first issues I have noticed is that the date and time of some posts is not being carried over and is defaulting to the time of the conversion. However this is not on all post, only a percentage, approximately 860 topics of a total 5029. One thing I have noticed is that all the topics witout updated date/times do not have any responses to the original post, although there are posts with correct date/times that have no responses if that makes sense.

    I have run all the repair functions and the only one I am having trouble with is “Recalculate the position of each reply” which seems to stop (timeout?) and go to a white page.

    Any insight as to what may be going on?

    #161410

    In reply to: having problem

    Robin W
    Moderator

    bbpress uses wordpress registration and assigns the default role set in settings>forums upon first user login.

    so any wordpress registration will work

    bbpress has a shortcodes

    [bbp-login] – Display the login screen.
    [bbp-register] – Display the register screen.

    or you can use sidebar widgets also

    #161403

    On our bbPress (2.5.7) admins don’t get an email notification if a new post is added, but do get a notification if a reply is posted. Is this default behavior?

    If yes, do I need a plugin like https://wordpress.org/plugins/bbpress-notify/ or https://wordpress.org/plugins/bbpress-notifications/ to handle this?

    If no, what could be wrong on our install?
    Besides bbPress we use the plugins “bbP Members Only” and “GD bbPress Attachments”.

    Flick
    Participant

    Hey Guys,

    I have the latest WordPress 4.1.2 and bbPress 2.5.7 and I’m having a problem where when I search for a user in the admin of WordPress and try and either bulk edit the user or click on the User Profile link and I get redirected to the home page.

    I have narrowed it down to a conflict with the Groups plugin 1.5.1 and I’m wondering if anyone else has found this?

    Other points:
    – User links work to edit the profile or bulk edit if you DON’T search but we can’t do this as our user db is 1,400 odd people and it takes too long
    – I’ve tried changing to the default theme and deactivating all plugins and it still happens
    – I have tried installing bbPress 2.5.7 and Groups 1.5.1 on a fresh install of WordPress and got the same results with a user database of 2 people.

    It only happens when you search… If I remove the wp_http_referrer information from the User Edit Profile link the link works… There’s some weird conflict going on with the referrer in the link…

    Any help greatly appreciated by all!

    #161392
    Flick
    Participant

    Hi Guys,

    Did anyone get a solution to this problem? I’m experiencing a very similar thing with

    Wordpress v4.1.2
    BBPress v2.5.7

    I’ve tried deactivating all plugins and going to the default theme but clicking on usernames in the admin when trying to edit a profile is taking me to the home page… Just wondering if there was a solution it might help me too!

    #161371
    project_subdomain
    Participant

    did you create a custom widget?? it might be better if you did for this because then you could output all of the links to the user profile.

    unfortunately not, as i’m using a plugin (jquery-vertical-accordion-menu) for the accordion/dropdown menu widget for that menu, which makes it more complicate, i guess. does the
    $id_base = 'dc_jqaccordion_widget';
    help with this and if where and what else to put in the code for a custom widget that’s using the accordion/dropdown menu as well?

    initially hoped that making a redirect via permalink in functions.php or via page template would be the fastest and easiest solution. am i totally wrong with this?
    as i’m not familiar with coding, i see a high risk of having set wrong variables all the time. i’m using default bbpress setting with a nicername/username instead of user’s id in the permalink.

    #161344
    Robkk
    Moderator

    my latest post disappeared, maybe because of too many links.

    probably

    the default menu below the avatar shall be removed and appear in the sidebar on the right in a dropdown menu ( not only to make a consistent layout but also to prevent users to see the information also on other user profiles).

    did you create a custom widget?? it might be better if you did for this because then you could output all of the links to the user profile.

    #161336
    Robkk
    Moderator

    @vinzen

    you can create a new widget based off of the default recent topics widget and customize it to your liking. or you can edit this

    https://wordpress.org/plugins/bbpress-advanced-recent-topics-widget/

    and add the topic tag thing you want.

    #161293
    project_subdomain
    Participant

    @robkk, thanks again for your support. my latest post disappeared, maybe because of too many links.

    regarding the new menu, i hope this image can explain it better:
    the default menu below the avatar shall be removed and appear in the sidebar on the right in a dropdown menu ( not only to make a consistent layout but also to prevent users to see the information also on other user profiles). Optimally it should be shown only when the user is logged in, but yet i’d be very happy to get it working no matter of the user’s login status.

    unfortunately i can’t provide a link at the moment, so i put the id’s at the image.

    parent menu items are “nachrichten” and “account”.
    in “account” the links for the user profiles shall be displayed as sub menus.

    the parent menu-code looks like this:
    <li id="menu-item-566" class="menu-item menu-item-type-post_type menu-item-object-page cur…ancestor menu-item-has-children menu-item-566 dcjq-parent-li">

    the sub menu show profile-code like this:
    <li id="menu-item-572" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-572"></li>

    (for “edit profile” I already found a menu-link solution)
    [btw: default theme twenty twelve]

    #161258
    Robkk
    Moderator

    well you can have wordpress at the root of your whole site and not just have it in a folder.

    if you do that all you would have to do is create a seperate blog page and a static home page.

    your blog page would show all your recent posts like it would by default.

    if you install bbPress while WordPress is not in a subfolder , by default the forum archive url will be yoursite.com/forums but you could change the forum slug to ‘forum’ or remove the ‘forums’ slug because your url will look like yoursite.com/forum/forum/forum-name instead of the default yoursite.com/forums/forum/forum-name.

    Does that work out for you?? or is there a specific reason you want wordpress to be in a blog folder.

    #161256
    Robkk
    Moderator

    @project_subdomain

    well there is a way for the link to be displayed on a specific menu.

    you could link to site and see if i could find your menus ID to only show it there.

    I’d like to replace the default display of options below the avatar which I’d remove then.

    explain a little bit more on what exactly you want here.

    Robkk
    Moderator

    @marjons

    However, the auto mentions only work from the text tab (not the visual), is this a bug?

    i think the functionality to make the script work for the TinyMCE visual editor is not possible now. You see that we are basically just borrowing the script from BuddyPress to work for bbPress forums , and also that neither bbPress and BuddyPress have the visual editor in their default installations without some plugins or functions added.

    It is possible to make it work for TInyMCE though, you would probably have to use some of the code of this auto-complete plugin for TinyMCE.

    https://github.com/abrimo/TinyMCE-Autocomplete-Plugin

    If you want to develop some custom functionality to make it work for your client ,only thing i can suggest is look over how this plugin is developed and see how they make it work for TinyMCE and of course add on to the script from the BuddyPress plugin.

    wordpress.org/plugins/mentionable/

    Other than that maybe decide to disable the visual editor for bbPress to make it work fine.

    Also, it seems that some users get a notification, but some are not.

    If you are talking about the notifications users get when @mentioned , then go to the BuddyPress Support forums for help on this.

    https://buddypress.org/support/

    #161237
    jayd94
    Participant

    Hello!
    I’ve been reading all the topics on the forum and i found many similar issues to my problem, but now solution worked. I disabled all plugins and tried it with default theme also.
    When someone subscribes(or creates a topic) to a topic or forum and then someone replys to it, no emails are being sent out to the guy who subscribed. Im using buddypress and bbpress newest version, and buddypress emails-like register, private message etc working, but noone of bbpress related emails are being sent out. I’m using WP SMTP now(before i was using WP MAIL SMTP, but then someone in this forum said if he changed to WP SMTP plugin it started sending, but didnt help for me), and test emails are being sent correctly also.(without any smtp plugin it doesnt work also)
    Any ideas?
    Thanks,
    Daniel

Viewing 25 results - 2,351 through 2,375 (of 6,813 total)
Skip to toolbar