Search Results for 'code'
-
Search Results
-
Topic: Problem with code in topics
Say I have this in a code block (originally):
<Talk Number="31" Type ="0" Date="01/08/2018">Are You Conscious Of Your Spiritual Need?</Talk>At the time it worked. And right now if I view the post I can see the code correctly.
But when I edit the post, the HTML gets stripped. Unless I edit the file and have the “text” editor as the active one. Then the text shows wrapped in the code characters.
But if I edit the post and the Tiny MCE (4.9.6) is active, or I toggle between Text and Visual I get:
Are You Conscious Of Your Spiritual Need?It has stripped the XMl syntax which is frustrating.
Why is this?
Hi,
I’m currently using BuddyPress, bbPress, and Image and video gallery from Google Drive (all are latest updated). The plugin “Image and video gallery from Google Drive” provides a shortcodes is [sgdg path=”MyPath”]. I tried installing “bbPress – Do Shortcode” and it worked. However, the javascript file for loading is missing. Anyone can help me out please?
The new bbPress 2.6.0 update implemented yesterday breaks the forum index displayed with the [bbp-forum-index] shortcode.
1. The above shortcode used to display two levels, not one on bbpress 2.5.14 before the update.
2. The problem happens on three different sites, so it is not a plugin compatibility issue.
3. The problem was reported during the 2.6.0 development cycle but ignored:
https://wordpress.org/support/topic/subforums-not-showing-after-upgrade-from-2-6rc5-to-2-6rc7/4. The forums that are displayed are and always have been propertly set to display two levels in the index:
Showing parent forums and subforums (categories) in forum root: How?
What I would recommend is modifying bbpress to implement a parameter after the [bbp-forum-index] shortcode such as “showlevels=1-2” or the like. That way users can control how many levels of the hierarchy are displayed in the index.
This is clearly a bug in 2.6.0 that needs to be fixed. When will it be fixed?
after upgrading from 2.6 rc 5 to 2.6 one of my plugins stopped working, with the fatal error Call to undefined function bbp_get_version(). I can’t figure out why, from what I can see that function still exists?
[14-Nov-2019 08:27:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_version() in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php:222
Stack trace:
#0 /home/woouser/wordpress/wp-settings.php(360): include_once()
#1 /home/woouser/wordpress/wp-config.php(92): require_once(‘/home/woouser/w…’)
#2 /home/woouser/wordpress/wp-load.php(37): require_once(‘/home/woouser/w…’)
#3 /home/woouser/wordpress/wp-blog-header.php(13): require_once(‘/home/woouser/w…’)
#4 /home/woouser/wordpress/index.php(17): require(‘/home/woouser/w…’)
#5 {main}
thrown in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php on line 222here’s the code from the plugin
add_theme_support( 'bbpress' ); $pluginroot = plugin_dir_path( __FILE__ ); $themeroot = get_template_directory(); $bbpressversion = bbp_get_version(); $ex_aaa = explode("-", $bbpressversion); $ex_bbpressversion = $ex_aaa[0];Hi everybody!
I’m having some problems importing from the latest phpBB into the latest bbPress.
I get the following error:
1. No passwords to clear 2. No users to importEverything else appears to import as expected.
Since the latest update to 2.6.0 I’ve noticed that I am unable to click into the visual editor on replies to posts. Text tab works but the text area for the visual editor isn’t working at all. I can’t click into the space and type anything there. I’m using the following code to use the visual editor…
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
return $plugins;
}
add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );function bavotasan_bbpress_upload_media( $args ) {
$args['media_buttons'] = true;return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' );function add_theme_caps() {
$role = get_role( 'subscriber' );
$role->add_cap( 'upload_files' );
}add_action( 'admin_init', 'add_theme_caps');
So I have this code for html tags not showing in topics for non-admin:
// Stop HTML Tags appearing in bbPress posts for non-admin users add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true, ), // Quotes 'blockquote' => array( 'cite' => true, ), // Div 'div' => array( 'class' => true, ), // Span 'span' => array( 'class' => true, 'style' => true, ), // Paragraph 'p' => array( 'dir' => true, 'style' => true, ), // Code 'code' => array(), 'pre' => array( 'class' => true, ), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ), // Tables 'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true, ), 'tbody' => array( 'align' => true, 'valign' => true, ), 'td' => array( 'align' => true, 'valign' => true, ), 'tfoot' => array( 'align' => true, 'valign' => true, ), 'th' => array( 'align' => true, 'valign' => true, ), 'thead' => array( 'align' => true, 'valign' => true, ), 'tr' => array( 'align' => true, 'valign' => true, ) ); }I need to add some more tags to this list because my topics now support embedded videos. A user did a topic and it shows as:
<video controls=”controls” width=”300″ height=”150″> <source src=”path; /></video>What must I add to this tags array for this?
Thanks
In using bbstyle pack, when I have it set to have edit profile in the menu, it refers to this link…
/users/*username*/edit
… but I end up with an error page…
“Sorry, This Page Is Gone.
The page you are trying to view no longer exists or has been moved. You may try the search form below to find it.”I also tried the bbstyle pack shortcode [bsp-profile] and same result as above.
You asked on another thread…
What have you got set for dashboard>settings>forums>forum user slugs>user base ?
It is set to the default… I never changed it…
usersI found an old plugin as a workaround, but I would rather not add another plugin, especially one that is not updated for the past two years…
/plugins/bbp-profile-link-shortcode/When I use that plugin, it works fine for profile edit… I put their shortcode in a sidebar widget… and it refers to this link…
/users/*username*/
… this link works to reach Profile.Here is the problem…
I have my wp in a sub folder of the domain, WordPress Address (URL).
And, the Site Address (URL) is the domain root.bbstyle pack is using the WordPress Address (URL) … adding the folder to the link string … and not the Site Address (URL)…like this…
/domain/folder/users/*username*/edit
… this will not work… “Page is Gone”/domain/users/*username*/edit
… this works.Is there a way to change the setting for bbstyle package to use the Site Address (URL) as opposed to the WordPress Address (URL)?
Thank you for making it 2.6!
However, there was a problem after the update.I use bbpress in Japanese.
In ver.2.5, a code that sets the topic title to 20 characters in Japanese was added to functions.php and it worked properly.
This is the code.function title_max_length ($ default) { $ default = 20; return $ default; } add_filter ('bbp_get_title_max_length', 'title_max_length');But after 2.6, it didn’t work.
For example, if default = 20, only 6 characters will be reflected in the title in Japanese. If it is half-width alphanumeric characters, up to 20 characters are correctly reflected.I know this is a multibyte issue, but I don’t know how to deal with it. Can I change the limit on the number of characters in a title even with multibyte?
I hope to find a good solution.I am not good at English. I’m sorry in terrible English. thank you for reading!