Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,401 through 22,425 (of 32,468 total)
  • Author
    Search Results
  • thekmen
    Member

    I have done a good few wordpress/bbpress cookie/log in integrations at this stage.

    The easiest way I find to get it to work as expected is place the following in my bb-config.php

    define('BB_AUTH_KEY',        'YOUR_AUTH_KEY');
    define('BB_SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('BB_LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('BB_NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));
    define('BB_COOKIEHASH', md5('Domain Name'));
    $cookiehash = md5('Domain Name');
    define('BB_HASH', md5('Domain Name'));

    and the following in your wp-config.php

    define('AUTH_KEY',        'YOUR_AUTH_KEY');
    define('SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));

    Replace the KEY values with those generated here: https://api.wordpress.org/secret-key/1.1/

    Also i’m not sure which of the bbPress cookie bits is needed, I presume it’s only one of them.

    Hope this helps.

    #32665
    noz
    Member

    Hi,

    I’m trying to use an external database to connect users in bbpress…

    1. The user fill in the form to connect.

    2. The form check login + password in other database

    3. If login/pass are good I check in bbpress to know if login exists :

    if exists : connect

    if doesn’t exist : create account + connect

    Any ideas ??

    If someone can help me it will be sympatic ;)

    thx.

    ps : sorry for my bad english

    #83240
    Gautam
    Member

    I think a subscriptions.php can also be added to the templates like the favourites.php, where the user can edit the topics he/she has subscribed. And then the links to subscribe to topic can be prettier like the add this topic to your favourites one.

    #83239
    Michael
    Participant

    Very nice. :) Now, will it support Permalinks?

    Nice to see some changes happening. :)

    Peace, Michael

    #83236
    johnhiler
    Member

    Might be worth checking out this plugin for ideas and/or code!

    https://bbpress.org/plugins/topic/subscribe-to-topic/

    #83106
    Steven Hodson
    Participant

    @Ben L … this is maddening because I know from your testing that it works fine. I also had my host get the guys at his data center run some tests (he’s also a good friend which helps) but they come back with this


    Two of the engineers at the data center have run tests and looked at the logs and they have ruled any server side issues.

    This is what they said in conclusion

    At this point, I believe we can safely exclude obvious server side problems… If your customer has some concerns about missing .php modules, etc. (which they may confirm by creating a phpinfo page) we’ll be happy to address this, but so far we’re still not seeing a server side problem…

    It is possible that the add-on may require more php modules installed but I would need to know more to go further


    So I am at a real loss to figure out where to go next to try getting this to work. Very frustrating to say the least

    #32655
    nivosh
    Member

    Hello.

    I have installed bbpress site map generator from: http://boakes.org/software/

    My blog is in: http://www.emetaheret.org.il/blog

    and My bbpress forum is in: http://www.emetaheret.org.il/forum

    The blog sitemap is created using Google XML Sitemaps from: http://www.arnebrachhold.de/redir/sitemap-home/

    Now, The sitemap plugin of the forum is erasing the one created by the blog plugin.

    I have changed the variable for the sitemap code as follows:

    // the full path the the file that will be written – write access

    // is required so set up your user /group privilages correctly or

    // remember to “chmod 777 $sitemap_file” before runtime.

    $sitemap_file =”http://www.emetaheret.org.il/forum/sitemap.xml”;

    but the file still get written inside: http://www.emetaheret.org.il and replaces the one created by the blog plugin.

    I hope this makes sense.

    Maybe, if there is no solution, you know about a good way for making good sitemap for my forum without interfering with the blog?

    sorry for my English and

    Thank you

    #83105
    Ben L.
    Member

    I can’t find what’s wrong with it. The code is set to automatically make the folder when it needs it, so you shouldn’t have to worry about it unless your document root’s parent directory (which should technically be the folder above wwwroot) isn’t writable to your server. The quickest way to fix that is to make a bb-attachments folder in there and set its permissions to 777.

    Also: Replace bb_register_activation_hook(str_replace(array(str_replace("/","\\",BB_PLUGIN_DIR),str_replace("/","\\",BB_CORE_PLUGIN_DIR)),array("user#","core#"),__FILE__), 'bb_attachments_install'); with bb_register_activation_hook( __FILE__, 'bb_attachments_install' ); to fix the database problem.

    #32642
    mjepson
    Member

    Hello,

    We use bbPress as our forum on woothemes.com and users sometimes have a hard time finding their support query when they come back to the forum. I know you can click on your user profile and see it there, but most new users don’t know that.

    Is there any code that we can use to add a list of the last 5 posts created by the user and place it on the forum index page?

    This is how it looks now: http://is.gd/5GOQm

    I’d like to add it either at the top above “Latest Topics”

    #82525
    thierryyyyyyy
    Participant

    I think this could be a “sticky” topic !

    I don’t understand the need of having the forum in a subdirectory of the blog. As I did it years ago, I can’t change that now. I succeeded years ago to make a cookies integration plugin (that was before wp 2.6 I think), and I remember that the blocking thing was the “cookie path” and “cookie host”.

    My WP is on http://www.2diabolos.com/blog/

    my BB is on http://forum.2diabolos.com

    (I hear you thinking “OMG, 2 different subdomains !!!”)

    Now, I succeed to have the good “cookie domain” (I think the definition is the define( 'COOKIE_DOMAIN', '.2diabolos.com ' ); )

    But the define( 'COOKIEPATH', '/' );does NOT work as it should. WP then define each of cookie twice with the “/” path and with the “/blog/” path (my WP path).

    The straightforward consequence is that : When I log in WP, I’m also logged in BB (double cookies!).

    But when I log out from BB, he deletes only the “/” cookies, so I’m still logged into WP.

    Worse : when I’m logged only in BB (cookies path “/”), WP does not recognize me as logged in.

    He only checks the “/blog/” path ? (even with define( 'COOKIEPATH', '/' ); in the wp-config.php )

    #83127
    KA001
    Member

    Thank you! Thay was all the nudge I needed to check the file permissions on the my-plugins directory – they were wrong.

    All fixed now :)

    #83202
    chrishajer
    Participant

    Checked from command line on Linux and it redirects if you don’t use the slash:

    [~]$ curl -I http://authorstock.com/forum
    HTTP/1.1 301 Moved Permanently
    Content-Length: 168
    Content-Type: text/html; charset=UTF-8
    Location: http://authorstock.com/authorstock.com/forum/
    Server: Microsoft-IIS/7.0
    X-Powered-By: ASP.NET
    Date: Tue, 29 Dec 2009 23:36:34 GMT

    [~]$ curl -I http://authorstock.com/forum/
    HTTP/1.1 200 OK
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Server: Microsoft-IIS/7.0
    X-Pingback: http://authorstock.com/forum/xmlrpc.php
    X-Powered-By: ASP.NET
    Date: Tue, 29 Dec 2009 23:36:40 GMT

    Can you access any other directories and get the index file instead of a redirect? Is there a way to ensure that index.php is the index file for the directory?

    1. In the IIS Manager, double-click Default Document.

    2. Click Add, then enter index.php and click OK.

    #83200
    dougjoseph
    Member

    Thanks.

    Well, at least I’m not crazy. :-)

    OK, I am using IE on a Win XP SP3 system. Problem is reproducible.

    Now, I am using Firefox 3.0.16 on a Win XP SP3 system. Problem is reproducible.

    @ipstenu

    What OS are you using? And what browser?

    Thanks for your help.

    dougjoseph
    Member

    Hello!

    I just downloaded and installed the latest version of bbPress — version 1.0.2.

    In the database ( bb_option | uri ), we see the full URL to the forum:

    http://domain.com/folder/

    Now, if I type that address into a browser, the forum loads fine.

    However, if I type it this way (without the trailing frontslash)…

    http://domain.com/folder

    … I get redirected to this:

    http://domain.com/domain.com/folder/

    Which leads to nowhere!

    To see this in action, paste or type these two URIs into your browser:

    http://authorstock.com/forum/

    http://authorstock.com/forum

    …With the only difference being the trailing frontslash.

    Argh! Can anyone help me know how to fix this?

    Thanks!

    #81793
    citizenkeith
    Participant

    This is what I want from future bbPress releases:

    1. Open Source, always and forever

    2. Less (code) is more

    3. Simplicity is a feature

    4. Speed and security are the foundation of any good user experience

    5. Put the user first

    This list can be found here:

    https://bbpress.org/about/

    Thanks to chrishajer for pointing it out earlier in the thread… I think it sums things up nicely.

    #32646
    Michael
    Participant

    Greetz! :)

    Once I have a new top-level domain for my forum, I would like to implement changes to make each member have a sub-domain. For example, mydomain.com/profile/member-name would become member-name.mydomain.com.

    I know exactly how to do this through htaccess. What I’d like to know is this:

    If I do it manually, what else do I have to configure to make all the profile links point to the new pretty permalink?

    There’s no rush at all for this — looking to implement it in a few months.

    Thanks in advance

    Peace, Michael

    #83182
    Ben L.
    Member

    http://phpxref.ftwr.co.uk/bbpress/bb-includes/backpress/class.wp-users.php.source.html#l506

    That error can only be caused by plugins. What plugins are you running?

    If you can, search for WP_Users::update_meta in their source code.

    Michael
    Participant

    I haven’t seen this issue, but I must just say that you have done an awesome job of editing the forum to blend in with your site. Great work! :) I think you’ve inspired me to make some changes to my (very simple) one. :)

    Peace, Michael

    #72279
    Gautam
    Member

    Make it:

    if (strtolower($thats_all->post_title) == "forum" || strtolower($thats_all->post_title) == "forums") {
    $addclass = ' class="current_page"';
    } else {
    $addclass = '';
    }

    #83096
    chrishajer
    Participant

    Sounds like it cannot write the file. Maybe permissions, maybe a path problem. Access to logs would be nice :-)

    #83062

    Can you share directions for other people? :)

    #83115
    Gautam
    Member

    This is the CSS from the default (kakumei) theme:

    /* Page navigation
    =================================== */

    a.page-numbers,
    span.page-numbers {
    border-right: 1px solid #bbbbbb;
    border-bottom: 1px solid #bbbbbb;
    padding: 4px 4px 2px 5px;
    margin-left: 5px;
    background-image: url('images/page-links-background.gif');
    background-repeat: no-repeat;
    background-position: 0 0;
    }

    span.page-numbers.current {
    color: #ffffff;
    background-position: 0 -100px;
    }

    #latest a.page-numbers {
    font-size: 0.8em;
    padding: 3px 3px 1px 4px;
    margin-left: 3px;
    }

    a.prev.page-numbers,
    a.next.page-numbers,
    span.page-numbers.dots {
    border-width: 0;
    padding: 0 4px;
    background-image: none;
    }

    span.page-numbers.dots {
    padding: 0;
    }

    a.page-numbers:hover {
    background-position: 0 -100px;
    }

    a.prev.page-numbers:hover,
    a.next.page-numbers:hover {
    color: #006400;
    }

    #83051
    Michael
    Participant

    Steven: Good idea – I think LeftCoastMichael should maybe wait until you do so that he makes no mistake. :)

    #82997
    gerikg
    Member

    # 1

    WordPressMU user integration with bbPress

    1 When installing wordpressmu/bbpress do NOT use “www.” Example: use http://bbpress.org not http://www.bbpress.org and use the same database. You do not need to change the prefix, I prefer you don’t because you’ll run into problem later.

    2 Make sure bbpress is in a folder in wordpress. example: wordpress/bbpress/ not on the same level.

    3 The folder does not have to be named bbpress, most people make it “forum” or “forums”.

    *After successfully installing both programs open wp-config.php file (in the wordpress folder). Around line # 45-# 48 you’ll see define(‘AUTH_KEY’…. go to this URL (https://api.wordpress.org/secret-key/1.1/salt) and get the EIGHT keys and REPLACE the FOUR keys that are there. Save and upload. Keep the file open for now.

    4 Open bb-config.php (in the bbpress folder) do the same thing here. With the SAME keys you put in the wordpress file put in the bb-config file around line # 41-45. You have to add BB_ to the front of the names. Example: BB_AUTH_KEY to all eight. Save and upload. Keep the file open for now.

    5 Clear your cache on your browser. Log into your bbpress dashboard and go to Settings->Wordpress Integration-> WordPress Administrator should be keymaster. Every other option should be member for now. WordPress address (URL) should be the URL again NO www. Blog address (URL) the same as before. The last 3 should be LOCKED if not repeat the steps 3&4.

    6 Login to your wordpress dashboard. Go to Plugins->Add New-> search for “bbPress Integration” it should be the first one. Install it and activate.

    7 Go to Settings-> bbPress Integration. Enter the bbPress URL without the www. Your plugins URL leave blank. Check WordPressMU. Click on Save Changes. On the bottom box you’ll see some text copy it. Most likely it will say

    define( 'COOKIEHASH', 'xxxxxxxxxxxxxxxxxxxxxxx' );
    define( 'COOKIE_DOMAIN', '.xxxxxxxxx.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    8 Paste the all FOUR lines in wp-config.php file around line # 16 (MUST be on top. Don’t know why) and paste the LAST THREE (leave out cookiehash line) in bb-config.php in line # 13 (Must be on top). Save. You can delete the plugin, it’s no longer needed.

    9 Clear your cache on your browser and you’re done.

    Known Problems

    *Two different database, one for WP and one for BBP, does not always work.

    *Changing the database prefix. There are tutorials out there that tell you to do it, just don’t.

    *Hosting companies that offer free databases, have buggy databases.

    *BBpress not being in WordPress folder. I don’t think the plugin takes that into account.

    *When you upgrade from an older version (wordpressmu/bbpress) the XX-config.php files are different than what you already have. Check wp-config.php against wp-config-sample.php & bb-config.php against bb-config-sample.php should be fairly simple.

    #81974
    chucklehead
    Member

    I have the same issue, and clearly many others from the looks of a google search.. the TRAC ticket here (https://trac.bbpress.org/ticket/1187) just dies. Is there an update?

    Also, and this surprises me, I have put the following in my bb-settings.php file: ‘error_reporting(0);’ and yet I *still* get one remaining error: ‘Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocslamplightercommunitybb-settings.php on line 186’ and I cannot Admin the bbpress installation (it also returns the same error). At this point I have no choice but to abandon bbpress. :(

    Any help is appreciated. I am running bbpress 1.0 and wordpress 2.9. Let me know if there is anything else needed to diagnose

Viewing 25 results - 22,401 through 22,425 (of 32,468 total)
Skip to toolbar