Search Results for 'code'
-
Search Results
-
Hi, my website is http://www.findgreatness.com and I am using Kopatheme circle, I have installed and setup a page with forums as the permalink and the bbpress short code, and added two forums to see how it looks. Although I can see some format with the forums if I add them additionally as a drop down menu, I cannot see the table format on the forum index page. Any help appreciated, thanks, Andy.
Hello all,
On my website i’m trying to use the wp-editor as editor for my bbpress forum (always latest stable version). I use the same code as I use for my WP comments section (to keep the appearances the same).
The code I use does show the tinymce, doesn’t “parse” the content though (with an “ERROR: Your reply cannot be empty” as result.
My guess is that I haven’t found the right parameters (***) in the wp_editor function. Help is much appreciated.
Regards.
Marc
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' ); function bbp_enable_visual_editor( $args ) { wp_editor( '****', '****', array( 'media_buttons' => true, // show insert/upload button(s) to users with permission 'textarea_rows' => '10', // re-size text area 'dfw' => false, // replace the default full screen with DFW (WordPress 3.4+) 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,underline,strikethrough,bullist,numlist,code,blockquote,link,unlink,outdent,indent,|,undo,redo,fullscreen', 'theme_advanced_buttons2' => '', // 2nd row, if needed 'theme_advanced_buttons3' => '', // 3rd row, if needed 'theme_advanced_buttons4' => '' // 4th row, if needed ), 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ) ) ); }Topic: Thousands of revisions
Hey there,
I have a problem I can’t find a solution for (all latest versions, but it was the same before) at deppheads.com:
Every few seconds, I can see a new revision coming up in the database. I just removed the revisions of the last month and there were over 50000! I mean my forums have a few hundred thousand posts, and they are some kind of reply/topic revisions to existing posts/topics as copies of existing replies (I think). Very curious.
I have no idea how to disable them from being created. I already set auto_save to define('AUTOSAVE_INTERVAL', 86400);and added
add_action('admin_init', 'disable_revisions'); function disable_revisions(){ remove_post_type_support('revision', 'revisions'); remove_post_type_support('topic', 'revisions'); remove_post_type_support('reply', 'revisions'); }to my functions.php, but they still appear.
And I disabled revisions for bbpress posts in the settings page.
Any ideas??
Visitors are allowed to post, and I’d like to keep it like that, because it is also my comments system and I know many would not comment if they needed to register.
Here are the last 20 exported as sql (couln’t copy it in, so as a link:)
http://deppheads.com/insert.txt
Here one example of the “parent” http://deppheads.com/forums/reply/359207/
I tried this using while creating forums page with the tag [bbp-forum-index], i selected the dropdown of page template to my custom page template but its not reflecting in the topics page and reply page and when point the forumindex page using the breadcrumb also its coming with default tempalte.
Please can any one help regarding this. I feel there should be code where its picking default template page if you know where its picking i can manually put custom page template there
Thanks in advance
Topic: forum logout 404
Hi,
I have installed a private forum, and there is a problem with the logout:
when I am using the bbpress widget in the sidebar or footer and a user logs out exactly (!) on the same page its ok, but on every other page it returns a 404. now this really sucks, because people usually click through the forum and don’t stay on the login page.I have also created a members page and used the login shortcode, same problem.
Any ideas on how to resolve this?
I searched through the forum, however no answer for the current version of bbpress.
Any help will be appreciated,
ThanksHello,
I think this may be a new issue, but, on line 134 of the default template bbpress-functions.php, and on line 141 for RTL, the script is loading with a relative path and therefore not adding https when necessary.
Of course, when accessing site via https, this is giving a “insecure content” warning.
I made a quick edit which is replacing line 134 with:
'file' => get_home_url() . '/wp-content/plugins/bbpress/templates/default/css/bbpress.css',Keep in mind that may not work with every single install, but likely 99%. (those who have a custom wp-content or plugins dir)
Thanks.
Hey,
I use some other plugins providing shortcodes. The work fine on every page, but not in topics or response of the bbpress forum.
For example this progress bar plugin
http://wordpress.org/plugins/progress-bar/How can I add the function that the shortcodes will work in bbpress forums?
Thanks for your help!