Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,951 through 12,975 (of 32,503 total)
  • Author
    Search Results
  • #141124

    In reply to: Thousands of revisions

    inspirationally
    Participant

    After deactivating all bbPress related Plugins, it still occured. Now I removed the functions.php and it seems to have stopped and I’m re-adding it one snippet after the other, but I always have to wait half an hour between each snippet to see if it continues. No idea how to test it “immediately”.

    It might be something about this part:

    //Remove bbPress Head on non bbPress sites

    add_action( 'wp_head', 'conditional_bbpress_head', 9 );
    function conditional_bbpress_head(){
    global $post;
    if( !is_bbpress() && !(is_home() && $_SERVER['SERVER_NAME'] == 'deppheads.com') && !(isset( $post->post_parent ) && $post->post_parent == "17123") )
    remove_action( 'wp_head', 'bbp_head' );
    }
    add_action( 'wp_enqueue_scripts', 'conditional_bbpress_scripts', 9 );
    function conditional_bbpress_scripts(){
    global $post;
    if( !is_bbpress() && !(is_home() && $_SERVER['SERVER_NAME'] == 'deppheads.com') && !(isset( $post->post_parent ) && $post->post_parent == "17123") )

    remove_action( 'wp_enqueue_scripts', 'bbp_enqueue_scripts' );
    }

    which I added because I have two domains running and just one little part under the domain deppheads is actually the forum, and I did not want all that bbPress code in all sites, especially not on my main site.
    Is that possible??

    #141106

    In reply to: Thousands of revisions

    Stephen Edgar
    Keymaster

    Ok, this is really weird, I’m out and about at the moment but will take a closer look at this in the morning.

    For now if you want to truly disable revisions you can do so wp-config.php as detailed here:

    https://codex.wordpress.org/Editing_wp-config.php#Disable_Post_Revisions

    #141103
    Stephen Edgar
    Keymaster

    Make a copy of your themes full width template eg. page.php file and rename it to bbPress.php and you should be good to go. 🙂

    #141101

    In reply to: 404 on Edit my post

    Stephen Edgar
    Keymaster

    https://codex.bbpress.org/faq/

    My Forum posts are returning 404 messages. How can I fix this?

    This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    #141097
    Oken
    Participant

    I was directed to this topic when I asked about the particular features this customization was said to have solved. I too have also tried to follow the directions and entered the codes from this post, but to no avail. I get the same crashed website.

    Here’s where I put each peace of code. Maybe someone can point out where I went all wrong.

    http://pastebin.com/GLhCHYze – I put this in my functions.php file.

    http://pastebin.com/8K0pkKs5 – I put this in my theme’s bbpress/loop-single-forum.php file.

    http://pastebin.com/FGptZmiQ – I put this in my theme’s bbpress/loop-single-topic.php file.

    As someone mentioned, The creator of this code seems to have a stand alone version of bbpress instead of the plugin type that I use with Buddypress. Perhaps this is why it hasn’t worked for a few folks. I’d be interested to hear from someone that has Buddypress installed on their copy of wordpress and have successfully been able to make the customization work for them in their template files. If we could hear how they went about installing the code, it might help out some that might be stuck.

    Many thanks in advance! 🙂

    #141086
    aje_1985
    Participant

    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.

    #141083
    mth75
    Participant

    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'
    	    )
    	) );
    }
    
    #141074
    inspirationally
    Participant

    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/

    #141070
    piccart
    Participant

    Hello!

    I am using the default template of bbpress and I’d like to customize it

    My issue is divisible in 3 parts:

    1- I’d like to cut off the “add your reply form” from the bottom of the comments list
    2- I’d like to make a custom page with the form, which I’ve seen I can make with a shortcode
    3- I’ll need to build up a button “post reply” on the topic page, which I think it will have to pass to the form page a variable with the id of the topic, otherwise it won’t be possible for that form to append the reply to the correct topic, isn’t it?

    I think I’ve found where to cut off the displaying of the form but I’d like you to confirm before I make mess. is it in this file:
    bbpress/templates/default/bbpress/content-single-topic.php
    and if I’d like to cut off the form from the topics archive lists as well, the file should be this:
    bbpress/templates/default/bbpress/content-single-forum.php

    point 2 should be easy, but I am wondering how I’ll have to pass the variable of the topic which has to be commented.. anyone can explain me how this works?

    in point 3 I have no idea.. I’ve browsed millions of files today and found millions of functions and hooks so I don’t know which I have to use and how. by instance I’ve found a bb_get_forum_id() and a get_forum_id() and who knows if there are more similar that I’ve missed. which has to be used to retrive the current topic id? and how it has to be used?

    Thank you very much for reading this topic, I hope someone will help me.
    Cheers!
    Andrea

    mallika12
    Participant

    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

    #141068
    piccart
    Participant

    Hello!

    I have a client who wants to display the bbpress sidebar in the forum pages in a different way.
    He want to make it narrow and with smaller fonts.

    the problem is that the bbpress sidebar is registered with no particular wrapper id, so if I edit the css, all the sidebars in the website will be changed and not only the forum one.

    I am looking to find the file where the sidebar is registered, in order to alter the code and add a specific id (like #bbpress-sidebar) to the sidebar, so I’ll be able to make a custom css for the sidebar sub-classes only for the children of that id.

    I’ve looked into millions of files but I haven’t found it, can someone please help me?
    Thanx!
    Andrea

    #141059
    Stephen Edgar
    Keymaster

    You probably want to use bbp_get_user_profile_url rather than comment_author_url

    bbp_get_user_profile_url

    #141057
    Stephen Edgar
    Keymaster

    Take a look the codex for all the options available for bb_list_forums also.

    bbp_list_forums

    An advanced way of doing this is also in this gist https://gist.github.com/ntwb/3133449 which is based on @lynq topic here https://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/

    #141053
    Stephen Edgar
    Keymaster

    This should do the trick 🙂 Then just add some styling via CSS or the HTML markup in the function below and add it to your themes functions.php file.

    
    function ntwb_forum_link() {
    	?>
        <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
        <?php
    }
    
    add_action( 'bbp_template_after_replies_loop', 'ntwb_forum_link' );

    Update: Or just download the gist here and install it as a plugin 😉
    https://gist.github.com/ntwb/8295783

    Stephen Edgar
    Keymaster

    You can also make a copy of your themes page.php file (or page-no-sidebar.php) and rename this file to bbpress.php and your forums will now use that same template giving you a full width forum. 🙂

    #141037

    In reply to: Topics Freshness

    Stephen Edgar
    Keymaster

    The default ‘freshness’ is calculated by the last reply.

    Have you run each of the repair tools after your import?
    https://codex.bbpress.org/repair-forums/

    #141035
    Stephen Edgar
    Keymaster

    Give this plugin a try 🙂

    https://wordpress.org/plugins/bbpress2-shortcode-whitelist/

    This plugin is designed to safely allow bbcode shortcodes and other safe shortcodes to be embedded in bbpress topics and replies and also blog comments. You don’t wan’t users entering shortcodes such as [bbp-login] in the middle of their reply.

    #141022

    In reply to: forum logout 404

    pixmagic
    Participant

    Also,
    it would be fine to redirect to a certain page on logout.
    I searched through various bbpress files, but since there are lots of them I couldn’t figure out where and how to adjust the code.
    I am also using a childtheme.

    Thanks!

    #141021
    pixmagic
    Participant

    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,
    Thanks

    #141018
    synergywp
    Participant

    Hello,

    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.

    #141010

    In reply to: YouTube Embed Issue

    Deaf_Guy
    Participant

    Hi – thanks for your reply. I know this is going to sound defeatist and lazy but I simply cannot believe that in this day and age of automation that BBP makes you have to do all of this technical stuff.

    I run a blog for my client that you can see here on non-hosted WP. They’re very happy with it:

    http://hissign.wordpress.com/

    You’ll see in the blog that it’s so easy for me to just plug a YTV video in there. So now my client wants a forum where they can allow others to post a wide variety of YouTube videos presented in ASL (like the example in the first post). But what’s mind blowing to me is when I set up BBPress, I’m amazed that this feature of embed is not right there and ready to go; but instead, I have to tweak and do all kinds of complex stuff like adding codes and stuff. Wow.

    I chose WP because the blog (not the forum) does all of this for you conveniently so I can do my job of publishing and not have to worry or figure out all of these codes and stuff. Why in the world would bbPress be completely different.

    Anyway, thanks for your help and I’m not really sure what to do at this point about my client’s forum needs.

    #141008
    Andreas
    Participant

    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!

    Stephen Edgar
    Keymaster

    The bbPress templates should be in /wp-content/themes/yourchildtheme/bbpress/

    #140998
    Stephen Edgar
    Keymaster

    Make a copy of your themes page.php (Or page-no-sidebar.php) and rename the file to bbpress.php in your themes directory.

    #140994
    Stephen Edgar
    Keymaster

    users -> delete imported_user with the option to move all topics/replies to the original users.

    Just go to your WordPress Admin Dashboard and select the the ‘imported_username’ and click delete, then select the ‘username’ from the dropdown.

    When bbPress does the import if a user already exists then it will be created with the prefix imported_ as part of the username.

    Typically this happens after doing the import a couple of times without previously having deleted the imported users.

Viewing 25 results - 12,951 through 12,975 (of 32,503 total)
Skip to toolbar