Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,676 through 7,700 (of 32,519 total)
  • Author
    Search Results
  • #167545
    Robkk
    Moderator

    Do not edit the bbPress plugin or modify any core files!!

    Try this custom CSS and just place it in your child themes css file or in a custom css plugin.

    #bbpress-forums fieldset.bbp-form textarea {
        border: 1px solid #ccc !important;
    }
    #167538
    Robkk
    Moderator

    You cannot edit these things like the customizable templates in bbPress.

    I guess you can either use filters to customize the text, or create a custom language file.

    Here is an example of the

    function rkk_custom_admin_link( $links ) {
    
       $links['reply'] = bbp_get_topic_reply_link( array(
          'reply_text' => __( 'Reply to this Topic',   'bbpress' ),
       ) );
    
       return $links;
    }
    add_filter( 'bbp_topic_admin_links', 'rkk_custom_admin_link' );

    bbp_topic_admin_links
    bbp_reply_admin_links

    This post might help too.

    Integrating Font Awesome Icons in bbPress

    Robin showed me a function that could help modify the admin links displayed.

    Here is some example code to customize the admin links.

    //change admin links displayed
    function change_admin_links ($r) {
    $r['links'] = apply_filters( 'rw_reply_admin_links', array(
    				'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r )
    			), $r['id'] );
    return $r['links'] ;
    }
    add_filter ('bbp_reply_admin_links', 'change_admin_links' ) ;

    Subscribe links text I mention a way to customize it here.

    Problems overwriting defaults

    Favorite links would have a similar function except the filter is probably.

    bbp_before_get_topic_favorite_link_parse_args

    And the actual text would be

    'favorite'  => esc_html__( 'Like',   'bbpress' ),
    'favorited' => esc_html__( 'Dislike', 'bbpress' )
    #167526

    In reply to: Subscribe question

    Robkk
    Moderator

    @mica123

    Make sure that a user is actually subscribed so that they receive the subscription emails. Some users get confused and think they get the emails magically sometimes without subscribing to a topic or forum.

    Subscriptions

    Also install this, because sometimes the emails just do not send as they caught up in spam folders. The functionality in the plugin will most likely get into the bbPress plugin in the future.

    https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/

    #167522
    Robkk
    Moderator

    @vyasmonarchu

    Did you successfully remove bbPress?

    Also the error is common, its basically some other plugin causing the issue and bbPress just spits out information about it.

    bbp_setup_current_user was called incorrectly

    #167521

    In reply to: reCaptcha question

    Robkk
    Moderator

    For registration

    Wanguard is considered freemium since it has a request limit.

    The Advanced no captcha plugin is good to use across your site especially for registration. Wanguard also has a honeypot feature for registration too.

    Dealing with Spam

    For Post protection

    I don’t think Antispam Bee works with bbPress, there is a plugin that is based off it though that works with bbPress (bbPress antispam), but I think it is having issues lately.

    Akismet is free for non-profits and has integrated code in bbPress for it to work.

    Dealing with Spam

    #167518
    Robkk
    Moderator

    Sorry guys was probably tired or something, I should have led you guys to this explaining how to deactivate plugins when you cannot get into the admin panel.

    https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F

    And @bdsand I should have led you to this for the blank screen, but I am glad you fixed it.

    https://codex.wordpress.org/Common_WordPress_Errors#The_White_Screen_of_Death

    As for this issue, bbPress shouldn’t behave like this during deactivation of bbPress.

    See if some of the steps from here can help you.

    https://codex.wordpress.org/Login_Trouble

    I am guessing you guys are both getting the same error notice like this.

    You do not have sufficient permissions to access this page

    • You may also want to see what is the url after you get the permission error, see if there is an extra query in the url like ?restricted or something.
    • Check in a different browser to see if you get the same issue.
    • Check in a different user with a different user role(make sure you create a test user before deactivating bbPress)

    You guys can also test out your themes and plugins in a local test site/test server on your computer to see if you can duplicate the issue there.

    Creating a Test Site

    Dan LaSota
    Participant

    I was tracking down a disk full error on my server and I ran across the file bb-config.php
    Here is a partial directory listing of my WordPress networked multisite install:

    
    [root@community public_html]# ls -l
    total 16162640
    -rwxrwxr-x  1 apache   apache 16550170624 Oct  7 17:03 bb-config.php
    -rw-rw-r--  1 apache   apache        5686 Mar  2  2015 favicon.ico
    drwxrwxr-x  5 apache   apache        4096 Aug  6  2010 feed2js
    drwxrwxr-x  2 apache   apache          34 Jul 13  2012 files
    -rwxrwxr-x  1 apache   apache        9853 Nov 10  2011 glob_deny.rules
    drwxrwxr-x  3 apache   apache          46 May  6 10:18 http:
    -rw-r--r--  1 apache   apache         418 Oct 29  2013 index.php
    

    The top bit of bb-config.php looks to be php code. The bottom bits, revealed with the tail command, are binary.

    A config file, or functions file, can’t be 16GB big.

    Question:
    What is normally stored in this file?
    There are a few sites which are using the bbPress system, I don’t want to lose actual student data, but my disk is filling up/full.

    Thanks

    Dan LaSota

    #167510

    In reply to: reCaptcha question

    Pascal Casier
    Moderator

    Hi,

    First of all, don’t mix the goals of the plugins. Your initial question is about wp-login, so Wangguard and TML are dealing with that.
    If you deviate on Antispam Bee and Akismet, then you more talk about checking what is posted, not the posters.

    Wangguard is free and SHOULD remain free for small non-profit organizations. See FAQ (https://www.wangguard.com/faq) WangGuard is free during these first months after our launch around the world. Later it will continue to be free for all users with personal blogs that do not exceed 200€ per month in revenue or 6,000 requests per month.

    I did not see a specific support question that indicated that Antispam Bee did not work with bbpress, but I never tested.

    Pascal.

    lyndysmart
    Participant

    Thanks for the suggestion @Robkk, I will check that out. I am also looking at reducing the number of plugins on my site and have been searching for a code type solution for this. Any suggestion in that regards will also be appreciated. Thanks again

    #167507
    sbskamey
    Participant

    Hi, yes, the forum index is using a shortcode.

    I have also done a full reset using the Forum Tools.

    I think I have found the issue. Everything works fine, and everything updates fine, but as soon as I activate the bbP username Plugin, the Forum index doesn’t update with the latest Username (the avatar still updates fine).

    The Username that it gets replaced by is the Admins. But what’s strange is that, the Admins username still links to the new usernames profile. So basically, it’s just the text that’s not updating.

    It’s only when a user creates a New Topic. If a user Replies to a Topic, the Username and Avatar update fine.

    [bbp-topic-index] shortcode also updates fine with Username and Avatar

    Do you have any idea of what could be causing this?

    Thanks again!
    Kam

    #167500

    In reply to: reCaptcha question

    Pascal Casier
    Moderator

    @mica123

    This is not 100% related to bbpress, but to answer from a personal point, I’m using Theme My Login and Wangguard plugins without issues.

    If you really want to code yourself, you could start from https://developers.google.com/recaptcha/docs/display?hl=en or similar pages

    Pascal.

    nikhilnaik
    Participant

    @yavanna, I got my problem sorted by removing the above mentioned code and using the https://wordpress.org/plugins/buddypress-group-email-subscription/ plugin.

    if you could post more details, maybe I can help you out.

    Yavanna
    Participant

    Hi,

    I have a similar problem, though I’m not using any code in my functions file.

    I got feedback from a few participants that they are receiving emails of new replies although they are not subscribed to any of the topics.
    I already checked this and really couldn’t find any subscription to the specific user ID’s.

    It doesn’t make sense to me at all why they’re getting these emails. Would be great, if somebody could help us with this issue!

    #167488
    Robkk
    Moderator

    Have you edited any core files?

    Did you see if bbPress works with a default theme and no other plugins activated??

    You can try reinstalling bbPress again to see if there is just something wrong with that installation. Do not reset the forums and delete any data, just deactivate and remove the bbPress plugin and reinstall.

    Troubleshooting

    Robkk
    Moderator

    I think the plugin bbPress style pack has a shortcode for this type of thing.

    #167481
    Robkk
    Moderator

    You do not need to create a page at all just create a custom link in the menus section to /forums on your site.

    https://codex.wordpress.org/Appearance_Menus_Screen#Custom_Links

    #167480
    Robkk
    Moderator

    See if this custom CSS will help. Add it to your child themes style.css file or in a custom css plugin or wherever you can place custom CSS.

    #bbpress-forums fieldset.bbp-form textarea {
        border: 1px solid #ccc;
    }
    #167474
    Pascal Casier
    Moderator

    @davidschwartzer,
    Happy to see you are getting where you want.

    To close this from my side, I have found a hardcoded folder name, so that’s probably why the css is not correctly loaded. I see in your source : <link rel='stylesheet' id='bbpmsclosednogrey-css' href='http://appletechtalk.com/wp-content/plugins/bbp-manage-subscriptions/css/closednogrey.css?ver=4.3.1' type='text/css' media='all' /> but most probably your folder is not called ‘bbp-manage-subscriptions’, right ? For this version, please rename the folder under the plugins folder and reactivate. Will be fixed in next version.

    Enjoy bbpress !

    Pascal.

    #167468
    Robkk
    Moderator

    @jrunfitpro

    Sorry for the late reply.

    Since you said it is not a plugin issue causing it and you have done other troubleshooting to see if a code snippet in a theme could be causing it, create a test user, just a participant/subscriber user, then you can deactivate bbPress so I can see the issue you are getting. Contact me through email so that you do not need to post login details on the forum.

    Contact


    @bdsand

    If you have already done some troubleshooting and have not found an issue, you can let me test to see what could be causing the issue too.

    #167458
    Robkk
    Moderator

    Could be an issue with theme compatibility in bbPress. To get around that make a bbpress.php file in your theme.

    Getting Started in Modifying the Main bbPress Template

    You can see what WordPress conditionals affect what bbPress pages by using the test that is explain in this ticket from the user. Or you can check the theme compat file in bbPress.

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

    #167457
    DevynCJohnson
    Participant

    I have tried commenting out the following lines from ./includes/core/filters.php, but without success.

    add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow',   50   );
    add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow',   50   );
    #167456
    Robkk
    Moderator

    Would yu be able to tell me what line(s) in the file I would change if I want to go back to a right side bar like the rest of the pages?

    I just edited this gist file so just recopy the code to bring the sidebar back if you do want to use the login widget.

    https://gist.github.com/robkk/b97ff7d7655080cbcaab

    If I ever want to change themes will I still be able to use this file? I suppose I can see if a new theme has issues. If not, I guess I am OK. If I do, can I use this file as is or does it need to be modified for each theme?

    Every theme could be different. Most important the surrounding divs and their classes in simple themes, but it could get more way more complicated in some theme frameworks.

    #167453
    Robkk
    Moderator

    Did you place the forum index shortcode into a static WordPress page?? Does clearing cache fix the issue??

    Troubleshooting

    #167430
    Robkk
    Moderator

    I forgot you are using the Responsive theme and you shouldn’t get the same issue as some other theme frameworks.

    Remove your CSS and use this code for your bbpress.php file. It should work fine and be full width for your bbPress pages.

    https://gist.github.com/robkk/8a2a01a4d0e7d29c9d12

    #167425
    Robkk
    Moderator

    @davidschwartzer

    Your forum urls for each section is weird for some reason. Have you added a slug that is something like this forums/forum for the forum root slug in Settings > Forums in the WordPress backend?

    Your forums archive page is blank and only showing a sidebar login widget.

    appletechtalk.com/forums/

    Yet strangely here is how your forum archive should look like and yet it is in a single forum page. Since this is a single forum page there is a reason there is this notice, as single forums should have topics and not a forum archive. I think you could have possibly echoed a forum index shortcode in the single forum bbPress template?? I am not sure though, I am just guessing.

    Oh bother! No topics were found here!

    appletechtalk.com/forums/forum/forums/

    A single forum page should have this by default.

    yoursite.com/forums/forum/forum-name/

    Or if you have categories

    yoursite.com/forums/forum/category-name/forum-name

    Your topics are fine though.

    appletechtalk.com/forums/topic/notes-not-syncing/

    I am not sure how much template editing you may have done, but can you rename your bbpress folder in your child theme to like bbpress-1 so I could see without any template edits what were your original issues then I can try to help you on that.

Viewing 25 results - 7,676 through 7,700 (of 32,519 total)
Skip to toolbar