Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 47,976 through 48,000 (of 64,509 total)
  • Author
    Search Results
  • #56797

    In reply to: Plugin: Avatar Upload

    dangerousape
    Member

    @wilcosky and everyone else who’s asked here and on the other thread, having cracked it this afternoon with the aid of a couple of online code snippets and my limited PHP skills, here’s how to display your avatars from this plugin in WP if you have WP and bbPress integrated and sharing the same user table.

    In your sidebar, or wherever you want to have them (or a “welcome, guest” message or whatever) appear, put this code snippet…

    <?php global $user_login;
    get_currentuserinfo();

    if ($user_login == '') {
    echo('Welcome Guest');
    } else {

    $directory = '/your/DOCUMENT_ROOT/path/to/forum/avatars/';
    $flag = false;
    $ext = array( '.jpg' , '.gif' , '.png' );

    for( $i = 0; count( $ext ) > $i; $i++ )
    {
    if( file_exists( $directory . $user_login . $ext[$i] ) )
    {

    $flag = true;
    $name = $user_login . $ext[$i];
    }
    }
    if( $flag == true )
    {
    echo "<img src="http://www.yoursite.com/forum/avatars/".$name."" />";
    }
    }
    ?>

    Note that the path for $directory is your DOCUMENT_ROOT one (you can use an ‘echo’ or ‘print’ PHP command to find it if you don’t know it, google for instructions; it’s usually something like ‘/home/user/public_html/’), while the later image source path is the standard http one. If your avatar directory is somewhere other than /yoursite.com/forum/avatars/ then, obviously, you’ll need to edit accordingly.

    If you use a different set of possible image file extensions than the usual .jpg, .gif and .png trio you’ll also need to edit the $ext array (so if you don’t allow .gifs, it’d be $ext = array( '.jpg' , '.png' ) for instance).

    #80501
    chrishajer
    Participant

    Hopefully you have a database backup since that will be the easiest way to fix this. If you used the same database prefix for WordPress and your bbPress installation, bbPress tried to install into some existing WordPress tables.

    Here is a list of the tables created by both packages:

    bbPress tables:

    forums
    meta
    posts
    terms
    term_relationships
    term_taxonomy
    topics
    users
    usermeta

    WordPress tables:
    terms
    term_taxonomy
    term_relationships
    comments
    links
    options
    postmeta
    posts
    users
    usermeta

    From that list, it looks like the following tables have the same names in bbPress and WordPress:

    posts
    terms
    term_relationships
    term_taxonomy
    users
    usermeta

    So, if you used the same prefix, I think bbPress would just happily write into those tables. I’ve never done it, so I’m not certain, but I think that’s what would happen.

    I guess it’s possible also that it just leaves the existing WordPress tables alone, but the tables are not usable in bbPress, so there could be weirdness. It’s also possible that bbPress tries to alter the tables and fails in some places, making the table unusable for bbPress and probably WordPress.

    It’s easiest to just replace the database with a recent backup. If you don’t have that, then you will have to look at the database directly with a tool like phpMyAdmin and see exactly what happened.

    #80466
    chrishajer
    Participant

    When you click “Admin” what happens?

    And did you log in at bbPress or WordPress?

    Did you try clearing your browser cookies?

    #80465

    I have this problem, always ended up concluding bbPress admin just doesn’t like login cookies set from the WordPress side. It’s a relatively common problem too, so it’s probably worth checking if it’s ever been reported to Trac.

    #32063
    weildish
    Member

    (As an afterthought, this ought to be in troubleshooting, but I can’t change it… sorry!)

    Hello. Let me introduce myself. I am an idiot.

    I installed bbPress to my server. I wanted to have user integration with my WordPress installation. Great. I ran the installation, but I knew I’d have to do a lot of things manually because of my server set up. I entered the appropriate information for the config file, and it prompted me to create the config file with certain information in it because it didn’t have permissions to do so. Exactly what I expected. I ran the rest of the setup as it should go, and when I had it commence with the installation, it said that it had installed but with some minor errors. I looked at the config file, and the keys hadn’t been saved. So I entered in the keys as they should have gone, but then I stupidly changed the blasted database prefix to the same prefix as my WordPress installation thinking for some stupid reason that I was changing the setting for WordPress integration! IDIOT! It installs again with some “minor errors,” but this time going to the address of the forum actually brought up the forum instead of the installation prompt. I mozy on over to my WordPress installation (http://ipfcubed.com&#8211; which I’ve currently set to be inaccessable to the public– you’ll see why). Now every single draft and scheduled post (as well as unapproved submissions from contributors in the community) is now visible on the main page. When I make a new post, it says the year is 1999 (EDIT: Sorry– the date is still correct, but the post’s address says that it’s 1999: http://ipfcubed.com/1999/11//. The published posts count is also off– it says I have zero published posts in the dashboard. I can see that I’ve majorly messed up the posts table. Can someone PLEASE help me fix it? Any and all suggestions are welcome! Below I’ve provided both the error message and the installation log that it gave me:

    THE LOG (errors below this):

    Referrer is OK, beginning installation…<br />
    >>> Setting up custom user table constants</p>
    <p>Step 1 - Creating database tables<br />
    >>> Modifying database: jordan_wp (localhost)<br />
    >>>>>> Table: ipf3_forums<br />
    >>>>>>>>> Creating table<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_meta<br />
    >>>>>>>>> Creating table<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_posts<br />
    >>>>>>>>> Adding column: post_id<br />
    >>>>>>>>>>>> SQL ERROR! See the error log for more detail<br />
    >>>>>>>>> Adding column: forum_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: topic_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: poster_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: post_text<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: post_time<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: poster_ip<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Setting default on column: post_status<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Changing column: post_status<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: post_position<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Dropping index: PRIMARY<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding index: PRIMARY<br />
    >>>>>>>>>>>> SQL ERROR! See the error log for more detail<br />
    >>>>>>>>> Adding index: topic_time<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding index: poster_time<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding index: post_time<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding index: post_text<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_terms<br />
    >>>>>>>>> Changing column: term_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Changing column: name<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_term_relationships<br />
    >>>>>>>>> Changing column: object_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Changing column: term_taxonomy_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Adding column: user_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_term_taxonomy<br />
    >>>>>>>>> Changing column: term_taxonomy_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Changing column: term_id<br />
    >>>>>>>>>>>> Done<br />
    >>>>>>>>> Changing column: parent<br />
    >>>>>>>>>>>> Done<br />
    >>>>>> Table: ipf3_topics<br />
    >>>>>>>>> Creating table<br />
    >>>>>>>>>>>> Done</p>
    <p>Step 2 - WordPress integration (optional)<br />
    >>> WordPress address (URL): http://ipfcubed.com/<br />
    >>> Blog address (URL): http://ipfcubed.com/<br />
    >>> WordPress cookie keys set.<br />
    >>> WordPress "auth" cookie salt set from input.<br />
    >>> WordPress "logged in" cookie salt set from input.<br />
    >>> Fetching missing WordPress cookie salts.<br />
    >>>>>> WordPress "secure auth" cookie salt not set.<br />
    >>> User database table prefix: ipf3_</p>
    <p>Step 3 - Site settings<br />
    >>> Site name: IPF³ Forum<br />
    >>> Site address (URL): http://forum.ipfcubed.com/<br />
    >>> From email address: jordanspencer@ipfcubed.com<br />
    >>> Key master role assigned to existing user<br />
    >>>>>> Username: admin<br />
    >>>>>> Email address: jordanspencer@ipfcubed.com<br />
    >>>>>> Password: Your existing password<br />
    >>> Description: Just another bbPress community<br />
    >>> Forum name: The General of Electric<br />
    >>>>>> Topic: Your first topic<br />
    >>>>>>>>> Post: First Post! w00t.<br />
    >>> Key master email sent

    There were some errors encountered during installation!

    ERRORS:

    SQL ERROR!<br />
    >>> Database: jordan_wp (localhost)<br />
    >>>>>> ALTER TABLE <code></code>ipf3_posts<code>ADD COLUMN</code>post_id

    bigint(20) NOT NULL auto_increment;

    >>>>>> Incorrect table definition; there can be only one auto column and it must be defined as a key

    SQL ERROR!

    >>> Database: jordan_wp (localhost)

    >>>>>> ALTER TABLE ipf3_posts ADD PRIMARY KEY (post_id);

    >>>>>> Key column ‘post_id’ doesn’t exist in table

    Thank you!

    #80463
    chrishajer
    Participant

    If login works normally, what do you see next to your name after you log in?

    Welcome, ChrisHajer! View your profile (Admin | Log Out)

    or

    Welcome, ChrisHajer! | Log Out

    In the first case, I am keymaster and have admin access. In the second case, I am just a member and have no admin access. I you have the first, click on Admin and you will have access to the bbPress back end.

    If you have the second, the account you’re logging in with might not have keymaster access. There was a plugin to restore keymaster access, but it was good only for up to 0.9. Not sure if it works with 1.0.

    https://bbpress.org/plugins/topic/fix-admin-access/

    If it doesn’t work, then you will need to edit the permissions directly in the database.

    #32094

    I just set up a bbpress in a subfolder of my wordpress blog /forums and everything seemed to be working fine until I tried to install some plugins.

    I would click on “Plugins” on the left side of the menu and be directed to a blank page: /forums/bb-admin/plugins.php

    I have really no idea what to do right now and could use any kind of help you guys can offer.

    #80496
    chrishajer
    Participant

    If you just want solid green, don’t use an image. bbPress uses an image tiled across because there is a gradient in it. If you just want solid color, just set the background-color of the div to whatever you want it to me, and remove the reference to the background image url.

    #80556

    In reply to: errored when installed

    chrishajer
    Participant

    bbPress is not a plugin for WordPress – you already figured that out and moved it.

    To reinstall, I would drop the tables from the database, then delete your bb-config.php and start the installation again in the new location. If you have errors after a clean install like that, post them here.

    chrishajer
    Participant

    If you think it’s a bug you should open a ticket at http://trac.bbpress.org

    #32091
    hokejzinas
    Member

    Now I try to set up my own web, so I choose WordPress. And when i try to install bbpress there is one problem

    First of all I upload all bbPress files in subdirectory /Forum

    All installation went fine, and finish succesfully, but when I try to reach my forum/admin panel (http://…&#8230; .com/Forum), than there is error message:

    “Oh dear!

    bbPress is already installed.

    Perhaps you meant to run the upgrade script instead?”

    What I should to do, to avoid it, and set up bbPress correctly?

    Thanks!

    #80555

    In reply to: errored when installed

    adtv
    Member

    sr now i want to have a new install and i move bbpress folder to wordpress (http://localhost/wordpress/bbpress) but i don’t know how can i uninstall it?

    i moved bbpress folder to wordpress and change name to forum and type http://localhost/wordpress/forum but still error:

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressforumbb-adminincludesclass.bb-install.php on line 1280

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressforumbb-includesfunctions.bb-l10n.php on line 484

    Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocswordpressforumbb-adminincludesclass.bb-install.php:1280) in C:xampplitehtdocswordpressforumbb-adminincludesclass.bb-install.php on line 390

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressforumbb-includesbackpresspomomo.php on line 171

    Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocswordpressforumbb-adminincludesclass.bb-install.php:1280) in C:xampplitehtdocswordpressforumbb-includesfunctions.bb-core.php on line 1101

    plz help me!

    #80511
    InvTrdr
    Member

    I made a div called “min-height” in the footer.php file and set it to “px” in the CSS stylesheet. With “px” it goes to the bottom of this example page http://invictatrader.com/bbpress/forum/why-watts-trading-system in Firefox but it still hangs in IE. Is there a way to set the “min-height” in the Stylesheet to something other than “px” so that the footer will always hug the bottom of the page? I tried “auto” and “%” but they did not work. Doing this pushes it down on all pages, which is not needed on all my pages as some are long enough to push the footer to the bottom.

    Thank you.

    #32089
    adtv
    Member

    plz help me.

    my error:

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-adminincludesclass.bb-install.php on line 1280

    Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-settings.php:186) in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-adminincludesclass.bb-install.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-settings.php:186) in C:xampplitehtdocswordpresswp-contentpluginsbbpressbb-includesfunctions.bb-core.php on line 1101

    For the record — I am completely and totally new to bbPress but I have a pretty good knowledge of wordpress and themes.

    I am setting up a forum for french speaking people so the interface has to be completely french BUT, I am english and need the admin area to be english. We installed version 1.0.2 thinking we could get a plugin but now I wonder if I have the right installation.

    Can anyone help me figure this out?

    Thanks!

    Helen

    #80522
    johnhiler
    Member

    Chris had some great advice for a user in a similar situation here:

    https://bbpress.org/forums/topic/problems-trying-tlo-install#post-58763

    Is it possible that there’s a missing BB in front of your constant names in bb-config.php?

    #80526
    thekmen
    Member

    I copied all the required styles from WP to the bbPress theme.

    If you look at the source of the WP end, you will see I placed 2 <–COPY–> here markers for the Page & Cat nav, then in the bbPress backend theme options you just paste that code.

    #80516
    nickaster
    Member

    Yeah, I did, but it’s still happening with new posts. I followed the instructions here, by Adam Kayce and made the changes he suggested.

    Apostrophe and or quotation marks cause backslash to appear.

    No luck at all, still got those slashes!

    #80552
    johnhiler
    Member

    It sounds like your old account was possibly Bozo’d:

    https://bbpress.org/forums/topic/bozo?replies=4#post-248

    I’ll add the tag “modlook” to this post so that a moderator knows to check your old account for a Bozo flag!

    #32087
    kirkpatrick
    Member

    I have a deep integration of bbPress 1.0.2 and WordPress 2.8.4 at riogallinasschool.org, using a heavily modified Kakumei template.

    Integration works well. I only register users from WP. Logins work from either BBP or WP. WP users appear correctly to BBP (every user can log in from both WP and BBP)..

    Logout from WP is fine regardless of where the login occurred (so, no cookie problems).

    However, when logging out from BBP (using the Kakumei “Log out” link), the logout occurs (so cookies are working), but I am redirected to a 404. The logout link is bb-login.php?logout=1. I have found that, on the other hand, the link bb-login.php?logout=0 (as typed in) works just fine — logs out, redirects back to page.

    I have hacked a solution. I don’t understand it (I haven’t yet been able to follow the use of the GET variable logout to find where it’s value is used anywhere). But in case anyone else has this problem, here’s the hack.

    The logout link is produced by the function call bb_logout_link(); in the template’s logged-in.php file.

    bb_logout_link is defined in bb-includesfunctions.bb-template.php, and effectively calls bb_get_logout_link with the same arguments. In the latter function, around line 2737, the value logout=1 is hard-coded.

    I have changed the code for bb_get_logout_link so (a) it defaults to logout=1 if logout is not specified in the call to bb_logout_link (thus the hack is non-destructive), but (b) the call bb_logout_link(‘logout=0’); overrides the default.

    This produces the working link, so the “Log out” link works.

    Here’s the code

    Old line 2737 of bb-includesfunctions.bb-template.php was

    $query = array( 'logout' => 1 );

    I changed that to the following (which works because the args were “extract”ed, so $logout has a value from the call to bb_logout_link):

    if ( $logout==NULL ) $logout = 1;  // Defaults to 'logout=1'
    $query = array( 'logout' => $logout ); // Changed '1' to '$logout'

    Then in the template’s logged-in.php, I added the argument to the call to bb_logout_link:

    bb_logout_link('logout=0');

    It works for me.

    Has anyone else has had this problem? If not, I must have broken something somewhere else — so I’d like to know.

    Can anyone explain the bug, or explain where the value of logout is used? (I’ll keep looking, and will post a followup if I find it, but I’m not expert at the subtleties of apply_filters, which appears to be the only possibility.)

    Thanks.

    #32086

    I am new to the forum, so I hope I posted it in the right place.

    I am wanting to add a simple button-link to my WordPress Blog Post template saying something like “Discuss In Forum”. I am using WordPress-bbPress-synchronization to post Blog items to my Forum. This plugin generates a link in the most recent comment that allows you to visit the correct topic for that blog post.

    I would also like to add that I do not know code, so a simplified question is this: How can I add a button to my forum for the correct topic without changing the link every time I use it? Is this something relatively easy to accomplish?

    Thanks in advance for help

    #80508
    johnhiler
    Member

    This is actually built into the core, as I understand it… users can’t post more than every ___ seconds (I think the default is 30 seconds, but I’m not sure).

    You can actually increase or decrease the “throttle time” with this plugin:

    https://bbpress.org/forums/topic/change-throttle-also-is-it-based-on-username-or-ip

    There are a few threads on throttling on the boards!

    https://bbpress.org/forums/tags/throttle

    #80507
    chrishajer
    Participant

    Not that I know of. The last time someone asked, I think we came up with a javascript solution, to prevent a second click.

    https://bbpress.org/forums/topic/double-posts

    #80544
    chrishajer
    Participant

    Have you read these threads?

    https://bbpress.org/forums/tags/this-topic-has-been-closed

    Did you remove the “pick a forum: drop down from your theme? I recall that having an affect at one point. Otherwise, have you recounted all your topics, posts, etc, in the admin?

    #80519
    chrishajer
    Participant

    What is “WordPress Sync”? Can you post the URL to that please?

Viewing 25 results - 47,976 through 48,000 (of 64,509 total)
Skip to toolbar