Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,926 through 11,950 (of 32,504 total)
  • Author
    Search Results
  • #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' ); ?>
    Robin W
    Moderator

    Sounds like you’re further through hacking the code than most people get !

    ok, just in case you haven’t already seen it, if you’re changing the template files, you should create a bbpress directory in the root of your (child)theme, and copy the files there. bbPress will then use these instead, and they won’t get overwritten by upgrades to bbpress. You should also have a child theme, and put them in there rather than someone else’s theme, and then theme updates won’t overwrite them either!

    see

    Step by step guide to setting up a bbPress forum – part 2

    and

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3

    I presume you’ve tried the code? That’s the other great thing about using the bbpress folder in your child theme, you can just delete the server version and it goes back to the default one.

    If so where is it falling over?

    can you copy the lines between

    <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    

    and

    `<?php do_action( ‘bbp_theme_after_topic_started_by’ ); ?>

    and paste them into here, and I’ll take a look

    I’m out today, but if I get a chance later I’ll then run it and debug for you.

    #146132

    In reply to: bbpress editor

    Stephen Edgar
    Keymaster

    I’m not sure of the exact issue you are having a problem with!

    The snippet of code you have looks correct via https://codex.bbpress.org/enable-visual-editor/

    I have done a fair bit of testing of WordPress v3.9/v3.9.1 and bbPress v2.5.3 compatability with the above snippet to ensure things are not broken with the new TinyMCE v4.0.x in WordPress v3.9.

    I have also used this plugin to test the above also https://wordpress.org/plugins/tinymce-advanced/

    #146131
    Stephen Edgar
    Keymaster

    The repair tools will do each and every forum, so it should be an all of nothing scenario here.

    That said this could be a theme issue also, make a copy of your themes page.php and rename it to bbpress.php (You could use page-sidebar.php or whatever template you’d prefer)

    Let me know how that works for you and we can go from there.

    #146120
    orionghf
    Participant

    Hello
    I have a problem with the editor in bbpress .. the content is displayed with the html code ..
    I am using Ultimate TinyMCE editor with the option of wpautop set off and I put this code in the functions.php of the theme to enable mce editor :


    function bbp_enable_visual_editor( $args = array() ) {
    $args['tinymce'] = true;
    return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    What could be the problem, I tried using Tiny MCE Advanced but the same problem occurred
    is this a theme problem?

    Im using :
    Wordpress version 3.8.3
    bbpress version 2.5.3
    Ultimate TinyMCE version 5.3

    Thanks

    #146119
    Stephen Edgar
    Keymaster

    Have you tried using just %postname% rather than /index.php/%postname% ?

    I have a sneaky suspicion this will be your issue.

    If you are not able to remove the /index.php/ before %postname% check your “WordPress Address (URL)” and “Site Address (URL)” in Settings -> General. If these include the /index.php/ I’d suggest you contact your web host and have these updated.

    (I only say contact your host as if you change these to something your web host doesn’t support you may lose access to your site)

    #146116
    Robin W
    Moderator

    This is done by putting some code into the footer.php

    If you’re into coding, then google ‘wordpress post footer’ and you’ll find several examples of how to put posts into footers. You’d be looking to add a parameter of ‘post_type’ = ‘topic’,

    Alternately you could try

    https://wordpress.org/plugins/nurelm-get-posts/

    and see if that works in your footer – no idea if it will !

    the code would be something like

    [get_posts post_type=”topic” numberposts=15 orderby=”post_date” order=”DESC”]

    or maybe order = “ASC” !

    #146111
    Stephen Edgar
    Keymaster

    When you use the ‘link’ here to post a link you need to include the URL and a title for the link.

    <a href="http://www.mygameslounge.com/forums/topic/has-the-price-cut-come-too-late/#post-3880" title="Have a look here for an example"></a>
    The above is the code in your original post…

    You can just paste links directly into the textbox without using the ‘link’ button

    eg. http://www.mygameslounge.com/forums/topic/has-the-price-cut-come-too-late/#post-3880

    Or using the ‘link’ button with a title:

    eg. <a href="http://www.mygameslounge.com/forums/topic/has-the-price-cut-come-too-late/#post-3880" title="Here is the title for that link"></a>

    Argh…. It is broken, kind of, once you add the link using the ‘link’ your cursor will be placed just before the </a> html to give the link a ‘clickable name’

    <a href="http://111" title="111"></a>
    ———————————————————-^

    I will go and investigate this further and see if we can make this a little clearer, easier etc.

    #146109
    JBBoY
    Participant

    <a href="http://www.google.es"></a>

    localiseorg
    Participant

    After much trial and error found that it was a plugin conflict with:

    http://codecanyon.net/item/wp-moonlander-responsive-countdown-landing-page/7229549

    Sorry for forum static :/

    #146097
    Robin W
    Moderator

    ok, try renaming your themes’s page file as per

    Step by step guide to setting up a bbPress forum – Part 1

    #146091

    In reply to: Missing Topic Intro

    Stephen Edgar
    Keymaster

    OK but the ticket is:-

    “Allow Moderators and Keymasters to see private topic content from users”

    … and strictly this issue is the converse, are you sure it’s the same problem?

    I am pretty sure it is the same problem… If the plugin you are using marks the post ‘private’ (you can confirm this by looking at the post in the wp_posts table, if the post_status for the topic is private then this is the same issue.

    Not a definitive guide but if you are logged in and you are the topic author who authored that topic I expect you will find that they can see both the topic content and the follow up reply.

    #146085

    In reply to: Profile redirect

    Robin W
    Moderator

    I presume you mean the profile in the toolbar?

    If so, I turn the toolbar off for all users apart from admin. It is ugly and takes away from your theme.

    You can then put it as a menu item see

    Layout and functionality – Examples you can use

    for details

    #146074

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @landshark I wouldn’t say you were being ignored, we are all volunteers here and if and when people have the time to help others they do, myself included.

    What is the BBCode for images on your SMF forum?

    bbPress converts these default BBCode [img] to `<img src=”…”>
    [img]http://www.google.com/intl/en_ALL/images/logo.gif[/img]
    [img=http://www.google.com/intl/en_ALL/images/logo.gif]
    If you have any custom BBCodes this will not work and you could either fix this in your SMF forum before importing or if your comfortable with MySQL you could update these in your database directly.

    #146072
    Stephen Edgar
    Keymaster

    Try making a single sidebar eg sidebar-bbpress.php and call that from your bbpress.php file and use bbPress conditionals

    bbPress Conditional Tags

    eg

    
    <?php if ( bbp_is_single_forum() || bbp_is_single_topic() || bbp_is_single_reply() ) : ?>
    ...primary sidebar code here...
    <?php else : ?>
    ...secondary sidebar code here...
    <?php endif; ?>
    
    #146066
    BeethovenWC
    Participant

    Hello.

    I made some changes in localisation (via Codestyling Localization plugin) and suddenly disappeared all my BBPress widgets from administrator’s widget menu.

    Please help.

    #146047
    familylawboard
    Participant

    Unites States and it’s territories and then one for “international” to start with.. so I’m looking at 57ish. If I get lots of members outside of the US I would eventually split the international section up as well (I don’t necessarily foresee this). I’m looking into doing what I need with s2member conditionals now. I’ll have to have people choose their state, then generate different paypal buttons for each one so they’ll get a proper s2member conditional and then I’ll set up a forum page that uses shortcode conditionals to show them just the forum I want them to see. I’m not sure this will integrate perfectly with my bbpress/buddypress setup (I’m concerned about the activity pages and such) but we’ll see. I’ll definitely watch for updates to your plugin–it sounds perfect for when it’s got an unlimited number of groups.

    Stephen Edgar
    Keymaster

    The bbPress shortcodes are:

    [bbp-login] – Display the login screen.
    [bbp-register] – Display the register screen.
    [bbp-lost-pass] – Display the lost password screen.

    I suspect some of your issues are more WordPress related rather than specificly bbPress

Viewing 25 results - 11,926 through 11,950 (of 32,504 total)
Skip to toolbar