Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,926 through 11,950 (of 32,521 total)
  • Author
    Search Results
  • #146263
    Robin W
    Moderator

    @pasquale-galasso

    Thanks, glad you are finding it useful. The unlimited groups version is on it’s way, I’ve coded it, but just need to tidy up the user interface.

    bbPress have said that they intend to have groups in the core product at some stage, but I have no idea on timescales.

    #146259
    Stephen Edgar
    Keymaster

    Cool, I will take a closer look in the morning, it’s late here down under and the brain is to fuzzy to dive in right now 😉

    Can you confirm which importer you used, did you import using the vBulletin3 or vBulletin importer and what is the exact version of the vBulletin forum you are importing from. I’ll try to take a closer look at those BBCodes and also make any updates as needed.

    #146254
    Pasquale Galasso
    Participant

    @robin-w Your plugin is great, so great. I wonder if I will soon be inserted into the native code bbPress

    #146250
    Juan
    Participant

    I migrated the attachments succesfully. You must edit the script:

    Change these lines (6 and 7) with the correct path:

    require( '/home/user/public_html/wordpress/wp-load.php' );
    require( '/home/user/public_html/wordpress/wp-admin/includes/image.php' );

    Add the data of your site and database (lines 10 to 14):

    $host="localhost";
    $uname="db_username";
    $pass="db_username_password";
    $database = "";
    $site_url = 'http://www.example.com';

    In line 28 change j25_kunena_attachments to the same name as your attachments table name.

    I’m sorry for the trouble but, as I said, the script is in very early stage but made the job for me.

    #146237
    Robin W
    Moderator

    Actually

    <p> <?php if (!is_user_logged_in()) echo do_shortcode ('[bbp-login]') ; ?>
    

    would be a better line of code, as then someone logged in with a spectator role would not see the login prompt

    #146232
    Robin W
    Moderator

    If you want a quick solution to this

    create a directory within your theme called bbpress

    ie wp-content/your-theme-name/bbpress

    And into this folder copy the following file

    bbpress/templates/default/bbpress/form-reply.php

    Then alter this file to have a new line 175 as follows

    <p> <?php echo do_shortcode ('[bbp-login]') ; ?>
    

    so that

    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    		<div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    	</div>
    	</div>
    

    becomes

    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    		<div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    		<p> <?php echo do_shortcode ('[bbp-login]') ; ?>
    		</div>
    	</div>
    

    Save this file, and bbpress will use this and a login panel will be displayed.

    Robin W
    Moderator

    ok, it could be coded, but is not available as far as I know.

    Asynaptic
    Participant

    @tieptoep thanks, I’ve taken a look at the trac and it seems to definitely have to do with permalinks but I’m not sure if the creator of the ticket (alexvorn2) is referring to the same solution as I and others are asking for (see above examples).

    for example, alexvorn2 has this as an example:

    1) pretty url: http://example.com/forum/subforum/custom_topic_title
    structure will be: http://example.com/%forumparentsnames%/%topicname%

    But the second line doesn’t seem to correspond to the permalink structure shown in the first line. Specifically, he seems to have left out the slug for the subforum! Or maybe I’m missing something.

    It is very disappointing to see JJJ throw this in ‘future releases’ which is basically where trac tickets go to die. And to change the priority: “Priority changed from normal to low” and “Severity changed from normal to minor” and ” Type changed from defect to enhancement” when in fact I and many others would argue there is nothing that is, has been and will continue to be the highest priority ticket (until it is fixed) and there is nothing more severe and this is most definitely a defect, *not* an enhancement.

    These changes sadly tells us, the users, just how much we have failed to communicate to the devs (or how much they have failed to actually listen to us – or a combination of both).

    As for attempts to solve this, @dbungard shares some code in the previous page of this very thread. As well, I linked earlier to several other past attempts at the solution. I think user @mr_pelle was the developer of the bbPress nicer permalinks plugin but that was many years ago (3+?) and he doesn’t seem to be active on the forum. As well, the plugin is nowhere to be found.

    There has been no feedback or response from devs on any of this code, even when another user specifically asks for that in the past page.

    This issue is so fundamental to the very core of bbPress functioning that I question whether it is something that can be hacked together with a plugin, bailing wire and a convoluted .htaccess file.

    #146220
    lagrou
    Participant

    I’ve created a Github account so I can share my code so far.
    https://github.com/Lagrou/wps_extends_bbp_converter

    First issue (question) is, why the converter doesn’t find forums. Or at least doesn’t convert them.

    Second, WP Symposium stores topics and replies in the same table, and they belong to a category stored in another table. How do I mimick, using the converter, the selection of topics of a given category:

    $sql = "SELECT * FROM ".$wpdb->prefix."symposium_topics WHERE topic_parent = 0 AND topic_category = %d";
    $wps_topics = $wpdb->get_results( $wpdb->prepare( $sql, $cid ), ARRAY_A );

    Where $cid is the category/subforum id.

    Third and likewise, topics don’t have parents, while replies (obviously) do. So how to get, for a given topics, the list of replies WHERE topic_parent = %d.

    And fourth, WP Symposium does not store the number of topics / replies. How do I get count($wps_topics)

    Thanks…

    #146219
    sicky_brazz
    Participant

    Hi, I am using the following code to hide my menu/navbar and search form from my site.

    ‘/* Remove nav bar and search form */
    .page #nav-bar {
    display: none;
    }

    .page #s {
    display: none;
    }’

    It seems to work wonders on all pages except BBPress pages.

    Now when I set my permalinks to “Default” the navbar and search form are removed on bbpress pages, but when I have them to anything else, the navbar shows up again (but only on bbpress pages).

    Does anyone have an explanation for this?
    Or can someone point me in the direction of how to remove it without having to have “Default” permalinks set (which I can’t due to buddypress)

    #146214
    Robin W
    Moderator

    sorry it was the weekend, and all the helpers on here are volunteers on have jobs and a social life to lead as well 🙂 please be patient.

    The coding for this is quite complicated, but I’d suggest you start by looking at the bbp_has_topics function in

    bbpress/includes/topics/template

    this will give you a lot of the code for pagination

    Robkk
    Moderator

    This is what i used

    <div class="bbp-usr-location"><?php
    $bpProfileField = bp_get_profile_field_data( 'field=Location &user_id=' . get_the_author_meta( 'ID' ) );
    if ( empty ( $bpProfileField) ):
    ?>
    <p></p>
    <?php else: ?>
    <p><?php echo 'Location: ' . $bpProfileField; ?></p>
    <?php endif; ?></div>
    Robkk
    Moderator

    Nevermind i got it to work , plus that code i just posted is all out of wack , just some copy and pasting from other functions that worked

    #146203
    Stephen Edgar
    Keymaster

    Except for the default BBCode [b], [i], [u], [img], [url] etc the vBulletin importer only has [quote], [mention], [youtube] BBCodes added at this time. You would need to manually edit your topics and replies for any SoundCloud embeds.

    To test this any further I will need your vBulletin version you importing from so I can take a closer look, firstly to see if I have a copy of a vBulletin ‘version xyz’ to test against and then to see if I can see any reason why it would not be importing everything correctly.

    Robin W
    Moderator

    Not sure if this parameter is there ie set or just blank in buddypress

    However you can test if empty – empty meaning not set or set to 0 or set to “”

    by changing

    echo 'Location: ' . $user_location; 
    

    to

    if (!empty($user_location)) {echo 'Location: ' . $user_location; }
    
    #146200

    In reply to: bbpress editor

    Stephen Edgar
    Keymaster

    I would suggest you upgrade to WordPress 3.9.1.

    Ultimate TinyMCE is NOT compatible with WordPress 3.9.x and is being replaced by WPEdit (it is worth reading the info via that link and the alternatives it offers)

    I would suggest switching to Twenty Thirteen or Twenty Fourteen themes and disable all your plugins except bbPress to narrow things down.

    Once you see bbPress working with the code in your original post to enable bbPress Visual Editor then go from there… Enable your theme, does it still work? Next try one of the TinyMCE plugins with the default options, does it still work? Now update any settings in that plugin, does it still work? Now enable your other plugins one by one, does it still work?

    #146195
    Robin W
    Moderator

    May be as simple as the order that the plugins are loading.

    see

    Layout and functionality – Examples you can use

    No. 6

    you could also put the word !important after the change to prevent bbpress overriding it eg

    /* Remove nav bar and search form */
    .page #nav-bar {
    display: none !important;
    }
    
    .page #s {
    display: none !important;
    }
    
    #146194
    Stephen Edgar
    Keymaster

    I just had a quick look at the attachment migration script and you would need to change Line 28 and rename the table name j25_kunena_attachments to the same name as your attachments table name of your original Kunena database.

    Robkk
    Moderator

    im trying to put buddypress x-profile fields in bbpress on loop-single-reply.php after the author role and avatar

    I have created one called Location

    my function to display it is

    <div class="bbp-usr-location"><?php
    if ( bbp_is_topic_anonymous() ) {
    		echo "<br>Guest Post"; }
    		elseif ( bbp_is_reply_anonymous() ) {
    		echo "<br>Guest Post"; }
    		else {
      $user_location = xprofile_get_field_data( 'Location', ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) );
       echo 'Location: ' . $user_location; }
    ?></div>

    I just want to not display it if its not filled in on buddypress

    Any Help?

    #146177
    tavOu
    Participant

    Hello All !
    I need to list the last 8 topics in this widgets, and have a link to the next page of 8 topics, and so on.It would be like a pagination for every 8 topics.
    I think the file is widgets.php in lines :

    case 'newness' :
    default :
    $topics_query = array(
    'post_type' => bbp_get_topic_post_type(),
    'post_parent' => $settings['parent_forum'],
    'posts_per_page' => (int) $settings['max_shown'],
    'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
    'ignore_sticky_posts' => true,
    'no_found_rows' => true,
    'order' => 'DESC'
    );

    I know that ‘posts_per_page’ show the last topics, in my case 8, but i dont know how to access to 8 before.

    Any help or idea please?

    #146168
    sicky_brazz
    Participant

    Hi, I am using the latest versions of both WP and BBPress.

    My problems are that when I try to add stuff to my style.css, my BBPress pages just don’t seem to follow them…

    Here is an example:
    >> Remove menu/nav bar and search form from all pages (style.css)

    /* Remove nav bar and search form */
    .page #nav-bar {
    display: none;
    }
    
    .page #s {
    display: none;
    }

    The code works on all other pages (BuddyPress ones included), just not any BBPress pages..
    Does anyone have any ideas as to why?

    I am no coder or expert so this has totally thrown me lol.

    Asynaptic
    Participant

    @tieptoep No problem. I’m glad it is clear now.

    It is way beyond ‘inelegant’. It is beyond baffling why it hasn’t been fixed yet. And beyond frustrating that the devs strongly push back instead of simply acknowledging the issue and working on fixing it.

    Unfortunately I’m not a coder and have no idea how to even open a ticket or word it properly in this context. But as a user, it is self-evident that the way bbPress uses permalinks needs fixing.

    Also, through this thread and many others, it is also very obvious that this is a very important and irritating issue that has been brought up going back as far back as 7 years!

    As I mentioned, there is or was a plugin which claimed to fix the issue. I don’t have access to the code and even if I did, there is a chance that the code is now out of date with bbPress’ core development since the plugin would be a few years old.

    All I can do is to clearly state the case for permalinks, their importance and request that it be placed at the highest priority. I hope you and other bbPress users add their voice so that the devs take this seriously.

    Unfortunately, there is no way to prioritize issues in bbPress development. Other projects have a way to measure the community’s voice in terms of what needs to be fixed first. For example, here’s symposium’s page:

    http://www.wpsymposium.com/voting/

    Both buddypress and bbpress need this functionality. Like yesterday. That way issues like this do not fall through the cracks.

    Of course, this is assuming that the dev team is serious about creating a 2 way communication channel with the wider community rather than a 1 way.

    As Matt M. mentioned in a recent video, he measures the success of wordpress in general by how well and fast it reacts to the needs of its community. I would suggest the same applies to bbpress and buddypress.

    Robin W
    Moderator

    you were pretty much there

    the following, which is just two lines nicked from elsewhere and joined by a ‘by’ text should do what you want

    <span class="bbp-last-post-by-author"><?php printf( __( 'Last Post: %1$s', 'bbpress' ),bbp_get_topic_freshness_link( array() ) ); ?></span>
    <?php _e(' by ', 'bbp'); ?>
    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
    

    Come back if that’s not what you wanted !

    #146139

    In reply to: bbpress editor

    orionghf
    Participant

    Hi
    yes this is what Im using .. but Im still using WordPress 3.8.3
    The MCE editor is displaying perfectly and I can use all its features .. but when I save the content from the front end, the content is displayed with the html codes ..
    Could it be a theme problem?

    Robkk
    Moderator

    Yeah i have been using a child theme,

    I havent put every file from bbpress in my child theme

    Im just making small changes to the template files and only throw in the ones that i changed into my theme.

    And i use my themes custom css plugin for css changes.

    I really dont have anything to debug, i just have bits of php to try to make my desired function

    Like i know bbp_get_topic_freshness_link , shows the time ago of the last post

    And that <?php bbp_author_link( array( 'post_id' =>bbp_get_topic_last_active_id() gets ahold of the author of the last post in a topic

    <?php printf( __( 'Last Post: %1$s' lets me have my custom text with the attributes from the function

    I just dont know how to put that all together to get the function that i want

    Right now all in my function is

    <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    
    <span class="bbp-last-post-by-author"><?php printf( __( 'Last Post: %1$s', 'bbpress' ),bbp_get_topic_freshness_link( array() ) ); ?></span>
    
    			<?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
Viewing 25 results - 11,926 through 11,950 (of 32,521 total)
Skip to toolbar