Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,476 through 17,500 (of 32,500 total)
  • Author
    Search Results
  • #109586

    In reply to: disabling breadcrumbs

    binarymoon
    Participant

    I had a feeling you would say that. I was hoping there was a way of overriding the function/ some include file somewhere. Oh well – thanks for clarifying :)

    #109585

    In reply to: disabling breadcrumbs

    Anointed
    Participant

    There is no ‘easy’ way to remove the breadcrumbs as they are included in a number of templates. You would need to go through each of the bbPress templates and remove the following:

    <?php bbp_breadcrumb(); ?>

    #109156
    Anointed
    Participant

    wrap the initial topic function output in something like the following:

    if ( ! isset ( $GLOBALS['paged'] ) or ( $GLOBALS['paged'] < 2 ) )
    {
    // run your code
    }

    says if not paged, then run code…

    #109614
    amirsaam
    Member

    You can add this query for Total # of Topics Starded

    $query2 = "SELECT COUNT(*) FROM ".$bb_table_prefix."posts WHERE poster_id = $user_id AND post_status = 0 AND post_position = 1";
    echo "<li>Topics: ".$bbdb->get_var($query2)."</li>";

    #40172
    amirsaam
    Member

    I don’t like to for anything use plugin cause of that I coded this code to show any user total number of posts in topics :)

    <?php
    global $bb_table_prefix;
    $user_id=get_post_author_id();
    $query1 = "SELECT COUNT(*) FROM ".$bb_table_prefix."posts WHERE poster_id = $user_id AND post_status = 0";
    echo "<li>Posts: ".$bbdb->get_var($query1)."</li>";
    ?>

    So enjoy it :D

    EDIT: I forgot this! You must put it in post.php where the other post author information is :D

    Ed
    Participant

    haha. i think you need to give some more details, if you hope for any help :)

    #109611
    amirsaam
    Member

    Oops! A $ is missed in the code :-D Use it bbp_topic_is_open( $bbp_post->bbp_topic_id )

    And again I’m not sure about this code that work or no!

    And, your welcome :-)

    #109610
    common8308
    Participant

    @7i7GRiFFiN Thank you again! :)

    #109609
    amirsaam
    Member

    Nope, that function is absolutely diffrent and not used in bbPlugin :)

    #109607
    amirsaam
    Member

    comments_open() function have a sister function that used in bbPress or the bbPlugin. They looks like topic_is_open( $bb_post->topic_id ) (bbPress) or bbPlugin (I’m not sure!) bbp_topic_is_open(bbp_post->bbp_topic_id)

    I repeat that I’m not sure about bbPlugin!

    #109288

    In reply to: User Registration

    goldmember
    Member

    dmx, or anyone else, if you find the answer, please let me know. dying to make this happen ;)

    #109601
    amirsaam
    Member

    Thanks dude about answer and the address. I read them but I’ve question now, if we integrate our bbPress with WordPress can we use some functions from WP?

    I mean if we do integrate after that in theme designin’ can we use a function like this? <?php get_wp_header(); ?> (It’s jus’ a example, Im not sure about the code!)

    #40163
    amirsaam
    Member

    umm, I wanna ask exactly what is BackPress?!?

    I got some info about it but I’m not sure, I’ll be in doubt of you if explain it for me :)

    rossagrant
    Participant

    Wow, looks awesome! I need to do a conversion in buddypress from the old group forums to standalone BBpress 2.0.

    Is the procedure the same as converting BBpress 1.0?

    Would love to see an upgrader built into buddypress 1.5!

    ;)

    #109575
    Andre
    Participant

    Assuming you are using bbPress 2.x you can accomplish something similar with shortcodes. Create a page with the shortcode and change the WP setting to showing a page instead of the blog as the homepage.

    #109360
    amirsaam
    Member

    Before anything read this all:

    bbPlugin Shortcodes | bbPlugin Theme Compatibility

    #40155
    nthfamous
    Member

    This may or may not be the right forum for this, but technical support seemed the wrong place. Anyway…

    I have a template I am using for my website called Habitat (http://www.kriesi.at/themes/habitat/). It allows me to create a new page and use the template in full width without the sidebar. Now… I -can- use shortcodes to put my forum in a new page and set the template without the sidebar, but I cannot find a shortcode for the forum root (I have three categories) and each subsequent link click takes me to the /forum URL and plops the sidebar back in.

    To whit, I cannot find an option anywhere in the bbpress plugin that allows me to set the template to use.

    Anyone shed some light on this? TIA.

    #107341
    xanderr
    Member

    Hello,

    Thanks John.

    Is there a shortcode to get the latest topics from a specific category (forum). If there isn’t, how to get it?

    Xander

    #108304

    In reply to: bbPress Language Files

    amirsaam
    Member

    Dude you mean bbPlugin or bbPress (StandAlone vr.)?

    For the StandAlone one you must put your language files into my-languages and for bbPlugin put them into WordPress language directory with name like bbpress-fa_IR.po or .mo. themes and plugins have a directory for translations, if have not code a textdomain for it :)

    #108302

    In reply to: bbPress Language Files

    amirsaam
    Member

    Nope @Vayu. He mean bbPress language not theme or plugin.

    Language files must upload in a directory in bbPress root called my-languages

    (Also you must look at the post date: 1 month ago!)

    #100434
    amirsaam
    Member

    @BJ

    Yeah dude it’s StandAlone version not the bbPlugin.

    I think @ootes worked on it very much

    I work on Persian bbPress support site, I would like to have some discussions with you @BJ :) Can you gimme your mail address?

    #105534
    amirsaam
    Member

    @BJ

    Yeah dude it’s StandAlone version not the bbPlugin.

    I think @ootes worked on it very much

    I work on Persian bbPress support site, I would like to have some discussions with you @BJ :) Can you gimme your mail address?

    #109236

    In reply to: Hosting

    Jonathan
    Member

    If your website is really utilizing 150GB’s of bandwidth per month, moving to another shared hosting provider, such as HostGator, unless to a dedicated, won’t do much good.

    1). What are you currently hosting your website on and with who?

    2). If you’re on a VPS or Dedicated Server:

    – – 2a). What are the specs? (i.e. CPU, RAM, etc)

    – – 2b). Have you attempted to optimize Apache/MySQL?

    – – 2c). Are you running any sort of caching plugin or OP-Code Cache (i.e. APC, xCache, etc)?

    The more details you can provide the better :).

    #40144
    Jonathan
    Member

    We’re using WordPress 3.2.1, BuddyPress 1.5, and bbPress 2.0 and seem to have run across an issue with the forum home permalink not being correctly set, or so it seems. Perhaps I’m missing something :). Any help is greatly appreciated!

    The Code

    We’re attempting to simply output the basename of the permalink and use that in an IF/ELSE statement using the following to generate:

    <?php

    $gettheslug = basename(get_permalink());

    ?>

    The Problem

    For the purpose of this post, we’ll say that we have bbPress set to http://site.ext/community/. We need to grab ‘community’ from the URL, which is what the code above ‘should’ do, but doesn’t. Instead, it’s grabbing the basename for the last forum we created and continues to update as we create new forums/categories.

    To get the basename, we’ve simply echo’ed out $gettheslug in the header. This works for all other areas of the website, except with the bbPress portion which is what’s so confusing :).

    Perhaps we’re doing something wrong, perhaps I’m doing something wrong. As above, any help is much appreciated.

    #108431
    darkvander
    Member

    Ok Guys, I had the same problem.

    As John James said, it’s a theme problem

    I my case the value of modest_archivenum_posts = 5 and now =50 :) and that way my trouble is gone.

    I hope you can find your solution

    Adios Amigos

    @darkvander

Viewing 25 results - 17,476 through 17,500 (of 32,500 total)
Skip to toolbar