I found a way to make it work without disabling filtering completely. I placed this in functions.php:
add_action(‘init’, ‘my_html_tags_code’, 10);
function my_html_tags_code() {
global $allowedposttags, $allowedtags;
//$allowedposttags[“ol”] = array();
//$allowedposttags[“ul”] = array();
$allowedtags[“ol”] = array();
$allowedtags[“ul”] = array();
$allowedtags[“li”] = array();
$allowedtags[“span”] = array( “style” => array() );
}
Now i have another problem. I use the Ultimate TinyMCE plugin and i have many other buttons on my editor that don’t work (i.e. Add Images, Add Video, …etc)
How can i know what tags they are using so i can put them in the function above?
Well I’m just thinking that you may have had an error in the code since you got 500. That’s all.
@synergywp1 I can’t get this to work…Can you post the whole code on PasteBin.com and share it? I would really appreciate it.
It is very easy. You just don’t need this HTML code!
This text box should use the defaults of the WordPress installation or the theme basic css instructions. The problem is that you specify the DIR in the html code, so there is no way around it using css.
If it is really important for some reason, you can use css: direction=”ltr”. We could walk around it using the rtl.css or using !important or something.
@supernaturalbrews Glad it worked out well for you. Sure, raincheck on the beer in KC! 🙂
@plasterius no need and please don’t give credentials to people you just “met” in forums. I gather by your response that the theme has proprietary code within. I will suggest that you contact theme author and ask which template or ask for a template that will render full-width layout.
It is built in… bbp_has_topics can be set using orderby to any of ‘author’, ‘date’, ‘title’, ‘modified’, ‘parent’ or ‘random’
https://bbpress.trac.wordpress.org/browser/trunk/includes/topics/template-tags.php#L84
See this to get started with using custom templates https://codex.bbpress.org/theme-compatibility/
bbPress 2.x is a plugin for WordPress just like any ‘other’ WordPress plugin and is no longer a ‘stand alone’ web app needing a bb-config.php. Everything is stored in the main WP database primarily using ‘Custom Post Types’ for the forum bits and all user bits are just WP users.
About
Features
Installation
https://codex.bbpress.org/getting-started-with-bbpress/
(Beware of any ‘legacy’ and/or posts ~2 years old in regard to bbPress as these typically refer to the old ‘Stand Alone’ version)
My goal is to share one DB between wp and bbpress, one registration, seamless for users. The process of accomplishing this seems to have changed.
There’s all sorts of documentation on this topic and I’ve spent the last five hours trying to find my answer before bothering the good people of the internet, so I would greatly appreciate a hand now. It would appear that in recent changes, bb-config.php no longer exists? Installation process where you can fill out DB details in an easy form process seems to be gone?
Integrating with WordPress
So the settings must be in a config file somewhere! This infamous “WordPress Integration” section must be somewhere!
I’m using WordPress 3.5.1 and BBpress 2.2.4
Thanks.
you need to use something like GD bbPress Tools to enable shortcodes for bbpress
https://wordpress.org/extend/plugins/gd-bbpress-tools/
sam
@rewindcaz I actually disabled all of the default avatar systems that WordPress provides and created my own with a few small functions. I needed a custom made plugin because each avatar on the site is unlocked when you receive a new card to your collection. Â Users can also customize their chosen avatar with nine alternative colours, which helps provide individuality.
As I’ve received a ton of feedback from the Rats Clan bbPress forum I’m going to start blogging about my code – I’ll make sure this is one of my posts! 🙂
Has anyone figured out how to sort topics, discussions, or replies? I would think that would be some basic functionality that would be built in. Or at least easy enough to find in the code to change.
I need to sort topics by topic name. Using version 2.2.4.
Hello all.
I’ve just deleted Simple Press, because I couldn’t import editor except plain editor.
I’ve installed this bbpress forum and I have no information about change or basic development.
For example I have a page that was installed simple press upon it. http://www.oyundragon.com/forum
And it is full-width. That’s why I want to use that page to show bbpress forum. Inserted shortcoded, good, it works But what a pity there is a bbpress forum page as you know http://www.oyundragon.com/forums
What should I do ?
Secondly how can I change “forum” title in the top of every forum sections in the content ?
Hello,
I need help with creating a log in box. I know the shortcode to use in the sidebar or in a wordpress page is [bbp-login], but I would like to create a log-in-box right on the main page of the forums as seen at studiopress.com/forums. I know that for this I need to add the code to the php template, though I do not know the code. Can you guys help me with the php code? Thanks in advance.
I’m using bbpress 2.2.4
http://www.may81.com/forums/forum/may81/
Again, you shouldn’t put the dir=”ltr” in the code. It is better to be inherited from the defaults of the website.
Hi all, is there a way or snipped, or a type of code to send an email to admin (or or a specific email) everytime a user open a new discussion in a forum.
I think it’s something to add in a function.php file on eventi post_publish.
Thanks!
Hi, I apologize in advance because it seems like this would be a commonly asked question (and one with a straight-forward solution), but I just can’t seem to find an answer.
How do I grant forum participants permission to use IMG tags? I don’t need to allow users to upload images inline, I just want to give them the same ability as the Administrator has to embed images using the IMG tags.
Unless I’m a total idiot, there doesn’t seem to be a built in UI to adjust this user permissions. Is there a simple line of code I can add in somewhere, or does this require a plugin? I prefer a non-plugin solution if possible.
I am using the User Role Plugin, but not sure how I could use this to enable the permission I’m looking for.
Will this feature be in the next update, or could I add a bit of code to functions ?
I did have a look but nothing that it will work with bbpress, ill keep looking .
@mercime anything related to bbpress I would like to have full width without sidebar.
I’m using triton lite.
I put the above code into the child theme css and it got rid of the sidebar but its not full width.
Here is the link to the forums:
http://www.kcnanobrews.com/forums/
yeah normaly you can do that but it dont work becouse that the php code has a element.style and a element.style can’t be overwrited be an css style
Just follow the steps in the document https://codex.bbpress.org/bbpress-in-your-language/
Set `define (‘WPLANG’, ‘fr_FR’);` in your WordPress `wp-config.php`
Download the .po & .mo files
Rename the files
- bbpress-plugin-fr-fr.po to bbpress-fr_FR.po
- bbpress-plugin-fr-fr.mo to bbpress-fr_FR.mo
Upload both files to `/wp-content/languages/bbpress/ `
I would suggest you use the following page to ask if anyone in the French WordPress community has fully translated bbPress as the translations linked above are 0% & 11% https://fr.wordpress.org/contact/
If you are trying to translate the theme DynamiX or ‘codestyling localization’ plugin then they are issues with their respective authors.
I’d suggest taking a look at the code in the bbPress ‘Login Widget’ included with bbPress.
It behaves in very much the same way you are looking to have in your header.
What you are probably after starts at line #137 and depending on your needs use either `bbp_user_profile_url( bbp_get_current_user_id() )` or `bbp_user_profile_link( bbp_get_current_user_id() )`
Sorry guys, I didn’t think that the code wouldn’t post properly.