Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,651 through 7,675 (of 32,505 total)
  • Author
    Search Results
  • #167581
    Robkk
    Moderator

    Robkk, that plugin has not been update for a long while.

    Its just about a year old. It is an extremely small plugin that uses the bbPress hooks and filters and most of the code is for the options in the plugin. You can contact the plugin developer in the support forum if you have concerns about it.

    You can also go with what @tecca said and just do simple template edits. Just make sure you have copied the templates into your child theme.

    And you could just not use ads on the forums, there are other places you can put them.

    #167578
    DevynCJohnson
    Participant

    As a temporary (but poor fix) the below code can be added to “functions.php”.

    //Remove nofollow
    function rm_nofollow($txt){
        $txt=str_replace(' rel="nofollow"','',$txt);
        return $txt;
    }
    add_filter('bbp_get_topic_content','rm_nofollow',20);
    add_filter('bbp_get_reply_content','rm_nofollow',20);
    #167577
    Tecca
    Participant

    Does the plugin not work as intended @utahman1971, or you haven’t tried it because it hasn’t been updated for a while? From what I see, it probably hasn’t been updated because bbPress hasn’t changed enough to warrant the plugin being updated (ie, it stills works with the current version).

    If that’s not the case and it simply doesn’t work or has some sort of vulnerability, you could always ask which templates to paste your ad codes in. I prefer doing that over adding yet another plugin that might break during upgrades. With ad codes being touched so little, template edits seem appropriate enough for the job.

    #167575
    mica123
    Participant

    Actually,I may be getting somewhere. When I log in as admin, it gets me to the backend, then I type the address mysite.com/forums – then I see that I am not logged in. However, when I type in: mysite.com/forums/community – then I am logged in on that page.
    I wonder if it has anything to do with the redirect I have in functions:

    function rkk_login_redirect($redirect_to, $request, $user) {
        return (is_array($user->roles) && in_array('administrator', $user->roles)) ? admin_url() : site_url('/forums/');
    } 
    add_filter('login_redirect', 'rkk_login_redirect', 10, 3);

    You can see that discussion I had with @robkk here

    I’ll do more testing tomorrow.

    #167572
    DevynCJohnson
    Participant

    How can I prevent “nofollow” from being added to my internal links on bbPress posts? (I have the latest version of bbPress and WordPress)

    The “nofollow” attribute is being added to my internal links on my website (DCJTech.info). However, this issue only occurs on bbPress posts, but not WordPress pages. Here is an example of the problem (bbPress post) – http://dcjtech.info/topic/general-unixoid-topics/

    I have tried commenting out the below lines from ./includes/core/filters.php, but without success. I also cleared the cache (server and browser) and waited a minute before checking the page’s source code.

    add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow',   50   );
    add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow',   50   );

    I used ‘grep -r -e “follow” ./plugins‘ to find all code that may be inserting “nofollow”, and I also searched my theme and mu-plugins. In addition, I searched my SQL database (via phpMyAdmin) for “follow”. I did not find any plugin, setting, etc. that could be causing this problem. There were no “nofollow” attributes in the posts either. I also searched my plugins for “bbp_rel_nofollow”.

    I disabled “External Links” and commented out the previously mentioned bbPress code (and cleared the cache), but the “nofollow” attribute was still on my internal links.

    I thoroughly checked the WordPress codex website, forums (like https://bbpress.org/forums/topic/turning-no-follow-links-to-do-follow/ ), etc., but I cannot find a solution or cause.

    #167570
    xmastrspy
    Participant

    Hello total noob here. I am having an issue with implementing bbpress forums into WordPress. This is the first time (besides collage 20+ years ago) that I have messed around with websites. So please excuse my ignorance and incorrect terminology.

    versions:
    Wordpress 3.2.1
    bbPress 2.5.8
    Theme Tesseract 2
    Turnkey WordPress Vmware virtual appliance ip 192.168.1.230

    The problem I am having is:

    I created a page that would hold my forums called MOUSE (named it mouse to stop confusing myself) so 192.168.1.230/mouse. On that edit page for mouse, I added a row and inside that that row I have 2 virtual editors widgets. Inside one widget, I have the “bbPress Form list”. In the other widget I have added this bit of code. “[bbp-forum-index]”

    When I go to 192.168.1.230/mouse I see a page that has the Page Attributes, forums list, and formatted exactly how I want it. Its when I click a forum topic that everything changes. The URL changes to 192.168.1.230/forums/forums/theforumtopic and all formatting has been lost.

    Obviously this is not the behavior I want, but I have no idea how to ask to fix it or what is not working. I know I am not able to easily edit the 192.168.1.230/forum. And by edit I mean not able to add rows and widgets or able to change any page attributes. What I would like is when i go to 192.168.1.230/mouse/theforumtopic that it carry’s forward any type of formatting I did for the page /mouse

    No idea if that makes any since to you guys. If it does, can you offer any suggestions or something I could look up to fix the issue? I am not sure what the exact problem is so its really hard to search for an answer! lol 🙂

    Thanks

    #167568
    Pascal Casier
    Moderator

    Guten Abend laberkopp,

    @robin-w

    I checked your profile picture and I think I have seen you before 🙂

    bbPress profiles are open by default to all, so also users that are not logged in could see your profile. I know Robin has made a quick patch for a previous version (http://www.rewweb.co.uk/bbpress-making-profile-pages-private/) but I’m not sure if it’s still valid for the current version.

    Some other (untested!) snippets can be found here: http://seventhqueen.com/blog/code-snippets/restrict-guest-users-from-accessing-buddypress-or-bbpress-pages.html

    Regards, Pascal.

    #167564
    Pascal Casier
    Moderator

    Well, I have something that COULD help you. Let me see if I can extract it and put it somewhere on my site. It worked for me, but is pure database access ! So you will have to make a full backup of your site before and maybe review the code to make sure it works on your environment. So no guarantees !

    But I’m busy on another project now, so I might need some days/weeks, depending of how fast I go with the current one.

    Pascal.

    mvaneijgen
    Participant

    I want to show the forum name in my topic page title. I have searched up and down the googles, but with no luck. I use the Yoast SEO plugin and want %%title%% %%sep%% {{ forum-title }} %%sep%% %%sitename%%, but where do I find the {{ forum-title }} variables?

    #167550
    Robkk
    Moderator

    Can you assign topic tags in a regular forum?
    Can you assign topic tags in a group forum?
    Have you tried creating custom roles?
    Have you installed a user role editing plugin?
    Have you ran any repair tools in Tools > Forums yet, especially the Remap existing users to default forum roles one?

    Have you tried most of the basic troubleshooting steps already?

    Troubleshooting

    #167548
    tashmash
    Participant

    OK. I have now pasted the code into my child themes style.css but I still don’t have a border showing.

    #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

Viewing 25 results - 7,651 through 7,675 (of 32,505 total)
Skip to toolbar