Search Results for 'code'
-
AuthorSearch Results
-
January 5, 2020 at 5:23 pm #207558
devsam
ParticipantSolved by deleting the code lines on wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.php
January 4, 2020 at 8:27 pm #207542In reply to: Give Moderator Access to Dashboard
samtime
ParticipantOkay, turned out the WooCommerce plugin was hiding the WordPress toolbar/dashboard in this situation.
Fixed this by pasting the code below into my child theme’s functions.php file.
Now the dashboard is available for bbPress moderators, but is still hidden for normal non-moderators, awesome!add_action('init', function(){ if(class_exists('WooCommerce') && function_exists('bbp_get_user_role') && is_user_logged_in()){ $current_user = wp_get_current_user(); $user_id = $current_user->ID; $bbp_get_user_role = bbp_get_user_role($user_id); if($bbp_get_user_role == 'bbp_keymaster' || $bbp_get_user_role == 'bbp_moderator'){ add_filter( 'woocommerce_prevent_admin_access', '__return_false' ); add_filter( 'woocommerce_disable_admin_bar', '__return_false' ); } } });January 4, 2020 at 2:51 am #207509davelr1
ParticipantHi!
After I update to 2.6.3 this shortcut is not showing topics anymore.
I tried different ID’s but no topics under the tags is showing.This is the code that I’m trying:
[bbp-single-tag id=377]It’s just me?
Thank you
January 3, 2020 at 7:57 am #207493In reply to: Image preview from URL pasted within bbpress posts?
angrywarrior
BlockedNo @randrcomputers???
How about edit the css styling and get it right instead?
Changing the theme will not make much difference. You need to custom code the css to fit things to your liking.
If you do not know how to do that and code it yourself, then I suggest that you hire developer to help you code it.
January 3, 2020 at 7:05 am #207492In reply to: Give Moderator Access to Dashboard
Robin W
Moderatoryou will have a plugin or code in your theme that prevents the toolbar for non admins I suspect – have a look thorugh your plugins list or theme settings
January 2, 2020 at 1:46 pm #207446In reply to: Participant can move topics
audrey2112
ParticipantThanks, it work but I did this:
#bbpress-forums .bbp-form label { display : none !important; } .youzer #bbpress-forums select { display : none !important; }But I don’t kown if it will affect something else in the forum… I hope it will be fixe in futur update of my plugins.
Do you have a solution for the participant to be able to delete their own post?
January 2, 2020 at 1:30 pm #207440In reply to: Participant can move topics
Robin W
Moderatorok, without knowing the cause, hard to say what to fix, but this will hide it
a.bbp-reply-move-link { display : none !important; }put this in the custom css part of your theme
January 2, 2020 at 1:20 pm #207438In reply to: Participant can move topics
audrey2112
ParticipantNothing much.
I don’t really play in the files of my site and if I do, It was for these two problems. I have my child theme who I make some changes in the fonction.php files and I have some css in the astra theme, but I don’t think that’s the problem. I just deactivate Youzer to see if it’s there and yes, it’s still there. I just reset bbpress also and it’s still there. The participant can move the topics the another one.
The changes I made recently was with elementor, some traduction with loco translate. So the problem can be there for a awhile and I just notice it recently.
Can we just desable that fonction in the template of bbpress?
And for the deleting post for the participant, is there a code that I can add to the fonction.php of my child theme?
Thank you.
January 2, 2020 at 12:53 pm #207435In reply to: bbPress display latest topics frontpage?
Robin W
Moderatorbboress has widgets for latest topics and latest replies
My style pack plugin has latest activity widget and several shortcodes including one to display latest topics
once activated go to
dashboard>settings>bbp style pack>shortcodes
dashboard>settings>bbp style pack>widgetsfor details
January 2, 2020 at 12:33 pm #207432In reply to: Main Forum page not working
Robin W
Moderatoryour theme is interfering 🙂
you’ll need to look at section 8 of this, to get your theme to use the right page
January 1, 2020 at 1:54 pm #207391In reply to: Can’t Read Toolbar after Update
Robin W
Moderatorok, try
#bbpress-forums div.bbp-the-content-wrapper input { color: #000 !important; }January 1, 2020 at 1:44 pm #207390In reply to: Can’t Read Toolbar after Update
Editor Mike
Participantusing chrome and the page source I see this:
<script type=”text/javascript”>
/* <![CDATA[ */
var gdbbPressToolsInit = {
quote_method: “bbcode”,
quote_wrote: “wrote”,
bbpress_version: 26,
wp_version: 53,
wp_editor: 1 };
/* ]]> */
</script>
<style type=”text/css”>
#bbpress-forums div.bbp-the-content-wrapper input {
color: #000;
}</style>
<style type=”text/css”>
#wpadminbar #wp-admin-bar-gdbb-toolbar .ab-icon:before {
content: “\f477”;
top: 2px;
}@media screen and ( max-width: 782px ) {
#wpadminbar li#wp-admin-bar-gdbb-toolbar {
display: block;Which would suggest it is there?
January 1, 2020 at 1:15 pm #207386In reply to: Translations
Juha Metsäkallas
ParticipantThe proper location of translation files for bbPress was a mystery for me too. It looks like, that for bbPress 2.6 you only need to put them into (a change from previous version)
…\wp-content\languages\plugings\And yes, if you download from
https://translate.wordpress.org/projects/wp-plugins/bbpress/
you get a po file with a wrong name, like
wp-plugins-bbpress-stable-fi.po
which you must chagne.January 1, 2020 at 1:03 pm #207381In reply to: Can’t Read Toolbar after Update
Robin W
ModeratorThe trouble is I can’t see what you are seeing as that only appears when logged in !
try
#bbpress-forums div.bbp-the-content-wrapper input { color: #000; }January 1, 2020 at 12:52 pm #207378In reply to: Can’t Read Toolbar after Update
Robin W
Moderatorif you mean the
edit|trash| etc.
then put this in your theme’s custom css
span.bbp-admin-links a { color: #000; }December 30, 2019 at 10:50 am #207350In reply to: Hide IP Address just from Moderators
Robin W
Moderatoryou will need to amend a template, so need to be able to edit and ftp files.
If so, then
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.phptransfer this to your pc and edit
change line 46 from
<?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
to<?php if ( bbp_is_user_keymaster() ) : ?>and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.phpbbPress will now use this template instead of the original and only keymasters will see the ip address
December 30, 2019 at 9:42 am #207346In reply to: Multiple forums with access request
Robin W
Moderatorif you set forum visibility, you can then set a redirect to a page for non-logged in users and another for logged in users.
so create a page and use a contact form plugin, such as contact form 7, so they can request access to other forums, which will then send you an email.
so
install contact form plugin, there are many but contact form 7 is very popular.
create a form with maybe a drop down list of forums users can request access to
create a page and put shortcode to the form in this
set redirect in private groups to go to that pageDecember 27, 2019 at 11:54 am #207288In reply to: RE: Style All Other Pages Like Home Page
Robin W
ModeratorDecember 26, 2019 at 6:19 pm #207260Topic: /forums Root Loads a Blog-Type Page
in forum Troubleshootingelohimito
ParticipantFor some reason I can’t get the /forums root to show the forum list. If I create a page w/a different slug and use the shortcode it will work; however if I use /forums it shows this: https://www.connersclinic.com/forums/
WP version 5.3.2
December 25, 2019 at 4:02 pm #207241Topic: Syntax Highlight
in forum TroubleshootingChuckie
ParticipantSorry for rehashing this but i still don’t have a solution.
Here is a web post on my site:
I have a section with a code snippet that includes line numbers, colour syntax, and certain lines highlighted.
I would really like to continue having this functionality within bbPress topics since I want to be able to put code samples in there. is there really no way we can do this in bbPress?
December 24, 2019 at 3:29 pm #207225Milan Petrovic
ParticipantHi,
My GD bbPress Attachments plugin gets file uploaded through media library, and MIME Types check is done in WP core. So, MIME control code should work. But, many security plugins also limit MIME types, so it might be related to that.
But, my GD bbPress Toolbox Pro https://plugins.dev4press.com/gd-bbpress-toolbox/ has MIME Types control alowing you to add new types and limit upload to select types.
Problem is that WordPress checks actual MIME Type for files, so if the extension is not registered with the file’s real MIME Type, it will fail. If you have archive that you connect to text file MIME, it will fail, because WP uses PHP function to read file MIME if possible.
Milan
December 24, 2019 at 9:00 am #207219Robin W
ModeratorI’ve had a quick look, but could spend the rest of Christmas looking in code
I’d suggest you raise a ticket in bbpress attachments
https://wordpress.org/support/plugin/gd-bbpress-attachments/
December 24, 2019 at 6:42 am #207215johnnyontheweb
Participantyou mean:
// First we unregister the old key unset( $mime_types['txt|asc|c|cc|h'] ); // Then we add a new one ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|<strong>nvn</strong>'] = 'text/plain';No way, same error.
As a partecipant user, in the Reply to: box, I click on the button “Browse…” and I select a .nvn text file.
December 24, 2019 at 6:37 am #207214Robin W
Moderatorok, but exactly how are you uploading – what button/link/code are you doing?
Sounds a dumb question, but is relevant
December 24, 2019 at 6:30 am #207213Robin W
Moderatorhave a look at this
https://wordpress.stackexchange.com/questions/44777/upload-mimes-filter-has-no-effect
seems maybe you can only have one text/plain entry?
the types are listed in
https://codex.wordpress.org/Function_Reference/get_allowed_mime_types
and maybe try
add_filter( 'upload_mimes', 'wpse44777_upload_mimes' ); function wpse44777_upload_mimes( $mime_types ) { // First we unregister the old key unset( $mime_types['txt|asc|c|cc|h'] ); // Then we add a new one ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|nvn'] = 'text/plain'; return $mime_types; } -
AuthorSearch Results