Search Results for 'code'
-
Search Results
-
Hello everyone
My site was created with WordPress 6.8.2 and BBPress 6.2.14 with the WordPress 2025 theme block template.
In the BBPress documentation titled: “Layout and functionality – Examples you can use” at:
in line 12 it says:
12. Add a modal login (pop-up) window
This is quite neat and the instructions add it to the menu and, if necessary, add the login/logout.The login looks like this
https://buddypress.org/wp-content/uploads/53/2014/02/modal-login3-300×144.jpgThere are different styles available and you can have your own style.
Instructions can be found here:
https://codex.bbpress.org/modal-login-in-a-menu/I tried to access it, but unfortunately the link gives an error of
Error 404 – Destination Not Found.Please advise on how I can enable the above mentioned forum registration and login pop-up in my site’s forum?
Thank you in advance for your help.
Hello everyone
A code snippet is needed to suspend the publication of topics and replies submitted by forum members until the forum administrator approves (something similar to what is in place for site comments until the administrator approves).
A code that can be run in a BBPress function file or a WPCode plugin php snippet file and work.
Thanks in advance for your help
Hello everyone
My site is using the latest WordPress 6.8.2 with WordPress 2025 theme and BBPress community
To change the color of closed topics in
13. Preventing closed topics from going grey
At address:
The following code:
#bbpress-forums .status-closed,
#bbpress-forums .status-closed a {
color: #aaa !important;
}is introduced.
I put it in the css snippet of WPCode plugin. but the code doesn’t work.
Can anyone help me fix the problem?
Thanks
Topic: Redirect code not executing
Hi everyone
My site is using the latest WordPress 6.8.2 with WordPress 2025 theme and BBPress community
In
27. Custom Redirect After LoginAt address
The following dual-purpose redirect code:
/**
* WordPress function for redirecting users on login based on user role
*/
function my_login_redirect( $url, $request, $user ){
if( $user && is_object( $user ) && is_a( $user, ‘WP_User’ ) ) {
if( $user->has_cap( ‘administrator’ ) ) {
$url = admin_url();
} else {
$url = home_url();
}
}
return $url;
}
add_filter(‘login_redirect’, ‘my_login_redirect’, 10, 3 );It is introduced that I have it in the php sippet file of the WordPress plugin code but I am getting the error
Your changes are saved but your snippet was deactivated due to an error, please check the syntax and try again. Error message: syntax error, unexpected token ;
It seems that there is a problem with the code.
Can anyone help to fix the problem?
Hello,
I’ve searched, but I don’t even know what to call what I’m looking for. You know that toolbar above the post? It can bold and italicize, etc. I would like a list of the html tags, if that is what they are called, that can be used within a post. I am creating a forum that will have a lot of YAML and Python code snippets and I want them boxed, or separated some how. I want to create a sticky post showing these codes, what they look like, and how they render…but, I can’t figure out how to post the html tag without it rendering. Sorry if I offended anyone with this basic question, but as I said…I don’t know what to search for.
How do I add the <b>You may use these HTML tags and attributes:</b> to the bottom of my post page? That may solve my problem.