bbPress | git branch for sharing in-progress patch ideas | Microservice library
kandi X-RAY | bbPress Summary
kandi X-RAY | bbPress Summary
Stephen (aka @netweb) git branch for sharing in-progress patch ideas. Don't fork this, fork
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set global fields
- Display a reply widget .
- Hash a private password .
- Get cache key
- Process html field
- Register a taxonomy
- Callback for user_id
- Check if the current user is in the loop .
- Skip post related posts .
- Callback function for forum_type
bbPress Key Features
bbPress Examples and Code Snippets
Community Discussions
Trending Discussions on bbPress
QUESTION
I just launched my store on wordpress and I ran into a problem: When I am on the home page of the site, all my product titles are in H2 and should be in h3 (SEO reasons), my recommendation products are also in h2 instead of h3 (on the single product page and in collections, i would like to change them all to h3). I looked for a long time where the problem could come from, searched all the files of the theme to change any title from h2 to h3 but nothing helped, I can't find where it is! I also asked the theme creators for help but they told me it was woocomerce's fault and there was nothing they could do ..
A lot of people have had some of the same problem under other themes but they don't have the same "function.php" as me. I also followed this: How can I change the product
in Woocommerce Storefront to ? but it didn't work for me.Can someone help me on this problem ?
here is my "function.php" but i dont think it'll help..
...ANSWER
Answered 2021-May-19 at 21:08I don't think the functions.php
file has anything to do with it - usually HTML structures like this are created in template php files which are in the themes folder - either on the top level of that folder or as "template parts" in an according subfolder. You have to edit those( or actually those among them that are used by the pages you are referring to), changing all
(also the closing tags).
However, since any not-selfmade theme will be updated every now and then, those changes would be overwritten with updated files when available, it would be necessary to create a child theme, which only contains those templates which you want to change (see also https://developer.wordpress.org/themes/advanced-topics/child-themes/). Then again, updated themes might contain template updates which are necessary, so you'd always have to check which details were updated in that particular template file, integrating it into your child theme templates or editing the updated original themes and using them in your child theme.
P.S.: I think the title of your question is a bit misleading: In the question text you are asking about certain title tags in the product pages, not about parts of the menu, aren't you?
QUESTION
I have made a toggle switch and I would like to integrate it into my site but I am unsure how to do this. I am using the plugin bbPress on my WordPress site and would like for the user of the website to be able to click the toggle switch when leaving a comment and then for their input to be displayed on their comment.
Here is the HTML for the toggle switch: `
...ANSWER
Answered 2021-May-03 at 15:28You should be able to solve this using JS. Just insert this JS and then put what every you want in the function.
QUESTION
I am currently working on a wordpress website. It is both a blog and a forum.
bbPress Documentation says it has 5 roles:
Keymaster – Can create, edit and delete other users’ forums, topics and replies. Can manage Tags, and moderate a forum with the moderation tools. Has access to global forum settings, tools, and importer.
Moderator – Can create and edit forums. Can create, edit and delete other users’ topics and replies. Can manage Tags, and moderate a forum with the moderation tools.
Participant – Can create and edit their own topics and replies.
Spectator – Can only read topics and replies.
Blocked – All capabilities are explicitly blocked.
Wordpress by default has 6 roles.
Super Admin – somebody with access to the site network administration features and all other features. See the Create a Network article.
Administrator (slug: ‘administrator’) – somebody who has access to all the administration features within a single site.
Editor (slug: ‘editor’) – somebody who can publish and manage posts including the posts of other users.
Author (slug: ‘author’) – somebody who can publish and manage their own posts.
Contributor (slug: ‘contributor’) – somebody who can write and manage their own posts but cannot publish them.
Subscriber (slug: ‘subscriber’) – somebody who can only manage their profile.
In wp-admin/options-general.php
page it says:
New User Default Role
Subscriber
.
In wp-admin/options-general.php?page=bbpress
it says:
Automatically give registered visitors the
Participant
forum role.
I am assuming that if I signup using wp-login.php?action=register
then I am signing up as Subscriber
I am also assuming that if I signup using a page that use [bbp-register]
shortcode then I am signing up as Participant
.
This seems inconsistent to me.
Is there any way, when a user registers, he will be both a Subscriber
and a Participant
.
ANSWER
Answered 2021-Mar-13 at 17:17You need to hook action on user_register
to add second role automatically:
QUESTION
How to move author information to side of avatar for responsive design? Am I use flex-align or block ? I would like change responsive design author of forum section which I attached screenshots. I tried some of code but didn't worked.
...ANSWER
Answered 2021-Mar-08 at 12:33you can give the style display:flex; to the author and avatars parent element.If **div.hentry ** is your parent div for avatar and author with this code they should be side by side.
QUESTION
As I am having difficulty creating the pagination. I explored this method of adding it directly \includes\forums\template.php in the plugin.
...ANSWER
Answered 2021-Mar-03 at 14:12You have taken the right steps; You need to complete it with function.php in your child template to force the posts_per_page.
Put this in your function.php
QUESTION
Bbpress Wordpress Plugin have default link user profile url. The link like this: www.example.com/forum/users/(username)
The main purpose in nutshell is: I want to change the url.
Actually, I found the solution but its not perfect. The code like this:
...ANSWER
Answered 2020-Dec-26 at 12:15In a filter hook, you normally have to override the current value by returning it. Therefore try returning the new value by using the function you already created. It may remove the duplicate.
Also, use site_url()
instead of $url
variable because there will be issues when you use a hardcoded URL.
QUESTION
I'm having a problem with a textarea.
I'm using BBPress of Wordpress. When I public a post, it looks like this on the DB:
...ANSWER
Answered 2020-Oct-02 at 09:07text text text
text text
text text text
text text text
QUESTION
I have set my front page by using front-page.php
, and am displaying my latest bbpress topics,in first section. i want to display only 5 posts, and pagination.But pagination is not working. I checked on inspect element,class is coming but no links are present. Following is my code
ANSWER
Answered 2020-Aug-21 at 13:09The problem is in the $post
variable you need replace to $loop
and you should check the paged
parameter
If the pagination is broken on a static front page you have to add the "paged" parameter this way:
QUESTION
is anyone know how to get topics by user id in bbpress?
what I want to do is displaying the topics that created by the specified author.
...ANSWER
Answered 2020-Jun-28 at 12:28I'm assuming bbpress means wordpress as you tagged it for wordpress:
QUESTION
This relates to a post I made here
where initially I was interested in WordPress taxonomies
, but the more I think about my case, the more I think a custom table
approach makes sense.
So I am curious if there are any database experts who can advise me on table structure given my scenario:
I am setting up my site so I can teach guitar courses
. Perhaps of importance, I will not have many courses. Maybe 4-8.
Under a given course
, I have
ANSWER
Answered 2020-May-12 at 22:41These obstacles are intellectual; matters of understanding, not matters of implementation.
Noting the
Relational Database
tag.
Yes, a Relational database will give you:(a) the structure you are seeking, in straight-forward logic, as well as:
(b) the easiest code and the fastest queries
(that which you have requested, plus any that you dream up in the future).
.
But you have to use Relational concepts (the Relational Model by Dr E F Codd).
If you use the concepts marketed by Date; Darwen; et al, which is marketed as "relational", both the structure [a], and the code for navigation and queries [b] will be horrendous. Additionally, you will not have Relational Integrity; or Relational Power; or Relational Speed that is possible in database that complies with Codd's Relational Model.
The Relational Model is Hierarchic.
Three types of Data Hierarchies are formally (by prior intent and design) in the Relational Model.Your requirement is the simplest, four tables in a simple data hierarchy, which is reflected in the Relational Key (more, later).
The second type is a Tree (Single-Parent). You have that in Post, thus it needs no further explanation..
The third type is a Tree for Ancestors and a Tree for Descendants, without duplicating any data. Usually called a Bill of Materials structure. We don't have to worry about that here, it is beyond the scope of the question.
Warning. The links given in the comments will take you down a complex garden path, that might possibly be relevant for the other two types of hierarchies, and in any case, very poor implementations thereof.
Eg. SQL has recursion; MySQL does not have recursion, so a hard-coded and limited method is given).
Eg. some of the methods implement the trees in concrete: if a branch is moved, the entire tree needs to be re-written.
The point is, you don't need it. (You might need it for Post, but not for the answer to your question.)
You have an excellent grasp of your data, which is required for the exercise. But you have fixed ways of thinking about that data, no doubt due to the other implementation methods that you have tried, and the requirements therein. So the demand here is to give those methods of perceiving the data up, and to follow the Relational requirement:
- perceive the data, as data, and nothing but data
No additional columns or structures
To differentiate
Date; Darwen; et al, take the Result Set (the output of a query on Relational tables) as the starting point, as the perspective to be used when analysing and modelling the data. Which is reversing the order of nature, and guaranteed to cripple the modelling exercise (the report you want for a particular purpose vs the data as data).Then, as if stuck in an Excel spreadsheet mindset, they add on a
Record ID
field to the Result Set. Such an act cripples the modelling exercise further, because one now the false notion that a physicalRecord ID
identifies the logical row. It does not.- perceive the data, as data, and nothing but data
If you can give that fixed perspective up, along with the additions that contaminate the problem, and cross over the line into the Relational paradigm:
You will not need the
relations
table: it is totally redundant, because the Relational database supplies all relationships (that you have defined thus far).You won't need the
IDs
, which are always one additional field and one additional index on every file. And the horrendous consequential problems.
Additionally, you will obtain:
- Relational Integrity (which is logical, as distinct from Referential Integrity, which is the physical feature in SQL);
- Relational Power (your navigation and query code will be dead simple,
JOINs
of distal tables will not require intermediate tables to beJOINed
, etc); and - Relational Speed (fewest indices).
If interested, some of my recent Answers contain details and examples of those benefits.
NotationAll my data models are rendered in IDEF1X, the Standard for modelling Relational databases since 1993.
My IDEF1X Introduction is essential reading for those who are new to the Relational Model or Relational data modelling.
Rather than the example data you have given at the top of your question (which is not really example data, but a simple definition of the Form that you would like the display of the data to take), examine the example data (which are, of course, Identifying Keys) that I have given (blue).
- The numbers are redundant. if actually necessary, they can be computed on the fly
- Do not use numbers as Keys, because, when the structure changes, you will have to renumber all your Keys. Totally unnecessary.
The Relational Model demands that the Keys are "made up from the data". The numbers are not.
The data hierarchy is both:
visual in the data model
and reflected in the Relational Keys.
Relational Keys
- are composites, get used to it. SQL has been handling composite Keys since 1984.
- define and implement the data hierarchy. No surprise, because the Relational Model is hierarchic.
Course, Lesson, Topic, Quiz
are Key elements, short names, not necessarily codes (they would be codes in a large university), that are unique in the given context.The
Title
would be the long name that shows up on screens for external users (prospects).A
Lesson
does not exist independently, it exists only in the context of aCourse
. Therefore the Key forLesson
is (Course, Lesson
). AnID
does not uniquely identify aLesson
(or anything else, for that matter). You might have more than oneLesson
across theCourses
.A
Topic
does not exist independently, it exists only in the context of aCourse
and aLesson
. Therefore the Key forTopic
is (Course, Lesson, Topic
). Etc.A
Quiz
does not exist independently, it exists only in the context of aCourse
, aLesson
, and aTopic
. Therefore the Key forQuiz
is (Course, Lesson, Topic, Quiz
). Etc.
Relational Integrity
Eg. A
Quiz
is constrained to a particularTopic
, which is Identified by (Course, Lesson, Topic
).Whereas a
Record ID
based filing system (falsely marketed as "relational") cannot provide that, it can only constrain aQuiz
to anyTopic
.Of course, that applies to all the tables in the data hierarchy.
The relationship between Posts and the structure that is the answer to the question, is not at all clear, therefore it would be incorrect to model it. Nevertheless, it is important to you, so I have modelled it on a possibility basis, with reticence. If you define with more clarity, I will update the data model.
Dead simple, compared to that which you have in the fiddle, or that which is demanded by a Record ID
based filing system.
Get me all lessons for a course
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bbPress
Change to the directory where you checked out the source eg. cd ~/dev/bbpress
Type the following into your command shell grunt
The default task grunt or grunt build runs the following tasks in order:.
clean:all - Cleans and deletes the entire /build folder
copy:files - Copies all the required files to the /build folder
colors - Compiles our admin themes SCSS and copies the compile CSS to the /build folder
cssjanus:core - Compiles the default CSS to RTL CSS in the /build folder
cssmin:ltr - Minimizes the default LTR CSS in the /build folder
cssmin:rtl - Minimizes the RTL CSS in the /build folder
uglify:core - Minimizes the JavaScript files in the /build folder
jsvalidate:build - Validates the JavaScript files for errors and coding best practices
makepot - Generates the bbpress.pot file for translators
clean:all - Cleans and deletes the entire /build folder
copy:files - Copies all the required files to the /build folder
colors - Compiles our admin themes SCSS and copies the compile CSS to the /build folder
cssjanus:core - Compiles the default CSS to RTL CSS in the /build folder
cssmin:ltr - Minimizes the default LTR CSS in the /build folder
cssmin:rtl - Minimizes the RTL CSS in the /build folder
uglify:core - Minimizes the JavaScript files in the /build folder
jsvalidate:build - Validates the JavaScript files for errors and coding best practices
checktextdomain - Validates all of bbPress i18n text domains for internationalization
makepot - Generates the bbpress.pot file for translators
phpunit - Runs the PHPUnit tests for single site and multisite WordPress installs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page