Search Results for 'code'
-
Search Results
-
Hi,
I’d like to modify the reply topic from paragraph <p> to heading <h1> or <h2>. I tried to modify few php files but couldn’t get it working. Also checked few codex content but couldn’t find anything relevant. Wondering if somone done this before or knows how to do it. Thanks.
Topic: is_bbpress not working
I’m trying to detect requests for the bbpress forum index page.
Initially I tried ‘bbp_is_forum_archive()’.
This doesn’t return true from the forum archive page.I decided to test if any bbpress conditional tags were working, so I tested ‘is_bbpress’, because the function calls many (maybe all?) of the other conditionals.
However, ‘is_bbress’ doesn’t return true either.
However, on any page in my site, whether bbpress is on that page or not, this condition returns true:
‘if ( ! is_bbpress() )…’What could be happening here?
This is my function and the hook I’m using:
add_action('init', 'test_bbpress'); function test_bbpress() { if ( is_bbpress() ) { wp_die("got to the forums page") ; }
}
Hi,
I want to change generally all x days (years, whatever) ago to german like “vor x Tagen”.
I Have found the code base in inludes/commeons/formatting.php.
But I’m not so goog in develeoping.
Can somebaody help me please?Kind regards,
OleAfter installing bbpress I have a set of forums.
Every forum is presented using a php template in my child theme.
The php template has the filename bbpress.php.I’d like to create a php template that applies *just* to the individual forum pages. Not the forum topics or singles. Or anything else.
I’ve been looking at this:
The heirarchy seems to suggest that you can use ‘single-[forum].php’, which suggests that ‘[forum]’ needs to be substituted with the name of the forum.
… which is great. But I want one template to be applied to all forum singles and nothing else.
Just to test, I copied my existing bbress.php to a file called ‘single-forum.php’.
bbpress did pick this up and use it for my forum singles.
But the page didn’t present the actual forum. Where the forum should have been, there was just empty space.So… how do I create a template that gets applied to all forums and nothing else?
I’ve set up a set of discussion forums on a site. Now I want to the purpose of each forum to be clear.
One forum is called ‘Introductions’.
I’d like to have a message on the page saying something like “Hi. This is where we get to know each other”.I guess I could hack up something with ACF and put some logic in the page template that shows the forums. But I’m wondering if there’s a faster option.
Is there an inbuilt way to make add non-hardcoded content to the forum pages?
Topic: The matter of backslashes
Hello,
Some mathematical objects written in mathjax/latex use backslash (\). For example, one use \sqrt{} for the square root function, \mathbb{} for the set of numbers. In bbpress forums, these objects work perfectly but when the forums are displayed in buddypress activities streams, the backslash disappears and therefore the mathematical symbols are not rendered and make the texts difficult to read. If the texts are typed directly in buddypress side, things are also alright. So, the problem seems to be in the transition from forum to the buddypress activities.
I tried some solutions but nothing work. For example, I tried this solution:
remove_filter( ‘bp_get_the_topic_post_content’, ‘stripslashes_deep’ );
but it did not work.
So I am asking for help; how can I do to solve the problem?Thank you in advance
Wordpress 5.7.2
bbpress 2.6.6Regards
Nestor
I’ve installed bbpress and created a set of forums.
On the forums page of my website, a linked list of forums shows… which is great.
However, I now want to alter the order in which the forums are listed.
Usually for post types, the admin screen allows a re-ordering of posts via the ‘quick edit’ link.
However, in the bbpress forums admin screens, forums don’t have the ‘quick edit’ listing.I’ve installed and configured a couple of plugins that allow admins to re-order post types. These don’t seem to touch bbpress forums.
At a last resort I’m sure I could find a code snippet online. But I’d like to work within the CMS admin as much as I can.
Is there a way to alter the order of the bbpress forums list display without falling back to code?
I am thinking about editing what the shortcode [bbp-single-view id=’popular’] displays. What I would like to change it to is to display the most popular topics per day. For example, a topic that has 10 replies one day and so classed as ‘popular’ has 1 the next day and so it is no longer on the list.
I have made a function that returns the number of replies in the current day by using the topicID but I am unsure where to go from here, to link it to this feature.
Any help is greatly appreciated!
Topic: Too many search forms
When I use the bbPress forum search form, it adds it to the search form that was already there, so now there are two. I’d prefer to only have one, the bbPress one. I thought removing the one that was already there would be a WordPress problem (not a bbPress problem) because, to remove it, I could use the Disable Search plugin or the code at
https://www.wpbeginner.com/awp-tutorials/how-to-disable-the-search-feature-in-wordpress/
with Code Snippets. But, neither of those two methods worked. I couldn’t find the form that was already there at the widgets page. I also couldn’t remove it by customizing a header. I know that this might seem like more of a WordPress or theme problem, but because bbPress has the option of adding its forum search form, I thought a lot of people who use bbPress might wind up with too many forms (and bring it up at this forum). But, I couldn’t find anyone who has the same problem as me, at this forum. My site is at dancing4locations.org. There, you can see the bbPress form that I want to keep below the login form, and the form that I want to remove (which is to the left of the login form).
Thank you.