Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,276 through 26,300 (of 32,495 total)
  • Author
    Search Results
  • #70096

    I’m not sure it fixed everything. Or at least not with root cookies.

    If I log in via bbpress I’m logged into bbPress AND WordPress Admin but NOT WordPress user. If I try, subsequently, to login as WordPress user, it acts like I’m logged in, but if I go back to a regular page, it doesn’t work. If I then logout on bbPress, I can log in to WordPress. This happens in reverse as well. I can’t be logged into BOTH at once.

    The ‘fix’ to that was to add this to wp-config.php

    // Cookies
    define('COOKIE_DOMAIN', '.domain.net');
    define('COOKIEPATH', '/' );

    Which has the even WEIRDER side effect of logging me out between apps. Log in to bbPress, fine. Log in to WordPress, logged OUT of bbPress. Ad nasuem.

    The ‘fix’ to that is to disconnect

    $bb->logged_in_cookie = 'wordpress_logged_in';

    Which is sooo wrong.

    FWIW:

    #69681

    what variables can you retrieve from the global $forum variable?

    #4431

    Okay, so here’s how the story goes…

    I downloaded bbPress 1.0-alpha3 because I’m using WordPress 2.6.3…however I’m not sure if that even matters since I don’t really want to integrate the two.

    I removed all the installation files from the bbpress folder, and placed them into my /forums directory. I did this because I wanted my forums to be in http://www.beardownarizona.com/forums, not beardownarizona.com/forums/bbpress.

    Once all the files were installed via FTP into my /forums directory, I went to the site and proceeded with the installation. The first screen said “There doesn’t seem to be a bb-config.php file. This usually means that you want to install bbPress. ” so I continued and put in my database name, username, password, along with my host.

    When I hit “save database configuration” I got a ridiculously long error message:

    Warning: fopen(D:Hosting3362703htmlforums/bb-config.php) [function.fopen]: failed to open stream: Permission denied in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1019

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1025

    Warning: fclose(): supplied argument is not a valid stream resource in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1031

    Warning: chmod() [function.chmod]: No such file or directory in D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php on line 1033

    Warning: Cannot modify header information - headers already sent by (output started at D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php:1025) in D:Hosting3362703htmlforumsbb-includesfunctions.bb-core.php on line 842

    So instead of hassling with that, I created my own bb-config.php file, and uploaded it to the /forums directory. This allowed me to complete the entire installation. However it had one minor error, which said “Key master email not sent!” The installation log is below:

    `Referrer is OK, beginning installation…

    Step 1 – Creating database tables

    >>> Modifying database: beardownforum (beardownforum.db.3362703.hostedresource.com)

    >>>>>> Table: bb_forums

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_meta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_posts

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_terms

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_relationships

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_taxonomy

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_topics

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_users

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_usermeta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    Step 2 – WordPress integration (optional)

    >>> Integration not enabled

    Step 3 – Site settings

    >>> Site name: Bear Down Arizona Forums

    >>> Site address (URL): http://www.beardownarizona.com/forums/

    >>> From email address: brad@beardownarizona.com

    >>> Key master created

    >>>>>> Username: beardownarizona

    >>>>>> Email address: brad@beardownarizona.com

    >>>>>> Password: (password removed)

    >>> Description: Just another bbPress community

    >>> Forum name: Bear Down Forums

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Key master email not sent!

    There were some errors encountered during installation!’

    Now when I go to my forums page at http://www.beardownarizona.com/forums, I get a “page not found” error. I’ve double checked my installation files, and they are all there, so I don’t think I’m missing any files…

    I’m just at a complete loss for how to proceed. I just want to install the forums on the page, I’m not worried about integration or anything like that, since I don’t really have “users” on my main site. The forums are going to be used for that purpose.

    If it makes a difference, I’m using godaddy as my host…If you have any ideas for how I can fix this, please let me know!!

    Thanks!

    #69664

    In reply to: bbPress Facebook page

    Sam Bauers
    Participant

    @johnnydoe

    That would be hard to keep up with.

    We rely on plugin devs to look after their own code basically. Expect renewed interest when the final 1.0 is released.

    #70077

    In reply to: Arabic Translation

    Sam Bauers
    Participant

    Except unicode for usernames, that will be fixed by allowing unicode display names in bbPress 1.0

    #66200
    Sam Bauers
    Participant

    We do unicode display names in bbPress 1.0, but not usernames.

    #69988
    Sam Bauers
    Participant

    $_SERVER['REQUEST_URI'] can be dodgy, _ck_’s code cleanup is probably a little safer.

    #70028
    Sam Bauers
    Participant

    @johnjamesjacoby

    The login forms don’t pass around nonce values generally, so it should be of no concern.

    What happens as of right now is that the role map you setup in the admin area only gets applied to new registrations either when you save the changes on that role map form or when the new WordPress user who is missing the role in bbPress logins in through bbPress.

    On your site as it is right now this never occurs because you force all logins through WordPress. Just now in trunk I have changed that so that just visiting the bbPress site with a valid cookie will set your role in bbPress.

    I suspect that all the problems with loging out in your case are going to come down to having a bunch of stuff manually set in your wp-config.php and bb-config.php

    Here’s what I think you should do…

    1. Update bbPress to the latest trunk version
    2. Remove any hardcoded settings in bb-config.php and wp-config.php WRT integration
    3. Install this brand spanking new plugin (get the trunk version for the moment) http://svn.wp-plugins.org/bbpress-integration/trunk/
    4. Recheck your integration settings in bbPress – don’t hardcode anyting into bb-settings.php
    5. Configure that plugin in WordPress
    6. Copy the wp-settings.php lines specified in that plugin to wp-config.php (probably only one line for you)

    Let us know how that goes.

    #70026
    ganzua
    Member

    OK, this is fixed in trunk now. Just a stupid error on my part in a new function.

    I’ll see if it’s possible to re-release the 1.0-alpha-3 or maybe just bump up to 1.0-alpha-4.

    So, what did it happen? Is it the fix already included in the download right now? I’d like to give it a try :)

    #67833

    In reply to: Get Current Forum ID?

    I modified your code to the following and it worked:

    <li<?php if ($current_forum_id=get_forum_id()) {echo ” class=’on'”;} ?>>

    Thanks a lot CK, much appreciated.

    #69915
    watson
    Member

    Thanks both of you for answering… This is just such a great forum :)

    #69987
    Trent Adams
    Member

    I will be around more again now ;) Been a busy year! Thanks for the cleanup code _ck_ and I will test it tomorrow. Hi back to everyone ;)

    Trent

    #69986
    _ck_
    Participant

    Untested code cleanup (just for fun – untested)

    function force_login_init() {
    if (!bb_is_user_logged_in() && !preg_match("/(bb-login|bb-reset-password|register|xmlrpc).php/s",$_SERVER['REQUEST_URI'])) {
    nocache_headers();
    header("HTTP/1.1 302 Moved Temporarily");
    header("Status: 302 Moved Temporarily");
    bb_safe_redirect( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
    exit;
    }
    }

    Good to see you Trent, don’t be a stranger!

    #67832

    In reply to: Get Current Forum ID?

    _ck_
    Participant

    Why not just do it all in the li:

    <li<?php if ($current_forum_id==get_forum_id()) {echo " class='on'";} ?>>

    #70025

    Thanks for the response and it clarifies all of my questions.

    Regarding nonces, the catch twenty-two with them would be if logging in and logging out of either/or BBP or WP don’t both affect both, or if adequate traps aren’t placed to disallow one or the other.

    Example is visible at my live test site http://www.delsolownersclub.com. If you’d like to try this, register yourself and use the invite code “bbpress”. (Registering makes you a WP contributor, and I need to assign your membership role in the BBP admin manually as of right now.)

    When you’re in the forums, the logout link won’t work, because the login through WP generates a nonce that BBP doesn’t know and can’t find. Because the nonces are by design different, if I login through WP and try to logout through BBP, WP will pitch a fit without the correct nonce. Make sense or am I off track here?

    #69912

    I first tried switching DESC to ASC, and it didn’t change the result, which was 1.

    #69911
    _ck_
    Participant

    You mean on the regular topic page? Yeah it would just add one query.

    On a low to medium activity site it should be okay.

    I think there’s an index on topic_time so mysql shouldn’t have too much of a workout.

    The >= switch aroo may be logic confusion on my part between whether to use DESC or ASC.

    One makes the list start with the current topic time, the other way makes it end with the time.

    In theory the count should be easier with <= and if you have to change DESC to ASC.

    #69910

    I had to change topic_time<='$topic->topic_time' to topic_time>='$topic->topic_time', but it works beautifully now.

    I’m thinking about applying this mod to the regular topic view. You told me in a different thread that it should be fine if I’m only using this extra DB query in the Edit screen – do you think it would be unwise to use it in regular topic views?

    #69909
    _ck_
    Participant

    Oh that’s a simple bug, I forgot the quotes around the time:

    $query="SELECT count(topic_id) as position FROM $bbdb->topics WHERE forum_id=$forum_id and topic_time<='$topic->topic_time' ORDER BY topic_time DESC";
    $position = $bbdb->get_var($query);

    #69243

    In reply to: New installation

    You’re exactly right!

    I added my host (straight from wp-config.php) and it worked…BUT…it didn’t write bb-config.php on it’s own…it gave me some error messages, but it also provided the code for me to make the bb-config.php on my own…

    I opened notepad, pasted the code, saved it as bb-config.php, and uploaded it to the bbPress directory. Seems to be working so far, but I’m not quite done with the install. I’ll let you know if it works out…

    Thanks Chris!

    #69908

    I tried the shortcut method, it returned an error: `bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’01:46:48 ORDER BY topic_time DESC’ at line 1]

    SELECT count(topic_id) as position FROM tvcforum_topics WHERE forum_id=6 and topic_time<=2008-12-09 01:46:48 ORDER BY topic_time DESC`

    Regarding the last bit of code you posted – there’s actually a function already present in one of the bb-includes files that does the same thing – get_page_number().

    #70074
    chrishajer
    Participant

    This:

    <li><a href="http://forums.beardownarizona.com/" title="Visit the forums"></a></li>

    The bloginfo just grabs the url of the site in case you ever move to another domain name.

    #70073

    Thanks!

    Now what if I wanted to add the forums as a subdomain…like forums.example.com? How does that affect the code?

    Would this work?

    <li><a>http://forums.beardownarizona.com" title="Visit the forums"></a></li>

    Thank you for your help!

    #70072
    chrishajer
    Participant

    In that Autumn Almanac theme, you can add a link in menu.php. It can easily be before or after the link to Home, of after all the pages that are listed (so, end of the line.) Just add this to menu.php right after <?php wp_list_pages('depth=1&title_li='); ?>:

    <li><a href="<?php bloginfo('url'); ?>/forum/" title="Visit the forums"></a></li>

    That will add an additional list item right after all the rest of the pages in your menu.

    You could also do it by creating a page called Forum and then just redirect the content of that page to your forums. That way you could control the page order and have it appear in a place other than the beginning or end of the menu.

    You didn’t mention what version of bbPress and WordPress you’re trying to integrate. It matters. Looks like you are using WordPress 2.6.3 – I don’t know how to properly integrate the logins with any version of bbPress. If you spend some time looking through these forums, you will see people who’ve had trouble with integration. Maybe someone else can help you with that.

    #4425
    mshakour
    Member

    Hello bbPress Community Members,

    This is the Arabic translation for bbPress, I’ve done it 5 months ago with 0.9.0.2

    I was a little bit lazy about posting it here, dunno why :)

    Till i checked out this post mintues ago , #thanks _ck_

    http://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress

    All that i do know that alot of people love it in Arabic and already using the Arabic version of bbPress.

    Also, I’ve made a complete RTL version with heavy modifications on template files and a completely new Admin Page Design (CSS Edit).

    This is the last version of Arabic Translation for 0.9.0.3 with slight modifications.

    Hope that the moderator add this translation officially with other bbPress translations.

    Arabic Support Forum: (part of my blog itkallem.com)

    http://bbpress.itkallem.com/

    Project @ Google Code:

    http://code.google.com/p/bbpressar/

    Arabic Language Files ar_AR:

    http://bbpressar.googlecode.com/files/ar_AR-0.9.0.3.zip

    bbPress 0.9.0.3 Arabic Pack only (language files + RTl modifications,..etc)

    http://bbpressar.googlecode.com/files/bbpress-arabicpack-0.9.0.3.zip

    bbPress 0.9.0.3 Arabic Version (ready to use complete bbPress in Arabic version)

    http://bbpressar.googlecode.com/files/bbpress-0.9.0.3-ar.zip

    [+] Annoying Problems:

    – unicode support for usernames :(

    Thanks.

    M.Abdel-Shakour.

Viewing 25 results - 26,276 through 26,300 (of 32,495 total)
Skip to toolbar