Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,551 through 17,575 (of 32,585 total)
  • Author
    Search Results
  • #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

    Anointed
    Participant

    Thanks to AWJunkie we are proud to announce the official release of bbConverter, the only tool you will ever need to convert your current forums for use with bbPress 2x.

    Currently supported platforms:

    1. bbPress 1x

    2. Vbulletin 3x – 4x

    3. Invision Power Board

    Future platform support already in progress:

    1. PHPbb 3x

    2. Xenforo

    Platforms being considered

    1. myBB

    Download:

    http://wordpress.org/extend/plugins/bbconverter/

    Installation:

    1. Upload the bbConverter folder to the /wp-content/plugins/ directory

    2. Activate bbConverter through the ‘Plugins’ menu in WordPress

    3. Go into your WordPress admin under ‘Settings’ and choose ‘Converter’

    4. BACKUP YOUR WORDPRESS DATABASE!

    5. Choose the platform you want to convert from and fill in the database information. Click start

    6. Once the conversion has completed, visit the WordPress Admin ‘Tools’ section and click ‘Recount’

    7. Do NOT deactivate the plugin once it is finished as it is needed for user password management.

    Did I forget to mention — BACKUP YOUR WORDPRESS DATABASE BEFORE STARTING!

    Important Note:

    It is important to understand that this script is going to be modifying your wordpress database in order to bring over your forums/topics/replies/tags/ and users from your old forum setup. This means we are directly modifying your database which means backup is paramount.

    Ok, now that is out of the way, let’s get to the plugin itself.

    Each Forum sofware, whether bbPress 1x, vbulletin, or Invision Powerboard, has its own configuration file. For example vbulletin calls the file config.php

    This is the file which contains your database connection information and you need to save this information in order to fill out the plugin start screen.

    Required options:

    1. Platform you are converting from – dropdown

    2. Database server — usually localhost

    3. Database port — (example: vbulletin uses 3306)

    4. Database Username

    5. Database Password

    6. Database Name

    7. Database Table Prefix — If you installed your forum software using a prefix enter it here. ( example: vbulletin default uses vb_ ) If there is no prefix, then leave it blank.

    8. Rows Limit — This represents the number of database rows the plugin will convert during a single cycle. I would start this number at 50 or below at first. Keep in mind that forum conversion takes a huge load on the server mysql so if you are on a shared host, you may want to notify your host before running the script.

    If you are on a dedicated server with shell access, then I would suggest opening up a terminal window and monitoring the resources. You can change the ‘Rows Limit’ at any time while the script is running. I have gone as high as 2500 instead of 50 on my servers. ( don’t click stop/start as it is not needed to change the limits )

    9. Delay time — Suggested to use 1. This is the number of seconds that the server waits between the conversion cycles. It gives your server a second to catch its breath.

    Other Options:

    1. Clean — If something actually goes wrong, then you can choose to clean the database. This will effectively remove all the imported data and allow you to start the conversion over.

    2. Restart — Restart allows you to pick up where the script left off should you have the need to stop and start the process. Example is when your browser or computer window closes during the conversion process. If you close the browser during conversion for any reason, then the conversion stops.

    3. Users — You have the option of choosing not to import your users. If you are using bbPress 1x and have the forums linked to your WordPress install already, then you do not need to import users. Do not check the box. Otherwise you do want to import your users.

    Once Import is complete:

    1. Recount — Once everything is finished, then go to the wp-admin/tools and choose recount. This is going to present you with a screen full of checkboxes. Check every box and click submit. This is going to line up all the topic/replies/user posts counts etc.

    2. Keep bbConverter plugin active after conversion.

    bbConverter has a special script which will allow your users to maintain their old forum username and password. In a nutshell, when a user signs in for the first time after the forums convert, the script will check their old password, validate it, and then use the WordPress system to generate the identical password for the user in the appropriate place. This means that you need to keep bbConverter active until every single user has logged into the forums in order to maintain password management. This is not at all resource intensive, and you won’t even notice the plugin running in the background.

    That’s it your finished.

    O, did I mention… BACKUP YOUR WORDPRESS DATABASE FIRST!

    Enjoy!

    #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!)

    #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?

    #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?

    #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

    #109348
    Anointed
    Participant

    I think now that BBPress is final and out in the wild, I expect to see a number of plugins starting to hit the market quite soon. The code is a dream to work with and so easy to extend. JJ really rocked this release.

    #109207
    Brad Williams
    Participant

    Got the download, thanks man!

    I’ll be sure to not blow anything up in the process. We’ll work on MyBB so we can hopefully get it included in future version.

    I’ll keep you posted ;)

    #109315
    Jaja..
    Member

    Just curious is it this PHP code that handles the Sticky and Closing class?

    <?php bbp_topic_class(); ?>

    I was building a new forum layout and my new layout is based on lists

    < ul >

    < li > instead of tables thats why i prob. deleted that php code.

    My stupid mistake here.

Viewing 25 results - 17,551 through 17,575 (of 32,585 total)
Skip to toolbar