Search Results for 'code'
-
Search Results
-
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!
The codex page for this is outdated and a lot of the threads are for older versions so here is a version for WP 3.8, bbPress 2.5.2.
Resources
Here are the pages from which I pieced this together.
http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
http://codex.wordpress.org/Child_Themes
http://op111.net/53/
http://perishablepress.com/bbpress-theme-template-files/
http://www.hongkiat.com/blog/wordpress-child-themes-dev/Initial Setup
Install WordPress and bbPress.
Step #1: Create a child theme of your WordPress theme.
Even though what you’re wanting to change is bbPress and not your WordPress, there are not separate themes for plugins, so you need to create a child theme of whatever WordPress theme you are using to have a place to put the bbPress plugin child theme files. This will ensure that any updates to bbPress or your WordPress theme will not overwrite your changes. Here is how you create a child theme:
1. FTP to your website
2. Go to ../wp-content/themes
3. Create a new folder for your child theme. Name it yourtheme-child for the sake of organization.
4. Create a new file called style.css and add the below, changing the valuesto the value for your child theme. The critical fields are Theme Name, Template, and the the parent theme directory name (which should be the same as “Template”) in the @import. Everything else is used by wordpress.org for categorizing templates so don’t stress if you don’t know what to put there:/* Theme Name: Your Theme Name Child Theme URI: Your website if you don't intend to publish a separate site just for your theme Description: A brief description of your child theme Author: your name Author URI: your website Template: parent-theme-directory Version: 1.0.0 Tags: whatever tags you might want to use for your child theme */ @import url("../parent-theme-directory/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */5. FTP your newly created style.css to ../wp-content/themes/yourtheme-child
Step #2: Add your bbPress Child Theme files to your WordPress Child Theme
1. Create a folder called “bbpress” on your local machine.
2. FTP to ../wp-content/plugins/bbpress/templates
3. Download the contents of the “Default” folder to the “bbpress” folder on your local machine
4. Edit the files you want to change for bbPress (see bbpress-theme-template-files link under resources above).
5. Delete any files you haven’t changed. You can skip this step if it’s confusing, but you should try to only upload files you’ve changed.
6. FTP to ../wp/content/themes/yourtheme-child
7. Create a folder called “bbpress” inside yourtheme-child
8. Copy the contents of the “bbpress” folder in your local machine to the “bbpress” folder inside your child theme folder.Step #3: Activate your Child Theme
Once you have created your child theme and made changes to the bbPress files in the child theme, you need to activate the child theme in order to see the changes on your site.
1. Log into your WordPress admin panel
2. Go to Appearance -> Themes
3. Find your child theme. It would be the same as the “Theme Name” you gave it in the first line of the style.css you created in Step 1.
4. Click “live preview” and make sure nothing has gone horribly wrong.
5. Activate the child theme.Since you didn’t change any files from your wordpress theme, the theme for the site will be inherited from the parent theme so the only changes you should see are the changes you made to the bbpress files that you uploaded to your child theme. The only problem I encountered was that because it was a new theme, my custom “header top menu” was not associated with the theme, so I just had to go into the menu and check the box to tell it to use that custom menu as the header menu.