Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\"'

Viewing 25 results - 9,251 through 9,275 (of 26,865 total)
  • Author
    Search Results
  • #149062

    In reply to: BBPress advise wanted

    Stephen Edgar
    Keymaster

    Cool, most of things you mention can be done, some are ready to go, others need a few tweaks and custom PHP code to achieve the results.

    1. create login in the wp home page for BBpress

    Create a WordPress page, set that as your home page, add the bbPress login/register shortcodes

    2. allow only offline registered members to be registered as BBpress users

    Not quite sure what you mean here, you can set your forums to ‘private’ so only logged in registered members can see or use the forums.

    3. enable/disable users, and hence their profiles

    This is more of a WordPress question than bbPress, if the member has an active and valid WordPress account then they can login. If you want to remove the user and their associated profile then you’d delete the actual WordPress user which inherently flows down to bbPress.

    4. allow users to create profiles with their filmography and perhaps a vimeo embed or two

    With a few minor tweaks/customisations you could achieve this, you may also want to take a look at BuddyPress’ Extended profiles which will let you do this also.

    5. can users have simple URLs for their profiles, like perhaps example.com/username?

    Yep, this is built in, here’s yours here on bbpress.org https://bbpress.org/forums/profile/parambyte/

    #149059
    Stephen Edgar
    Keymaster

    Click the ‘download gist’ link, it will download a zip archive, unzip it and use FTP to upload the plugin to your WordPress plugins folder, typically /wp-cntent/plugins

    Edit: Or go to ‘Plugins’ -> ‘Add new’ -> ‘Upload’ and you can then upload it directly.

    #149056
    Stephen Edgar
    Keymaster

    I haven’t looked at what you have above closely, nor have I looked closely at the changes @jjj made recently but we just changed some of the logic behind trash, untrash, spam and unspam for topics and replies.

    Details and links to changesets are in the following ticket if you want to take a look as it appears I have not really looked at anything ๐Ÿ˜‰

    https://bbpress.trac.wordpress.org/ticket/2494

    If you don’t see anything in that ticket or related to what your looking for please create a new ticket and I promise I will look ๐Ÿ˜‰

    #149053
    Stephen Edgar
    Keymaster

    I have hardly dug into bbPress 1.x and am not familiar with the code base at all.

    How about grab the latest bbPress v1.2 and create a test/demo site on your local PC with a backup your database, things should theoretically work though you ‘d have to make sure the database upgrade routine was triggered of course.

    That should then give you a working version with your database to then start comparing the base code of your test site vs your live site.

    That said, what is stopping you from upgrading? I am presuming here that there is something stopping you from installing WordPress and upgrading bbPress 1.x to the v2.x plugin?

    #149038

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    I added support for the anonymous/deleted phpBB user topics and replies, just finalizing all of this for the any other forums that also have this feature, SMF, Drupal, Vanilla.

    For the redirects I need to find a workaround to have WordPress correctly verify that viewtopic.php?f=3&t=9 is a valid URL, if we can do that then redirects could be included for imported forums and that would be awesome.

    #149033

    In reply to: Long Query Error

    Stephen Edgar
    Keymaster

    This is just a warning notice, not so much a functional error, due to the amount of roles you have which is combined by WordPress, bbPress, Shop and S2 Member the query is over 1540 charatacters in length (1547 to be exact)

    You should contact your webhost for the best advice guidance on what MySQL settings they have configured for your hosting setup, they may have an option to increase this number for you.

    (Apologies, your topic was originally caught by Akismet as spam)

    #149032

    In reply to: Unique member names

    Robin W
    Moderator

    are you using automatic registration?

    If so wordpress should prevent duplicate usernames.

    or maybe you using a membership plugin that overrides this?

    #149027
    Robin W
    Moderator

    ok there are two parameters

    wordpress – has subscriber, author, admin etc.
    bbpress has – participant, moderator, keymaster etc.

    you’ll see the bbpress roles when you do into

    dashboard>settings>users>all users and go into edit users. Look at the bottom of the screen and you’ll see forum role.

    If you are manually registering your users, then have set up a user, you’ll need to go back into edit to add the role.

    If your users are automatically registered as part of a process, then you’ll need to set Dashboard>settings>forums and change/tick automatically assign users the participant role (if that’s the role you want them to have).

    In automatic mode, the user is assigned the bbpress role on first login. However if you are using third party registration processes (eg plugins to do that) then some override that, and that part of the process doesn’t work, so you’ll need to check that rthe process is happening.

    Come back if you need further help.

    Robin W
    Moderator

    do you simply want the forum to be hidden from non-logged in users?

    If so private does what it says on the tin. So set the forum, and all posts under it will be private as well.

    If you need only some users to see if private, then

    https://wordpress.org/plugins/bbp-private-groups/

    is what you need.

    #148973

    In reply to: Simple Layout

    Robin W
    Moderator

    ok, several ways you could do this, the best I know is

    https://wordpress.org/plugins/display-posts-shortcode/

    just create a page called anything and put the code on it.

    you’ll be looking for a custom post type of topic.

    see https://github.com/billerickson/display-posts-shortcode/wiki for the arguments you can use

    you can then determine exactly what you display

    but something like

    [display-posts post_type=”topic” posts_per_page=”15″]

    would give a simple list of 15 clickable topic titles per page.

    #148961
    Stephen Edgar
    Keymaster

    Ooops, missed the 2.3.2 ๐Ÿ˜‰

    I should have said in my previous reply, any conflicting permalinks ‘except’ a page titled forums, indeed using a page titled forums with a shortcode should work just fine.

    As you have changed the slug on that conflicting page now could you try creating a new page forums and adding whatever shortcode your using to it, what happens?

    Note: I’m splitting this topic to it’s own also as this is a different issue from the original topic.

    #148958
    Paul
    Participant

    Hi Stephen, my upgrade was 2.3.2 to 2.5.4 not 2.5.3 to 2.5.3.

    You were correct, thank you. The problem was caused by a permalink conflict. The page I am using the shortcode had the slug forums. Changing the slug to something else so it was not the same as the slug used by Forum Root (or visa versa) resolved the issue.

    The question remains though, why is this a problem with this version of bbpress over the older version I was using?

    #148925

    In reply to: phpBB Import Error(s)

    Tom Dyer
    Participant

    @netweb – I’m happy to give it a try, but the problem(s) I think I’ll face are:

    1) The ID’s for the Forums, Topics and Replies are all different now that I’ve imported them into bbPress. This is because we’ve had to migrate a whole site over too which meant that around 5000 ID’s were already taken by other posts.

    2) The migrated data for bbPress has 68 Forums, 71,006 Topics, and 564,453 Replies so it’s going to be a big job to set up redirects for these individually.

    What I was thinking of doing, was grabbing the migration helper data, and writing a PHP script that would look up these old forum and topic ID’s and redirect to the correct place without me having to input any manual redirects.

    You mention that if there is no ‘wp_bbp_converter_translator’ table, then it uses the built in WordPress tables – do you know which ones I should be looking in? I’d presume it to be wp_postmeta or something for these particular bits?

    #148914
    Stephen Edgar
    Keymaster

    @pplumridge I can’t see how any of the differences in code from 2.5.3 to 2.5.4 could have broken this.

    Any chance it’s a permalink conflict? Do you have any posts, pages, maybe even forums or topics using forums as the slug? (Also check the ‘trash’ folders to make sure the post/page isn’t there)

    #148900
    iblifefordummies
    Participant

    Currently, the font color is nearly the same as the background, making it extremely hard to see. I don’t know CSS well enough to be able to change it myself, so I could and would appreciate some help!

    Wordpress version: Latest
    BBPress version: 2.5.4
    Link to where it shows the problem:

    http://www.iblifefordummies.com/forum/ib-life-for-dummies/news-and-announcements/

    and

    http://www.iblifefordummies.com/topic/welcome-to-the-iblfd-forums/

    Jerry
    Participant

    Hi Robin. I made another improvement and added some comments. I noticed that, no matter where I inserted the shortcode, the topics displayed at the top of the content. After some searching I learned why – functions need to return a string. So I found an easy wordpress solution. I also simplified the shortcode, and removed the add_action line at the bottom as it was not doing anything. Here is the updated code:

    add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics' );
    
    // Add Recent Topics to BBPress from separate site within WP Multisite
    function recent_bbpress_topics($attr) {
        //Switch to the blog where the bbpress topics are located
        switch_to_blog($attr['id']);
        //this, along with $response variable below, allows for display within content - without these, shortcode will display topics at top of content
        ob_start();
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 9 ) ) ) { ?> 
          <?php bbp_get_template_part( 'bbpress/loop', 'topics' );
          //restore the current blog to maintain formatting
          restore_current_blog();
          }
          //this, along with ob_start(); above, allows for display within content, instead of at the top of the content/page
          $response = ob_get_contents();
            ob_end_clean();
            return $response;
    }
    #148891
    Robkk
    Moderator

    not sure but you probably have to set a max width for oembed embeds

    http://www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-in-wordpress-3-5-with-content_width/

    add the code to your functions.php in your child theme.

    change 600 to whatever number you want as the width, im sure you could copy the function to width to height and also do the height to.

    if the code doesnt work , look at the comments and try that user posted code. (i havent tried any of these codes so i dont know if they work really, if they dont just delete the function from your child functions.php)

    for images (using img quicktag) i think you can use css

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 100%;
    height: auto;
    }

    for images (posted by link using oembed , imgur , flickr picture, instagram picture) the oembed code that i linked to should do the same for these.

    #148888
    slayne76
    Participant

    Hi,
    I run a couple of different bbpress installations, of course they’re both up-to-date (2.5.4)

    I noticed that on both installations, when you trash a topic, and you try to “un-trashit” you receive a nonce error.

    I’m not sure if this issue depends on my personal configuration, but of course i disabled all other plugins and used a fresh wp install.

    Being a PHP developer I digged inside the core files of bbpress and I noticed that in includes/topics.php on line 818 the nonce is generated with

    wp_nonce_url( add_query_arg( array( '_wp_http_referer' => add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ) ), admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $topic->ID ) ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID )

    so the “sent” nonce is basically untrash-topic_<ID>, while the nonce check on wordpress (on post.php line 265 is:

    check_admin_referer('untrash-post_' . $post_id);

    or basically untrash-post_<ID>.

    Can anyone tell me if other people found out a similar issue untrashing topics or is it just me? Thanks in advance for your support ๐Ÿ™‚

    Paul
    Participant

    Hello, I have the same problem after upgrading from 2.3.2 to 2.5.4. I’ve tried different themes and had the same issue on all.

    I found that changing the Forum Root from forums to something else fixed the issue. This might help identify root cause.

    #148873

    Topic: BBPress at Root

    in forum Installation
    tatort
    Participant

    Hi,

    i dident find a new version of BBpress Standalone. So i install WordPress an add BBPress via Plugin.
    First my URL look like these:
    Forum-Root = http://forum.domain.de/forums/forum/
    Forum-Forums = http://forum.domain.de/forums/forum/test1/
    Forum-Tropic = http://forum.domain.de/forums/topic/ins-herz-zuerst/
    ;-(
    But after deaktivate (Prefix all forum content with the Forum Root slug (Recommended))
    it lock like
    Forum-Root = http://forum.domain.de/forum/
    Forum-Forums = http://forum.domain.de/forum/test1/
    Forum-Tropic = http://forum.domain.de/topic/ins-herz-zuerst/

    This look better but i dident want to use WP as CMS oder Blog. I only want a root install.
    Look like
    Forum-Root = http://forum.domain.de/
    Forum-Forums = http://forum.domain.de/test1/
    Forum-Tropic = http://forum.domain.de/topic/ins-herz-zuerst/
    is there a way to do that?

    #148860
    Robin W
    Moderator
    if (is_bbpress()) :
     div class=โ€abcโ€
    else :
     div class=โ€xyzโ€
    endif;

    translates to

    if you are on a bbpress screen/page/display [as opposed to a wordpress blog post or page, a home page or anything that isn’t bbpress]

    the use div class abc

    if you are on any other type of page use class xyz.

    Many themes use if statements checking against ‘conditional tags’ to style areas for instance the conditional tag is_home() checks whether this is the home or index page.

    Jerry
    Participant

    Got it solved! First, sorry for all the responses. I got lazy in posting the above instead of searching for the solution in the wordpress codex first. Turns out there is a function to return to the current blog, which I inserted within the “if” statement. Specifically, it is “restore_current_blog();”. Here is the working code:

    <?php
    /* 
    		Plugin Name: Recent bbpress Topics
    		Plugin URI: http://whosgotbooks.com/wp-content/plugins
    		Description: A plugin to display recent bbpress topics across the network
    		Version: 1.0.0
    		Author: Jerry Caldwell
    		Author URI: http://whosgotbooks.com
    		License: Open Source
    */ 
    /*
    Here is the shortcode required [recent-bbpress-topic]
    */
    function recent_bbpress_topics_shortcode() {                  
      recent_bbpress_topics(); }
      add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics_shortcode' );
    
    //Add Recent Topics to BBPress
    function recent_bbpress_topics() {
    		switch_to_blog(9);
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 7 ) ) ) { 
          bbp_get_template_part( 'bbpress/loop', 'topics' );
          restore_current_blog();
          }
    // Hook into action
    add_action('bbp_template_after_forums_loop','recent_bbpress_topics');
    } ?>

    For anyone who wants to use this, a few more points. One, don’t forget the formatting for style.css. Two, I changed that formatting within a child theme. Three, I can’t guarantee you will have the same results with your formatting as I have made many other formatting changes the past few months for my site. Lastly, I did not “network activate” my plugin. I only activated it on the main site.
    As I get time I will add comments and try to increase the functionality of this plugin. Right now it is very basic. Maybe I’ll get good enough to publish it?

    Jerry
    Participant

    Update on this. It turns out my code was insufficient. If have fixed it, sort of, which has led to another problem. First, here is the updated code:

    <?php
    /* 
    		Plugin Name: Recent bbpress Topics
    		Plugin URI: http://whosgotbooks.com/wp-content/plugins
    		Description: A plugin to display recent bbpress topics across the network
    		Version: 1.0.0
    		Author: Jerry Caldwell
    		Author URI: http://whosgotbooks.com
    		License: Open Source
    */ 
    function recent_bbpress_topics_shortcode() {                  
      recent_bbpress_topics(); }
      add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics_shortcode' );
    
    //Add Recent Topics to BBPress
    function recent_bbpress_topics() {
    	switch_to_blog(9);
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 7 ) ) ) { 
          bbp_get_template_part( 'bbpress/loop', 'topics' );
          }
    // Hook into action
    add_action('bbp_template_after_forums_loop','recent_bbpress_topics');
    } ?>

    Using the line “switch_to_blog(9);” works great to get the topics from site 9 to the main site. But now my problem is; it brings some unwanted behavior. The main content looks great, but the sidebars change to the format of site 9. Perhaps this has become a wordpress issue and not a bbpress issue? Perhaps I need to use code in addition to “switch_to_blog(9);” that prevents the unwanted behavior? If I need to change this to a wordpress thread, please let me know and I will. Otherwise, if you can provide a solution, that would be great.

    #148840
    Stephen Edgar
    Keymaster

    So to be clear, you feel that if I were to implement a work around for โ€˜last active timeโ€™ or wait to install BBPress version 2.6 that I can confidently run BBPress on a forum that size?

    Indeed, as you stated you need a fairly robust server though it sounds like you already have that. As bbPress 2.6 continues development I’d suggest you set yourself up a test install on your local PC and do some benchmarks and test the vBulletin importer as ~6.5 million posts will take a bit of time to import and familiarising yourself with how this works is worth knowing so you know what has to be done before you switch over your live site.

    Is โ€˜last active timeโ€™ really the bottle neck? As I understood this issue, it had to do with bbPress sharing the DB table with the WordPress posts.

    Yes, ‘last active time’ is the primary bottleneck as by default we sort topics based on the latest reply in a topic, though if a topic has no replies this is slotted in also.

    The full technical details of this are here https://bbpress.trac.wordpress.org/ticket/1925, it is not the easiest read and as there are two potential methods discussed. Primarily because of this ticket is why bbPress 2.6 is running late as there is a boat load of testing to be done to make sure we don’t break backwards compatibility.

    Lastly, do you have a target date for v2.6?

    3 weeks late ๐Ÿ˜‰

    #148839
    superaven
    Participant

    Hi Stephan,

    Thanks for your reply.

    So to be clear, you feel that if I were to implement a work around for ‘last active time’ or wait to install BBPress version 2.6 that I can confidently run BBPress on a forum that size?

    Is ‘last active time’ really the bottle neck? As I understood this issue, it had to do with BBPress sharing the DB table with the WordPress posts.

    Lastly, do you have a target date for v2.6?

    Thanks again,

    Allen

Viewing 25 results - 9,251 through 9,275 (of 26,865 total)
Skip to toolbar