Search Results for 'code'
-
Search Results
-
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!
I was not able to use the previous phpBB importer as it was failing right at the start. This new version seems to work better! However, I have some comments about this.
1/ A possible problem.
Here is my log (which I paused in the end):
Import Stopped (by User.)
9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100% 9.Calculating topic stickies (0 through 99 of 100)0% 8.No anonymous topic authors to import 7.All topics imported100% 7.Converting topics (900 through 928 of 928)90% 7.Converting topics (800 through 899 of 928)80% 7.Converting topics (700 through 799 of 928)70% 7.Converting topics (600 through 699 of 928)60% 7.Converting topics (500 through 599 of 928)50% 7.Converting topics (400 through 499 of 928)40% 7.Converting topics (300 through 399 of 928)30% 7.Converting topics (200 through 299 of 928)20% 7.Converting topics (100 through 199 of 928)10% 7.Converting topics (0 through 99 of 928)0% 6.No forum subscriptions to import 5.All forum parents imported100% 5.Calculating forum hierarchy (0 through 25 of 25)0% 4.All forums imported100% 4.Converting forums (0 through 30 of 30)0% 3.Skipping password clean-up 2.Skipping user clean-up 1.Skipping sync-table clean-up Starting Import... Ready to go.The issue was step 9 where it seemed to be in a ever repeating cycle of:
9.Calculating topic stickies (7 through 100 of 100)100% 9.Calculating topic stickies (100 through 7 of 7)100%2/ Feature Request
Because I was not able to previously import content I came up with a new simplified set of forum categories etc in my bbPress forum. Therefore, ideally I would love to be presented with a list of forums that are going to be imported so that I can map them to the existing forums I have created. So some would be merging several into one if that makes sense.
At the moment (even though I hit stop on point 9) I was able to view the forum and could seem many boards imported – a quick look it looked great. It is just that I wanted control over how the topics were imported. Thus my idea for the mapping from old forums to current forums.
Can this be done?
Please let me know if I need to give more info.
I don’t know if this should be a “trac ticket” or not.
Well done guys.
Andrew
PS. The related question (which can be closed and linked to this new one is: https://bbpress.org/forums/topic/importing-from-phpbb-5/).