Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 9,251 through 9,275 (of 26,874 total)
  • Author
    Search Results
  • #149165
    robert_k
    Participant

    We just finished migrating a client’s site to use bbPress, and hit our first snag. Thread/topic subscription appears to work correctly. But subscribing to a forum does not result in any notification emails.

    I’d post a link to the site, but all forums are marked as private because it’s being used as part of an intranet.

    Versions:

    WordPress 3.6.1
    bbPress 2.5.4

    I can list the other plugins if someone suspects a conflict, but it’s a fairly long list.

    #149161
    Robin W
    Moderator

    what are you planning to count, topics, forums or both?

    and if you count a forum as subscribed, do you want to count all the topics within that forum as subscribed?

    the list of forums/topics subscribed to is held in usermeta under WP__bbp_subscriptions and an example would look like

    5682,13255,13098,13394,13456,13497,13550,13575,13636,13652,13669,13705,13750,13769,13620,14017,14222,14375,14469

    so it would count a forum and a topic each as 1.

    you could add a check to see which were topics and which forums and display separately.

    You’d access it using a function like

    
    $user_id = wp_get_current_user()->ID;
    $check=get_user_meta( $user_id, 'WP__bbp_subscriptions' ,false);
    some if statement here in case it's blank
    then set a counter to zero
    foreach ( $check as $count ) {
    increment the counter in here
    maybe one count if it's a topic and another if its a reply?
    }
    then carry on to a display
    

    Favorites are held in ‘WP__bbp_favorites’

    If you want some code to display the results, look at my topic count plugin

    https://wordpress.org/plugins/bbp-topic-count/

    Hope that’s sufficient to get you going to a solution, come back if you need more help

    #149160

    In reply to: bbpress SQL Injection

    Robin W
    Moderator
    #149144
    slayne76
    Participant

    Hi Stephen,
    thanks for the reply. I looked at the trac but it’s not strictly related, since it refers to the spam/trash/admin links on the front end.
    What I noticed instead, (and you can test yourself and let me know) is simply as this: in the backend (wordpress admin area) when a topic is in the trashcan, and you click untrash (the same thing you would do with posts, pages, custom post types when you put the in the trashcan) you get the default nonce wordpress error. You simply “CAN’T” untrash something directly inside wordpress.
    I was hoping that anyone else could try the same and give me confirmation that the issue exists (in the code i posted I was able to indentify the problem as well)

    If you, or anyone else, can confirm there is this issue, I (or you, or whoever wants to) can open a ticket in the trac so it gets fixed asap πŸ™‚

    #149139
    Robin W
    Moderator

    The issue is getting wordpress search to display the results in a meaningful way (ie bpress style)

    This plugin which is old claims to do this, but there is a warning that it shows private forum results, is unless all your forums are open I wouldn’t use it.

    https://wordpress.org/plugins/search-bbpress/

    Try it and see if it works

    #149133
    acornale
    Participant

    At the moment, I have a standard WordPress search box on the top of my page. It seems to return posts and pages but not bbpress forums or topics.

    I can use the bbpress shortcodes to display a forum search but I don’t want two search boxes.

    Is there a way to extend the native wordpress search so it returns posts, pages, topics and forums?

    At the moment, it seems I can search bbpress OR search wordpress posts / pages. I want to search both?

    #149131
    Pavle123
    Participant

    So this is the plugin I use https://wordpress.org/plugins/genesis-simple-sidebars/

    But these sidebars are not being used for bbPress forum.

    For bbPress I use this setup by Genesis Theme.

    And not sure about conditionals (sorry) but here is the setup.

    Not sure what is causing these “login expires” thing. Would really love to solve it, as its a bit annoying to non admins (Note for admins login does not expire).

    #149112
    Robkk
    Moderator

    Thanks so much. I am not an expert in this, so I will wait until Sunday.

    haha im no expert , im just some guy helping out people on here the best i can

    -Login/Register buttons above the forum

    quicksprout has ajax login and its also in a popup window

    so if you want that install wp-modal-login

    after that copy your content-archive-forum.php to your child theme

    and make sure that is has this code inside of it , heres a snippet

    <?php do_action( 'bbp_template_before_forums_index' ); ?>
    
    	<?php if ( bbp_has_forums() ) : ?>
    	
    	<?php if ( is_user_logged_in() ) {
    
    } else { ?>
    
    <div class="bbp-modal-login"> 
    
     <?php add_modal_login_button( $login_text = 'Login', $logout_text = 'Logout', $logout_url = 'http://sitename', $show_admin = true ); ?>
     
     </div>
     
       <?php
    };
    ?>
    
    		<?php bbp_get_template_part( 'loop',     'forums'    ); ?>
    
    	<?php else : ?>
    
    		<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
    
    	<?php endif; ?>

    style the link to whatever you want with custom css
    here is a template

    .bbp-modal-login a.login.wpml-btn.login-window {
    float: left;
    padding:5px;
    color:#fff;
    background:#333; 
    text-decoration:none;
    text-transform:uppercase;  
    }

    and like i said you could also do the shortcode version too

    nice round images of members

    i saw your site , and see you already have this

    images for read/unread posts

    if you want the images here

    the whole functionality of the unread posts on their forums is like 2 unread posts plugins from the wordpress plugin respository mixed together

    https://wordpress.org/plugins/bbpress-mark-as-read/
    https://wordpress.org/plugins/bbpress-unread-posts/

    i cant really help on this

    statistics at the bottom

    this should be the bottom of your content-archive-forum.php

    	<?php do_action( 'bbp_template_after_forums_index' ); ?>
    
    </div>
    
    <?php echo do_shortcode("[bbp-stats]"); ?>

    to style the bbpress statistics shortcode put content-statistics.php into your child theme

    this should be your entire content-statistics.php

    <?php
    
    /**
     * Statistics Content Part
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Get the statistics
    $stats = bbp_get_statistics(); ?>
    
    	<?php do_action( 'bbp_before_statistics' ); ?>
    	
    	<div class="bbp-stats">
    	
    	<ul class="bbp_stats">
    
    	<li> <?php _e( 'Users', 'bbpress' ); ?></dt>
    		<strong><?php echo esc_html( $stats['user_count'] ); ?></strong></li> 
    
    	<li> <?php _e( 'Topics', 'bbpress' ); ?></dt>
    		<strong><?php echo esc_html( $stats['topic_count'] ); ?></strong></li> 
    
    	<li> <?php _e( 'Replies', 'bbpress' ); ?></dt>
    
    		<strong><?php echo esc_html( $stats['reply_count'] ); ?></strong></li> 
    		
    		 </ul>
    		 
    		 </div>
    		
    	<?php do_action( 'bbp_after_statistics' ); ?>
    
    </dl>
    
    <?php unset( $stats );

    add this for custom css

    .bbp-stats .bbp_stats {
        list-style-type: none;
        display: block;
        text-align: center;
        margin-left: 0px;
        float: none;
    }
    
    .bbp-stats .bbp_stats li {
        margin: 0;
        display: inline-block;
        padding: 5px;
    }

    β€œNew Thread button”

    this is just a drop link , example of a drop link would be to put #new-post at the end of the url of this topic and you will see that you will end up at the new topic/reply form

    copy content-archive-topic.php into your child theme right now then

    ILL tell you the rest when im done , because right now im having some trouble

    #149087
    Stephen Edgar
    Keymaster

    I just added a patch for this, so unless someone comes with a reason to not include this it will be included in bbPress 2.6.

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

    #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;
    }
Viewing 25 results - 9,251 through 9,275 (of 26,874 total)
Skip to toolbar