Search Results for '"wordpress"'
-
AuthorSearch Results
-
May 7, 2022 at 10:41 am #229116
In reply to: Trashing/Deleting Topics
Robin W
ModeratorAll – let me just clarify that I’m just a guy sat in his kitchen who helps out here, I am not a bbpress author !!
@craigcotner & @iqfy- trashing topics or replies calls a standard WordPress function which checks for comments and media on each post before trashing. This involves a database lookup to check whether anything in those tables needs deleting and it is this that seems to be taking the time and making you both time out. Topics and replies don’t have comments or media that is attached in that way, so these steps are not needed.Now trashing a reply is fairly easy, replies don’t hold any data that needs referencing elsewhere that we need to worry about.
But Topics have engagements and subscriptions to be gone through.
so if I wrote some code to allow you to delete a numbered topic, this could use a quicker method to permanently delete all the replies, and then use the proper function to delete the topic.
And as long as the topic or reply it is not latest activity, then we can maybe skip the step that needs to recalculate what the lastest activity now needs to be.
That should prevent timeouts I hope.
SO 2 things here
1. any topic/reply being got rid of should not be the ‘latest activity’ in the forum – but I’m guessing if the topic is still getting replies and therefore ‘hot’ then you would not be deleting it
2. this would be deleting it a numbered topic at a time, so you would look up the topic and then in the dashboard there would be an option to enter that topic number to trash it.Does that sound as if it would work for you?
@jimmyt53 – not sure how easily I’d be able to fix that, but I’ll think about it as I progress. so1. how would you want to pick topics for deletion – by ‘older than’ presumably? and
2. just from one forum or across all forums?
3. again could not be a topic or reply where it is latest activityFeedback before I start code something that doesn’t help would be great ๐
and from all – are we talking about permanently deleting – ie reduce database size, or just trashing – ie stopping people seeing, but retaining the ability to restore later?
May 5, 2022 at 1:22 pm #229088In reply to: Blank topic pages while using TwentyTwentyTwo theme.
Steveorevo
ParticipantEven simpler; add this one line to twenty twenty twoโs index.php file; this will preserve the themeโs menus, header, etc. and tell WordPress to use 2022โs template engine:
include ABSPATH . WPINC . '/template-canvas.php';Or, to prevent losing changes when/if 2022 updates; use this hook in your own functions/plugin/child:
add_filter( 'template_include', function( $template ) { if ( false !== strpos($template, 'twentytwentytwo/index.php') ) { $template = ABSPATH . WPINC . '/template-canvas.php'; } return $template; });May 5, 2022 at 12:27 pm #229086Robin W
Moderatoryour theme or another plugin might be affecting my template loading
if you want to check this:
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
May 5, 2022 at 12:24 pm #229085In reply to: Why are the image uploads so small?
Robin W
Moderatorthanks.
wordpress.org are the people behind WordPress – it is just the WordPress product.
Wordpress.com is the hosting company that WordPress has that allows you to have a website with WordPress.
There are many hosting companies – virtually all of whom let you have WordPress as a product on your website.
As far as I know it is wordpress.com who insist on the site having Jetpack, but since I have never lodged a site there, I have no idea if they let you change the settings.
https://santarosaphotographicsociety.org is listed as using wordpress.com on https://sitechecker.pro/hosting-checker/
your site https://steveruddyphotography.com/ is listed as hosted by InMotion Hosting, Inc.
so I suspect you actually want to move santarosaphotographicsociety away from wordpress.com not to it.
Other hosters might insist on you having Jetpack, and indeed may restrict the settings – none of the ones I use do either of those.
Anyway, hopefully you’ll get to a resolution.
May 5, 2022 at 10:23 am #229083In reply to: Why are the image uploads so small?
sruddy
ParticipantI have no idea but I have discovered I don’t like the restrictions when going with WordPress.org. Iโm waiting for the go ahead to change to wordpress.com using a host I use for my personal website. So at this point itโs Jetpack and no way to fix it as Jetpack is sending me here for support.
May 4, 2022 at 6:48 pm #229068In reply to: Why are the image uploads so small?
sruddy
ParticipantAgreed! ๐ I’m in the process of trying to get the photo club to allow me to move the site from wp.org to .com. That’s what I use and can usually work out any problems fairly easily. The settings for Jetpack plugin which is causing the issues are not available to me. The plugin was actually activated by wordpress.org because of the package they chose. I can’t even delete it and install a similar one.
May 4, 2022 at 6:17 pm #229067In reply to: Why are the image uploads so small?
sruddy
ParticipantNo I paid for, Image Upload for bbPress Pro. Using the healthcheck plugin you suggested confirmed the problem was due to Jetpack plugin. It turns out I can’t turn pack off and wordpress.org controls the settings.
May 4, 2022 at 4:43 pm #229066In reply to: Text Edit Bar missing for Keymaster
ddbell
ParticipantI thought the tabs were supposed to be there by default. I guess not. I am brand new to bbPress.
Just to Clarify, I have quite a few other plugins on the site. The bbPress plugin is just one part of the website and is a recent addition. The bbPress plugin was 100% default but it seems other plugins affect this text area in bbPress.
On the backup test website I was using as a test site, it looks like the tabs were there from the bbPress style plugin I installed which was only on the test site but not the main suite. I forgot I installed that…. but had never used it. It was only on the test site.
For the test site I just did the following to test.
I disabled the bbPress style plugin. It then only had the Visual Text tool bar and was stuck in Visual text mode (which I don’t want because I need to use HTML).
I then disabled the bbPress style plugin and also disabled all plugins except bbPress itself. Then it was in Text edit mode with no tool bars at all and no tabs at all.
I then re-enabable the bbPress style plugin so the only plugins on the site activated were bbPress and the bbPress style plugin. Then there was the text tool bar (not the visual tool bar), but no tabs.
I then re-enabled all other plugins. Now it has the tabs which switch between the Visual toolbar and the Text tool bar. So it seems one of the other plugins, unrelated to bbPress is adding the Visual Tool bar which also adds it into bbPress too. I’m not sure which one because I didn’t test one by one.
So that will work for me. I now added the bbPress style plugin to the main site and I have tabs and the text Editor I need. Other users can use the Visual if they want.
I didn’t realize a another plugin could change what happens inside of a different plugin. I guess WordPress can get convoluted with lots of moving parts. I may go back and try to figure out exactly which plugin adds the extra tool bar. But I like it to have both so it works fine as is now.
May 4, 2022 at 4:06 pm #229064In reply to: Why are the image uploads so small?
Robin W
Moderatorok so you are using a plugin to upload images – yes?
If so is it this
or something else?
May 4, 2022 at 2:36 pm #229057In reply to: Why are the image uploads so small?
sruddy
ParticipantThe image uploader used to ask for size, but after installing the bbPress image loader upgrade, it no longer gives the size field. thanks for the trouble shooting thing. This twenty fourteen theme has been modified and is now using a child theme. I’m not exactly sure what that means but I see no additional settings for the child portion. Neither the wordpress page editor nor the forum page editor have any format choices either. In addition I tried to make one page full width with this code .page-id-17507 .site-inner, .page-id-17507 .site-footer {
max-width: none !important;
width: 95% !important;
}
but it had no affect either, it works on my wordpress.com webpages at https://steveruddyphotography.com/
but not on this website.May 4, 2022 at 2:00 pm #229056In reply to: Why are the image uploads so small?
Robin W
Moderatorjust tried 2014 and it uploads as full size unless you constrain.
so when you say you use the image icon in the bbPress editor does this ask anything about size?
If not then it could be a plugin issue
deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
May 4, 2022 at 1:37 pm #229055In reply to: Why are the image uploads so small?
Robin W
Moderatorthanks, fully appreciate that most of this stuff is annoying as hell ๐
The problem is that all wp websites are a combination of wordpress and its settings, your theme and its settings, any adjustments to that theme, and all the plugins and each of their settings. That’s before we look at things like php versions, apache stuff, ht-acess, hoster settings and limitations and a bunch more stuff. That makes most sites pretty unique, so site A will never replicate site B in it’s problems and issues.
I’m just a guy sat in his kitchen who was helped several years ago when I was setting bbpress up, so I try to help others – I’m not a bbpress author.
my test site is twenty ten. I’ll try twenty fourteen to see if that sheds any light.
May 3, 2022 at 12:40 pm #229027In reply to: Specific Roles are not visible forums in backend
Robin W
Moderatorportal-admin is not a default wordpress or bbpress role, so how ever you created that, you’ll need to add the appropriate bbpress capabilities to it.
May 3, 2022 at 12:16 pm #229024In reply to: Trashing/Deleting Topics
craigcotner
ParticipantWell… this board and the board that supports WordPress are straight up Q&A boards. People asking questions like I am.
But my board is a discussion board/forum. So you have topics that get hundreds, even thousands of replies. So I was just wondering how that is handled. Nice to know that this is something you just happen to be looking at! So you go do your thing!
May 2, 2022 at 7:01 pm #229015In reply to: Blank topic pages while using TwentyTwentyTwo theme.
Steveorevo
ParticipantVery nice work with the style pack Robin! I do have one issue with Mega Max menu compatibility. For whatever reason, it doesn’t look like shortcodes are being processed when style pack is activated (which is how MegaMax allows menus to be embedded).
Otherwise I’d recommend your style pack for bbPress users as this “simply works” to deliver the forum styling to Twenty Twenty Two without having to painfully apply one’s own CSS rules to make it marginally pretty.
For those willing to go that far, I found that simply adding a basic, default template page as described on WordPress.org will do the trick. Supposedly block editor doesn’t care for/use PHP template pages anymore so it’s otherwise ignored.
For simplicity, I just replace Twenty Twenty Two’s otherwise empty index.php with the “skinny” template index.php I created here:
https://gist.github.com/Steveorevo/96d8015bcf353221e1cf0cd6b89bb766
May 1, 2022 at 10:41 am #229003In reply to: Why are the image uploads so small?
Robin W
Moderatorthanks, just had a look on my test site.
The first hat image I uploaded displays as
<img src="https://i0.wp.com/santarosaphotographicsociety.org/wp-content/uploads/hm_bbpui/2765/dccxo3aalx9pf5qhw9w5scfhksqpwcb1.jpg" alt="picture">so will load at the size of the web page.
On your site it displays as
<img src="https://i0.wp.com/santarosaphotographicsociety.org/wp-content/uploads/hm_bbpui/2765/dccxo3aalx9pf5qhw9w5scfhksqpwcb1.jpg?w=474&ssl=1" alt="Hats" width="473" height="316">It is uploading as full size, so something, maybe your theme or a wordpress setting is limiting it’s display.
I’m not sure if those width details are being saved as part of the post saved in the database, or are added in displaying.
you might also look at
dashboard>settings>media
April 29, 2022 at 1:41 pm #228970Topic: Filter Replies by Tags
in forum Troubleshootingrcotwunite
ParticipantHello all,
I’m working in PHP in WordPress. I’m comfortable modifying and editing code.
I have a collection of Musical Artists and their releases. I’ve created a topic for each artist (post type) and release (post type) using bbPress Topics For Posts.
The user then replies to the topic. I want them to be forced to choose a tag when they reply: “Buy”, “Sell”, or “Info”.
Then I want them to be able to click a button that only shows replies tagged “Buy”, “Sell”, or “Info”.
How do I create a button to filter replies in PHP? Thanks!
Here’s an example of an artist page with a discussion forum below
April 28, 2022 at 7:02 am #228950In reply to: General question regarding compatibility of bbpress
Robin W
Moderatorsorry, I have bbpress running under WordPress, so if you don’t want to run WordPress, I cannot help.
You question is a bit like asking a ford car mechanic what the best motorbike is ๐
April 28, 2022 at 5:08 am #228946In reply to: General question regarding compatibility of bbpress
Robin W
Moderatorsorry, bbpress only works with wordpress.
April 28, 2022 at 4:34 am #228941Topic: General question regarding compatibility of bbpress
in forum Installationmaxmustermann123
ParticipantHello!
I’d like to install bbpress on a non wordpress website and am not shure,
if bbpress is compatible.Will it work and if so, how does the installation process look like?
April 27, 2022 at 1:49 pm #228928In reply to: Update existing forum by importing file
Robin W
Moderatoragain, without knowing exactly what you are after, and alternative would be to have a forum where the teacher asks a question (posts a topic) and students the answer (post a reply).
If the replies can been seen by all students (and teachers of course), then you could use this plugin to create that solution
and use the topic permissions to set teachers to have access to both topics and replies, but students to only have access to replies.
April 27, 2022 at 1:29 pm #228927In reply to: Update existing forum by importing file
Robin W
ModeratorI doubt this can be solved as posted without custom code.
You can import files using
It would be possible to add some fields to the topic and or reply fields – this article explains the principals.
https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/
Whilst it talks about the functions file, you can also use code snipetts
so for instance if you wanted to try their code you would put all this into a single code snippet
add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields'); function bbp_extra_fields() { $value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field1', true); echo '<label for="bbp_extra_field1">Extra Field 1</label><br>'; echo "<input type='text' name='bbp_extra_field1' value='".$value."'>"; $value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field2', true); echo '<label for="bbp_extra_field1">Extra Field 2</label><br>'; echo "<input type='text' name='bbp_extra_field2' value='".$value."'>"; } add_action ( 'bbp_new_topic', 'bbp_save_extra_fields', 10, 1 ); add_action ( 'bbp_edit_topic', 'bbp_save_extra_fields', 10, 1 ); function bbp_save_extra_fields($topic_id=0) { if (isset($_POST) && $_POST['bbp_extra_field1']!='') update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field1'] ); if (isset($_POST) && $_POST['bbp_extra_field1']!='') update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field2'] ); } add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields'); function bbp_show_extra_fields() { $topic_id = bbp_get_topic_id(); $value1 = get_post_meta( $topic_id, 'bbp_extra_field1', true); $value2 = get_post_meta( $topic_id, 'bbp_extra_field2', true); echo "Field 1: ".$value1."<br>"; echo "Field 2: ".$value2."<br>"; }There are reply equivalents, but would need you to specify what should go into topic and what reply
April 27, 2022 at 3:16 am #228913In reply to: New Topic Not Working
Robin W
Moderatoryou’ll need to switch debugging on to find out what the exact error is
the post the error back here
April 27, 2022 at 1:59 am #228905Topic: Update existing forum by importing file
in forum Installationquigli
ParticipantHi there,
I’m new to this buissness and it’s my turn to explore feasibilities for my chemistry project (am a teacher). Finally it’s about generating questions and answers, a good and possible plugin would be of course bbPress. Following questions:
— is it possible to update an existing bbPress forum by reading data via import?
— an update to be read in only includes the data of the author, the question and the corresponding answer (keyword: new question resp. answer). Are there existing import options for this? Certainly … there are plugins like woocommerce etc, but they seem to me to be almost too much for the simplicity of the problem.
Well, thanks for answers, best regards, Rainermy project: http://www.chemieaufgaben.ch , bbPress-Version: 2.6.9, wordpress: newest Version
April 26, 2022 at 9:43 pm #228901Topic: New Topic Not Working
in forum Troubleshootingjennalane12
ParticipantI am just setting up bbPress and when I create a new topic and try to view it, it says “There has been a critical error on this website.”
This was happening with the forum itself at first, too, and I was able to work through that. I am so frustrated by this whole process.
Working with WordPress 5.9.2, bbPress version 2.6.9
Link to the site is http://www.griefhealingsuite.com/forums -
AuthorSearch Results