Search Results for 'code'
-
AuthorSearch Results
-
December 3, 2013 at 7:32 am #139761
In reply to: Moderator role can't create or manage Forums
mistercyril
ParticipantHello again Stephen,
so here is what happens…
SHORTCODE SOLUTION
I inserted the[bbp-forum-form]shortcode and can see a forum creation form while logged is as KeyMaster. However, once logged in as “Moderator” I only get the following messageYou cannot create new forums.
PLUGIN APPROACH
I installed the suggested plugin (which is very straight forward and easy to use BTW) Advanced user capability editing for bbPress.Even though options are all set appropriately, the “Forum” menu will not display as long as the user is a “moderator”.
In order to be as thorough as possible, here are the tests I ran :
- Changed moderator’s WP user role to each available option (subscriber -> admin) and tested every time
- Used plugin’s reset to defaults button (essentially disabled everything)
- Added options to enable creating and editing forums
What i noticed is that the “Topics” and “Replies” menus react to BBpress user-role settings whereas the “Forum” menu does not. This might seem logical, but in my mind it validates the fact that BBpress roles are not entirely overridden or broken.
December 3, 2013 at 6:23 am #139755In reply to: How to change Date and Time format
Stephen Edgar
KeymasterChange your WordPress settings (
/wp-admin/options-general.php) to whatever format you require, bbPress will inherit those settings.December 3, 2013 at 5:49 am #139752In reply to: Moderator role can't create or manage Forums
Stephen Edgar
KeymasterFirstly, thanks for the detailed report, it really helps ๐
This is actually a known issue with moderators and the back end.
The way around this is to use the
[bbp-forum-form]shortcode, your moderator/s should have no problems creating new forums from a page setup with this shortcode.Tried editing role with Capability Manager Enhanced
I am not familiar with this tool and it’s compatibility with bbPress.
A great tool from @johnjamesjacoby is this one Advanced user capability editing for bbPress
December 3, 2013 at 5:17 am #139751Topic: Moderator role can't create or manage Forums
in forum Troubleshootingmistercyril
ParticipantHello,
I am experiencing BBPress role issues with a WP + BP + BBPress setup.
I need a “moderator” role to be able to create new forums and edit his own, as per the standard permissions defined here : http://codex.bbpress.org/bbpress-user-roles-and-capabilities/
Moderator
Forum Capabilities
- publish_forums
- edit_forums
- read_private_forums
- read_hidden_forums
Unfortunately, the “moderator” role doesn’t see the “Forum” menu in the WordPress back-end, and even if its pages are accessed directly, there is a message stating the user does not have permission to accรจs the content.
So I understand that this may be a permissions issue, but i’ve taken a number of steps to circumvent this, and still no solution in sight :
- Disable all other plugins and use standard WP theme
- Upgrade BBpress to V 2.5
- Tried every single “repair forum” tool in plugin preferences
- Tried activating-deactivating and reactivating “default user role” setting
- Tried editing role with Capability Manager Enhanced
- Tried with a fresh install of WordPress
From what i’ve gathered on-line, the BBpress team has introduced a new way of storing user roles but there isn’t very much information on how it REALLY works and how to make it compatible with an existing site that upgrades to a new version of BBpress.
Anyway, has anyone else experienced this? Does anyone know how to solve this issue?
I would appreciate any input,
C.
December 3, 2013 at 4:44 am #139749In reply to: Edit topic reply, changes post order
mistercyril
ParticipantHello Stephen,
I can confirm that I have the
.evenclass on every single entry in my forum.Furthermore, I get random display orders even when no editing is done. I’ve tried editing with “contributor”, “moderator” and “keymaster” roles but I can’t see any particular pattern, so as far as I can tell I would exclude any correlation with user roles or editing.
December 3, 2013 at 4:26 am #139748In reply to: Edit topic reply, changes post order
Stephen Edgar
KeymasterDo you mean if I have the odd and even classes on the bbpress.css?
No, in the code I posted above the 2nd last class on the 1st line of each entry has
even, every second one of these should be ‘odd’ and I am trying to see if there is any correlation betwen these two issues.December 3, 2013 at 4:12 am #139747In reply to: Edit topic reply, changes post order
eduardosilva
ParticipantHello Stephen, thanks for your feedback
So far, I just noticed this issue after edits.
Do you mean if I have the odd and even classes on the bbpress.css?#bbpress-forums div.even,
#bbpress-forums ul.even {
background-color: #fff;
}#bbpress-forums div.odd,
#bbpress-forums ul.odd {
background-color: #fbfbfb;
}
I found this on the css, but I’m not sure if this is what you are looking for.
I didn’t changed any template or php file.Thank you! ๐
Stephen Edgar
KeymasterI am not not sure if this is a bug or not, my CSS skills are not that great.
If we removed it I am not sure how this would affect template compat in other themes.
I would suggest adding a custom
bbpress.cssfile to your theme with the ‘overflow: hidden’ removed/commented out.#bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: 12px; /* overflow: hidden; */ border: 1px solid #eee; margin-bottom: 20px; clear: both; }Also if you want to create a ticket on Trac https://bbpress.trac.wordpress.org/ we can look into it further.
December 3, 2013 at 2:12 am #139738In reply to: tags allowed in bbpress
Stephen Edgar
KeymasterYour code works fine for me.
December 3, 2013 at 2:00 am #139736In reply to: Custom BBCodes?
Stephen Edgar
KeymasterThis should work for you, just swap the
bbcode_tablewithtabellain each case, and the same for your custom tr/td etc ๐https://gist.github.com/ntwb/7764534
function ntwb_custom_bbcode_table_replace( $text ) { $text = preg_replace( '/\[bbcode_table\]/i', htmlspecialchars_decode( '<table>' ), $text); $text = preg_replace( '/\[\/bbcode_table\]/i', htmlspecialchars_decode( '</table>' ), $text); $text = preg_replace( '/\[bbcode_table_tr\]/i', htmlspecialchars_decode( '<tr>' ), $text); $text = preg_replace( '/\[\/bbcode_table_tr\]/i', htmlspecialchars_decode( '</tr>' ), $text); $text = preg_replace( '/\[bbcode_table_td\]/i', htmlspecialchars_decode( '<td>' ), $text); $text = preg_replace( '/\[\/bbcode_table_td\]/i', htmlspecialchars_decode( '</td>' ), $text); return $text; } add_filter('bbp_get_reply_content', 'ntwb_custom_bbcode_table_replace');December 3, 2013 at 1:11 am #139735In reply to: Edit topic reply, changes post order
Stephen Edgar
KeymasterI can’t seem to reproduce this issue, I can clearly see it @eduardosilva forum thread linked to above.
Here is the basic layout of the CSS classes of @eduardosilva topic linked above
post-18012 topic type-topic status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-1 user-id-6181 topic-authorpost-18014 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-2 user-id-2post-18031 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-5 user-id-6181 topic-authorpost-18037 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-7 user-id-6181 topic-authorpost-18046 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-8 user-id-2post-18029 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-3 user-id-6181 topic-authorpost-18033 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-6 user-id-2
The order currently being shown using
bbp-reply-position-is1, 2, 5, 7, 8, 3, 6and it should be1, 2, 3, 5, 6, 7, 8.Every post has a class of
evenwhen every second post should beoddbased on the source code here, this is also something I cannot reproduce. This is also a sitewide issue on all the topics on @eduardosilva forums.Anyone else with this issue can you confirm it is also ONLY after a reply has been edited?
Also do you have
odd&evenin the CSS classes or all they alleven?December 2, 2013 at 4:58 pm #139727Apposl
ParticipantThank you very much! I apologize that I’m a total newbie – does that mean just delete the below part:
.item { width: 16.6%; }Or add to that something that excludes it for major resolutions?
December 2, 2013 at 4:37 pm #139725In reply to: Custom BBCodes?
Lynq
ParticipantI know this could be tedious, but how about setting up some wordpress shortcodes for the relevant BBCodes?
This could work: https://codex.wordpress.org/Shortcode_API
Good luck!
December 2, 2013 at 2:50 pm #139720In reply to: Warning: Illegal offset type in isset or empty in
Haz
Participantthank you for getting back to me so quickly, I did an uninstall and fresh install of bbpress, I made a new forum and a new topic, and I am still getting the same error. Here are the links:
http://www.aquariumcarebasics.com/
http://www.aquariumcarebasics.com/forum/ (forum index page, using shortcode)
http://www.aquariumcarebasics.com/discussion/bamboo-shrimp-care/ (forum page)
http://www.aquariumcarebasics.com/topic/best-temperature-bamoo-shrimp/ (topic page, with error)Warning: Illegal offset type in isset or empty in /home/postpr7/public_html/aquariumcarebasics.com/wp-includes/post.php on line 1060
Please let me know what you think!
December 2, 2013 at 2:15 pm #139715In reply to: Warning: Illegal offset type in isset or empty in
John James Jacoby
KeymasterTried testing on your forum, but your forums disappeared while I was looking around.
Can you try reinstalling bbPress? I can’t see any reason why
get_post_type_object()would fail in any bbPress context.FreeWPress
ParticipantHi, problem was in style.css line 1 see down:
.reply a, a#cancel-comment-reply-link { background: url("img/reply.png") repeat-x scroll 0 0 rgba(0, 0, 0, 0); border: 1px solid #FFFFFF; border-radius: 0 3px; box-shadow: -1px 1px 3px #D1D1D1; color: #6E6E6E; font-size: 11px; line-height: 11px; padding: 3px 16px; position: absolute; right: 0; text-decoration: none; text-shadow: 1px 1px 0 #FFFFFF; top: 0; }Remove entire code and problem was resolved.
December 2, 2013 at 9:48 am #139710FreeWPress
ParticipantProblem was in your responsive.css see down:
@media only screen and (min-width: 1566px) { .item { width: 16.6%; } .grid-double { width: 33.2%; } .grid-triple { width: 49.8%; } }your media queries is no correct.. remove item width for major resolutions
December 2, 2013 at 12:10 am #139692In reply to: Show only topics to public visitors.
Lifeischoice
ParticipantHello,
newbie question: Need assistance to change your code above so as to hide replies by the keymaster (admin) only for public or non logged in?thanks
December 1, 2013 at 3:19 pm #139680Topic: Custom BBCodes?
in forum Troubleshootingmatrixino
ParticipantHello, after importing from a phpBB forum where I had custom BBCodes I have the problem that they are not changed in actual html.
I would like to know how can I implement such custom bbcodes in my bbpress installation.I did some tries making a custom plugin with something like this inside (this is just an example):
function bb_table_replace( $text ) { $text = preg_replace('/\[tabella\](.*?)\[\/tabella\]/ie', "<table>$1</table>", $text); return $text; } add_filter('bbp_get_reply_content', 'bb_table_replace');But I had no luck. It seems however to find my regexp pattern but its replace is wrong, it’s made after the matched pattern (adding to it, instead of replacing).
Any help?
December 1, 2013 at 2:53 pm #139678Robin W
ModeratorI disable the toolbar for users – it always looks like an add-on and clashes with the theme style
I use a sidebar, and put the login widget on it.
I then customise the login widget as per item 3 of
December 1, 2013 at 1:30 pm #139675In reply to: Very simple question — changing font size
Robin W
Moderatorcrzyhrse – I am in the process of trying to improve the documentation – I started using wordpress & bbPress earlier this year and am still learning. This is community software, and community documentation, so I am trying to do my bit by helping the documentation side, and by spending time on the forum helping others where I can. The step by step guides I am writing are designed to fit the bill of “cohesive simple directions”, but if they are failing or you haven’t found them, then they are not working as planned. Let me know and I’ll try to improve layout and/or content, but I need good feedback to do this.
The text change suggested by renai42 works (with a small change) if done to the bbpress.css.
Can I ask you to look at
and the styling cribI’ve just tested and added Renai’s css so look there for what to use.
If you can improve wording or content to help others – please let me know what could be better phrased.
If it doesn’t work, come back with what you did, and I’ll see if I can help further
December 1, 2013 at 7:29 am #139673Topic: Exclude blog side php from bbpress
in forum Troubleshootingronthai
ParticipantHi,
In posts, my theme only has page-navigation at the bottom.
I added it also at the top of posts, no problemThe issue is that now there is also a (sort of) page-navigation at the top of every page in the bbpress plugin part, which I don’t want of course.
How do I exclude the added code from showing on the bbpress pages (the whole plugin pages for that matter)
Thanks, Ron
WP: 3.7.1
bbPress: 2.5Nevermind, solved it:
SOLVED:
Had to put it inbetween:<?php if ( is_singular('post') ) : ?> <?php endif; ?>December 1, 2013 at 4:48 am #139672In reply to: Help with getting the most out of bbpress
Robin W
ModeratorbbPress can do all the above.
See
for a step by step guide.Can bbpress be configured to require registration before posting?
Yes, and you may want to set a manual registration if you want to vet who joins. The documentation explains.
Are there additional plugins?
Yes, lots of them that’ll let you add stuff to the forum and customise it for you
November 30, 2013 at 6:27 pm #139671In reply to: Add Featured Image to the BBpress Index
Yukon Cornelius
Participant@yanseo thanks for the snippet. It works perfectly! Do you have any idea how i would change the code to add the thumbnail for sub forums instead?
The forum index looks something like:
PARENT FORUM
*sub-1
*sub-2
*sub-3I attached a featured image to each sub forum. I would like those images to show where the asterisk is.
I tried changing the action in your code to ‘bbp_theme_before_sub_forums’ but it still spits out the thumbnail/featured image for the Parent category.
Any ideas?
J
November 30, 2013 at 1:08 pm #139666In reply to: Bread Crumbs not right?
Robin W
ModeratorSorry I can’t see any forums on your site now.
You can turn breadcumbs off using
function bm_bbp_no_breadcrumb ($param) { return true; } add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');add this to your functions file in your theme/childtheme
-
AuthorSearch Results