Search Results for 'code'
-
AuthorSearch Results
-
October 8, 2015 at 4:47 am #167545
In reply to: Adding a border to topic and rply text boxes.
Robkk
ModeratorDo 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; }October 8, 2015 at 3:38 am #167538Robkk
ModeratorYou 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_linksThis post might help too.
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.
Favorite links would have a similar function except the filter is probably.
bbp_before_get_topic_favorite_link_parse_argsAnd the actual text would be
'favorite' => esc_html__( 'Like', 'bbpress' ), 'favorited' => esc_html__( 'Dislike', 'bbpress' )October 8, 2015 at 1:01 am #167526In reply to: Subscribe question
Robkk
ModeratorMake 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.
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/
October 8, 2015 at 12:55 am #167522In reply to: Website Crashed with bbpress
Robkk
ModeratorDid 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.
October 8, 2015 at 12:49 am #167521In reply to: reCaptcha question
Robkk
ModeratorFor 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.
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.
October 8, 2015 at 12:31 am #167518In reply to: When I deactivate bbPress, I cannot log in
Robkk
ModeratorSorry 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.
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
?restrictedor 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.
October 7, 2015 at 9:54 pm #167514Dan LaSota
ParticipantI 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.phpThe 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
October 7, 2015 at 1:40 pm #167510In reply to: reCaptcha question
Pascal Casier
ModeratorHi,
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.
October 7, 2015 at 1:14 pm #167508lyndysmart
ParticipantThanks 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
October 7, 2015 at 12:55 pm #167507In reply to: URGENT – Freshness Name doesn’t update
sbskamey
ParticipantHi, 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!
KamOctober 7, 2015 at 7:54 am #167500In reply to: reCaptcha question
Pascal Casier
ModeratorThis 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.
October 7, 2015 at 7:32 am #167499nikhilnaik
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.
October 7, 2015 at 6:45 am #167496Yavanna
ParticipantHi,
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!
October 7, 2015 at 4:21 am #167488In reply to: Website Crashed with bbpress
Robkk
ModeratorHave 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.
October 7, 2015 at 3:34 am #167482Robkk
ModeratorI think the plugin bbPress style pack has a shortcode for this type of thing.
October 7, 2015 at 3:24 am #167481In reply to: Need help putting forums in a page
Robkk
ModeratorYou 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
October 7, 2015 at 3:22 am #167480In reply to: Adding a border to topic and rply text boxes.
Robkk
ModeratorSee 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; }October 7, 2015 at 1:31 am #167474In reply to: Remove the Oh Bother – No Forums here box
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.
October 6, 2015 at 11:06 pm #167468In reply to: When I deactivate bbPress, I cannot log in
Robkk
ModeratorSorry 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.
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.
October 6, 2015 at 3:07 pm #167458In reply to: Underscores not show html
Robkk
ModeratorCould be an issue with theme compatibility in bbPress. To get around that make a bbpress.php file in your theme.
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.
October 6, 2015 at 3:04 pm #167457In reply to: Nofollow on Internal Links
DevynCJohnson
ParticipantI 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 );October 6, 2015 at 2:55 pm #167456In reply to: Remove the Oh Bother – No Forums here box
Robkk
ModeratorWould 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.
October 6, 2015 at 1:49 pm #167453In reply to: URGENT – Freshness Name doesn’t update
Robkk
ModeratorDid you place the forum index shortcode into a static WordPress page?? Does clearing cache fix the issue??
October 6, 2015 at 9:01 am #167430In reply to: User profile full width page
Robkk
ModeratorI 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.
October 6, 2015 at 8:21 am #167425In reply to: Remove the Oh Bother – No Forums here box
Robkk
ModeratorYour 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.
- 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
-
AuthorSearch Results