Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,926 through 27,950 (of 32,495 total)
  • Author
    Search Results
  • #63869
    Sam Bauers
    Participant

    Looks like you got the $bb_table_prefix wrong when you installed, it should have been different to the wordpress prefix.

    Change $bb_table_prefix from “wp_” to “bb_” in bb-config.php then rename you bbPress tables thusly:

    wp_forums -> bb_forums
    wp_tagged -> bb_tagged
    wp_tags -> bb_tags
    wp_topicmeta -> bb_topicmeta
    wp_topics -> bb_topics

    .

    Do not rename wp_posts, wp_users or wp_usermeta!

    This will still leave you without a bb_posts table. So if you have a way to browse your database (e.g. phpMyAdmin) then go into the bb_topicmeta table and look for the row with a meta_key of bb_db_version. Change the meta_value of that row from 1234 to 1233. Login to your bbPress (hopefully it works) then go to the admin section. You will be asked to upgrade, do so and check the log. You should see a log entry where your bb_posts table is created.

    That should do it.

    so1o
    Participant

    I fixed the error by adding

    <?php bb_enqueue_script('jquery'); ?>

    just before

    <?php bb_enqueue_script('topic'); ?>

    in header.php in the theme

    feelie75
    Member

    I’m sure this ISNT the proper solution, heh, but since it worked I thought I’d point it out.

    After Step 1 failed many times, I set out to debug it. My travel took me here:

    bb-includes/db-mysql.php

    $this->$dbhname = @mysql_connect( $server->host, $server->user, $server->pass, true );

    if (!$this->$dbhname)

    return false;

    That was failing and returning false everytime. I couldn’t figure it out. I printed out the hose and user and password, and it looked good. I could connect just fine from a shell prompt.

    After confirming that it actually WAS connecting, and that it was simply the lack of $this->$dbhname that was causing the failure, I just commented out the return false; and VOILA! It worked! Installation finished and I can post messages, etc, etc, everything seems fine.

    Soooo… What’s up with that?! hehe. $dbhname was == ‘dbh_local’.

    Not sure what other details I can provide. Just thought I’d share the rather strange experience and oddness that I’d have to hack the db_connect code to get the install to complete… Weird!!

    #64097
    erdenozkan
    Member

    Let’s say “A good image upload plugin is needed”. I agree with that. A good image upload system is a must for some communities and not for some.

    There’s no need to discuss why some users need image uploading and some not. I’ll be migrating a very large community to bbpress in a few months. The only reason for us to migrate to bbpress is its code base; it’s extendable and very easy to use. So we will write custom plugins to our specific needs.

    Yes, bbpress needs a very good image uploading plugin just like worpdress’s akismet plugin; developed seperately as a plugin. There are some good bbpress plugin developers over here, so what we need to do is just to donate some money. This kind of plugin will take bbpress one more step ahead.

    #64095
    timskii
    Member

    What you are probably looking for is Flickr-in-a-box as a separate application with a common user database. Just as I’m looking for a Facebook-in-a-box application to run alongside the forum to foster the more personal social side. I don’t believe these should be core parts of the forum software, but there is a need for them somehow.

    This notion of modular is important, because it is easy to get side-tracked and try and build the entire internet into one application. That might ultimately happen (mirroring the history of the Microsoft platform model), but at this stage of the game, nobody has the resources to do everything, so doing one part of the jigsaw well is the best plan.

    BBPress should focus development on its core, which still has weaknesses. IMHO the most urgent is augmentation of futuristic geek-only features with the traditional ones that most users understand. The need for these functions has been acknowledged in BBPress’s design, however the current implementation is lacking because they are too complex for “normal people”.

    So RSS needs to be mirrored with bespoke email notifications, because the only people that “get” RSS are ‘bloggers. Gravatars need to be mirrored with uploadable avatars, because the only people that get Gravatars are ‘bloggers.

    Ok, I generalise on the “bloggers” part. But I know moderately technical people that can’t manage to set up a Gravatar, and have no idea what to do with an RSS feed. So the clueless masses stand no chance of using these features for the purpose they were designed.

    BBPress’s killer feature at the moment is spam control without forcing users to jump through hoops just to register and post. Easy to work with code, and general lack of bloat are good to. But take a look at this, and tell me the #1 feature requirement of forum software (and if anyone can point to why that’s affecting phpBB 2 sites more than other software, I’m curious). That’s literally hundreds of spam posts an hour. Most admins faced with that kind of nightmare won’t be too worried about forcing users to host files elsewhere.

    #63937
    Ryan
    Participant

    What I did was edit the header file to include the code to load the WordPress stuff and then just included the header file from the WordPress theme. Then edited the footer.php file to just include the footer from WordPress. I did go through and add a few conditionals to the header.php so that different stuff would be in the <head> section depending on whether I was in forum or out of forum.

    #3154
    rbredow
    Member

    I’m newer to bbPress but I promise I’ve read all the threads on fixing login problems for the key_master, but they aren’t working for me with the latest version.

    First, everything worked great with a vanilla install. I then used this converter to import my phpbb forums. Unfortunately, this converter has a couple of issues, including messing up the ID of the admin user.

    So, I simply upgraded a few of my users to keymasters and got rid of the original admin user. Unfortunately, even though I have multiple keymaster users, when I log in as one, I cannot access the control panel.

    I’ve been looking through the databases and everything looks right to me. My example user is “rob” with an ID of “3”. In bb_usermeta user_id 3’s bb_capabilities are set a:1:{s:9:”keymaster”;b:1;}.

    I tried this solution in the bb-config.php file, since there isn’t a config.php file anymore, but it didn’t seem to do anything. Oddly, I couldn’t get it to emit an error either and I don’t see the function new_keymaster referred to anywhere in the current code so I’m not sure that still works.

    Thanks in advance for any help with this. Right now, I’m stumped.

    -Rob

    #64080
    Sam Bauers
    Participant

    Answer to the first question is that you need to add a SECRET to your wp-config file.

    https://codex.wordpress.org/Editing_wp-config.php#Secret_key_for_salting_password

    #63981
    _ck_
    Participant

    As fascinating as it is, unfortunately the setup that automattic uses can’t be compared in any way to a single stand alone server (or VPS) running it’s own mysql processes since you can use a radical amount of caching ram on the dedicated db servers.

    However bbPress could benefit someday from a port of wp-super-cache (or even just wp-cache2) to send non-logged in/non-members cached pages. There’s a big difference between a forum with 1000 active logged-in users where pages have to be customised via the core and plugins vs. 1000 guests/bots who all see the same pages.

    It bothers me that my fully loaded demo at bbshowcase.org has now beached the 100ms mark for front-page generation (bare bbPress is like 40ms) but I can’t think of any easy ways to speed that up further without removing features. Maybe when PHP 5.3 comes out which seems to promise a 10-15% code speedup.

    #63943
    Sam Bauers
    Participant

    You need to create the Secret Key in your WordPress config.

    Read the WordPress Codex for more info.

    https://codex.wordpress.org/Editing_wp-config.php#Secret_key_for_salting_password

    #63980
    Sam Bauers
    Participant

    I can only give you a vague idea of loads we experience in our environments. They aren’t exactly standard setups.

    On WordPress.com the forums are served by the same infrastructure as the blogs. The forums don’t really make a dent in the load on that setup (hundreds of servers). Average of all queries is about 45 queries per second, over 90% of this is handled by MySQL query cache.

    WordPress.org and bbPress.org are run from the same cluster which has three active load-balanced web servers and two database servers (one for writing and one for reading). The majority of the database load on this cluster is reads initiated by the forums and to a lesser extent reads initiated by the WordPress Codex (MediaWiki). Average load is about 700 reads per second, about 80% of those reads are cache hits.

    Most of our servers have 2GB of RAM and 4 processor cores. Some DB servers might have more RAM. But there is nothing particularly special about the hardware otherwise. Pretty much the same as you would rent from a dedicated server provider.

    #63829
    _ck_
    Participant

    Your bbpress htaccess in /forum/ looks fine EXCEPT for what I hope is just a manual typo

    <ifmodule mod_rewrite.c>

    case matters in htaccess if I recall correctly

    It should be

    <IfModule mod_rewrite.c>

    note the IfModule

    (eta: the apache manual does say “Directives in the configuration files are case-insensitive” but give it a shot anyway – bbPress doesn’t generate it like that so I am not sure why it’s lower case in your setup?)

    If changing that does nothing, the htaccess in the webroot that runs wordpress is also bit messy and my bet would be it’s got rules conflicting with bbpress’s

    Is your site active or can you temporarily rename/delete the htaccess in the webroot and see if suddenly the bbpress slugs start working correctly? MAKE SURE YOU BACKUP THE FILE FIRST.

    ps. next time use something like pastebin.com for that long of a copy/paste and just post the link

    #62335
    trcyshw
    Member

    _ck_ – you make it sound so easy! ;)

    How would I go about making just one of my forums admin-post-only and member-read-and-reply-only? I’m comfortable enough with editing the templates, I just don’t know what part I’d need to change.

    Hope you can help me with this!

    Thanks!

    #63960
    charleyramm
    Member

    Yes, I have this problem too. Where does post_author_link(); come from?

    #63828
    serimu
    Member

    thanks for your reply, I am sending my httpd.conf, and htaccess files for wordpress and bbpress. Im also using gallery2 which is located at /somegalleryfolder. I use a plugin to integrate it with wordpress. But it has no problem, before or after I moved to the new vps. Bbpress is located at /forum folder. And its htaccess is contains only the code generated by bb-admin/rewrite-rules.php

    I found my httpd.conf file, I dont know whether there is a security issue to put it here or not. But I hope it give you some idea about what could be problem:

    #

    # This is the main Apache HTTP server configuration file. It contains the

    # configuration directives that give the server its instructions.

    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.

    # In particular, see

    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>

    # for a discussion of each configuration directive.

    #

    # Do NOT simply read the instructions in here without understanding

    # what they do. They're here only as hints or reminders. If you are unsure

    # consult the online docs. You have been warned.

    ServerRoot “/etc/httpd”

    Listen 80

    #LoadModule php4_module /usr/lib/apache/libphp4.so

    LoadModule php5_module /usr/lib/apache/libphp5.so

    #LoadModule suphp_module /usr/lib/apache/mod_suphp.so

    LoadModule php5_module /usr/lib/apache/libphp5.so

    User apache

    Group apache

    ServerAdmin admin@localhost

    DocumentRoot “/var/www/html”

    <Directory /home/*>

    AllowOverride All

    Options +MultiViews -Indexes +FollowSymlinks +IncludesNoExec +Includes

    <Limit GET POST OPTIONS PROPFIND>

    Order allow,deny

    Allow from all

    </Limit>

    <LimitExcept GET POST OPTIONS PROPFIND>

    Order deny,allow

    Deny from all

    </LimitExcept>

    </Directory>

    <Directory />

    Options All

    AllowOverride All

    </Directory>

    <Directory “/var/www/html”>

    Options +Indexes +FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

    <IfModule mod_suphp.c>

    suPHP_Engine On

    suPHP_UserGroup webapps webapps

    </IfModule>

    </Directory>

    <IfModule dir_module>

    DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi

    </IfModule>

    <FilesMatch “^.ht”>

    Order allow,deny

    Deny from all

    Satisfy All

    </FilesMatch>

    ErrorLog /var/log/httpd/error_log

    LogLevel warn

    <IfModule log_config_module>

    #replace %b with %O for more accurate logging

    <IfModule mod_logio.c>

    LogFormat “%h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” combined

    LogFormat “%h %l %u %t “%r” %>s %O” common

    LogFormat “%O” bytes

    LogFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i” %I %O” combinedio

    </IfModule>

    CustomLog /var/log/httpd/access_log common

    </IfModule>

    <IfModule alias_module>

    # Include some DirectAdmin alias

    Include conf/extra/httpd-alias.conf

    </IfModule>

    <Directory “/var/www/cgi-bin”>

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

    </Directory>

    DefaultType text/plain

    <IfModule mime_module>

    TypesConfig conf/mime.types

    AddType application/x-gzip .tgz

    AddEncoding x-compress .Z

    AddEncoding x-gzip .gz .tgz

    AddType application/x-compress .Z

    AddType application/x-gzip .gz .tgz

    AddHandler cgi-script .cgi

    AddHandler type-map var

    AddType text/html .shtml

    AddOutputFilter INCLUDES .shtml

    AddType video/x-ms-asf .avi

    AddType video/mpeg .mpg

    AddType video/mpeg .mpeg

    AddType video/quicktime .mov

    AddType video/x-ms-wmv .wmv

    </IfModule>

    #EnableMMAP off

    #EnableSendfile off

    #######################################################################################

    # Do not change anything in included files, because they are rewritten by DirectAdmin #

    #######################################################################################

    # This is needed for PHP

    Include conf/extra/httpd-php-handlers.conf

    # Server-pool management (MPM specific)

    Include conf/extra/httpd-mpm.conf

    # Multi-language error messages

    Include conf/extra/httpd-multilang-errordoc.conf

    # Fancy directory listings

    Include conf/extra/httpd-autoindex.conf

    # Language settings

    Include conf/extra/httpd-languages.conf

    # User home directories

    #Include conf/extra/httpd-userdir.conf

    # Real-time info on requests and configuration

    Include conf/extra/httpd-info.conf

    # Virtual hosts

    Include conf/extra/httpd-vhosts.conf

    # Local access to the Apache HTTP Server Manual

    #Include conf/extra/httpd-manual.conf

    # Distributed authoring and versioning (WebDAV)

    Include conf/extra/httpd-dav.conf

    # Various default settings

    Include conf/extra/httpd-default.conf

    # Secure (SSL/TLS) connections

    Include conf/extra/httpd-ssl.conf

    # Deflate module settings

    Include conf/extra/httpd-deflate.conf

    # All the DirectAdmin vhosts

    Include conf/extra/directadmin-vhosts.conf

    # All suPHP directives

    Include conf/extra/httpd-suphp.conf

    # All the other includes needed by the custombuild script

    Include conf/extra/httpd-includes.conf

    #######################################################################################

    # End of included files that are rewritten by DirectAdmin #

    #######################################################################################

    <IfModule ssl_module>

    SSLRandomSeed startup builtin

    SSLRandomSeed connect builtin

    </IfModule>

    and this is my wordpress .htaccess file, it is in root folder for the domain

    php_value upload_max_filesize "50M"

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    # BEGIN Url Rewrite section

    # (Automatically generated. Do not edit this section)

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d [OR]

    RewriteCond %{REQUEST_FILENAME} gallery_remote2.php

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . – [L]

    RewriteCond %{QUERY_STRING} view=core.DownloadItem

    RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9+.-]+://www.domain.com/ [NC]

    RewriteCond %{HTTP:Referer} !^$

    RewriteRule . /wp-gallery2.php [F,L]

    RewriteCond %{QUERY_STRING} g2_view=core.DownloadItem

    RewriteCond %{QUERY_STRING} g2_itemId=([0-9]+)

    RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9+.-]+://www.domain.com/ [NC]

    RewriteCond %{HTTP:Referer} !^$

    RewriteRule . /galery/main.php?g2_view=rewrite.DownloadItem&g2_itemId=%1 [L]

    RewriteCond %{THE_REQUEST} /sitemap(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=sitemap.Sitemap [QSA,L]

    RewriteCond %{THE_REQUEST} /tags(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=tags.TagCloud [QSA,L]

    RewriteCond %{THE_REQUEST} /admin/(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=core.SiteAdmin [QSA,L]

    RewriteCond %{THE_REQUEST} /comments/add/([0-9]+).html(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=comment.AddComment&g2_itemId=%1 [QSA,L]

    RewriteCond %{THE_REQUEST} /comments/([0-9]+).html(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=comment.ShowAllComments&g2_itemId=%1 [QSA,L]

    RewriteCond %{THE_REQUEST} /([^?]+)/slideshow.html(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=slideshow.Slideshow&g2_path=%1 [QSA,L]

    RewriteCond %{THE_REQUEST} /photo/([^?]+)(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_path=%1 [QSA,L]

    RewriteCond %{THE_REQUEST} /([^?/]+)(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_view=tags.VirtualAlbum&g2_tagName=%1 [QSA,L]

    RewriteCond %{THE_REQUEST} /([^?]+)(?.| .)

    RewriteCond %{REQUEST_URI} !/wp-gallery2.php$

    RewriteRule . /wp-gallery2.php?g2_controller=permalinks.Redirect&g2_filename=%1 [QSA,L]

    </IfModule>

    # END Url Rewrite section

    #

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^domain.com$ [NC]

    RewriteRule .* http://www.domain.com/ [L,R=301]

    RewriteCond %{THE_REQUEST} ?(ref=.*)? HTTP [NC]

    RewriteRule .? http://www.domain.com%{REQUEST_URI}? [R=301,L]

    RewriteCond %{THE_REQUEST} ?(referer=.*)? HTTP [NC]

    RewriteRule .? http://www.domain.com%{REQUEST_URI}? [R=301,L]

    Redirect /x/ http://www.domain.com/y/

    Redirect /a/ http://www.domain.com/b/

    and this is bbpress .htaccess located on /forum folder, and my bbpress is also located on /forum. And I dont call wordpress from bbpress and I dont call bbpress from wordpress. I use integration method expressed in faq section of bbpress documents. And my setup was working before I moved to the new vps.

    <ifmodule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forum/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /forum/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /forum/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /forum/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /forum/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /forum/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /forum/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /forum/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /forum/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /forum/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /forum/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /forum/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /forum/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /forum/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /forum/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /forum/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /forum/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /forum/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /forum/rss.php?profile=$1 [L,QSA]

    </ifmodule>

    timskii
    Member

    Broken JavaScript is a non-trivial, since it will trigger a very visible error message for some users… on essentially every topic page, when logged in. The error isn’t FireFox-specific.

    Commenting out the contents of the “addLoadEvent( function() { // TopicMeta” block of code in topic-js.php appears to remove the error without creating new issues: The underlying AJAX behaviour is broken anyway. A proper fix would be appreciated.

    Edit: Ok… playing with *this* forum, it seems there is already a fix: The equivalent code in https://bbpress.org/forums/bb-includes/js/topic-js.php?ver=433 appears to work just fine.

    #63827
    _ck_
    Participant

    Let’s put it this way – bbPress is running with slugs and rewrite rules on literally thousands of servers, so the problem is likely your setup, not necessarily bbPress.

    mod_rewrite should be virtually 100% internal to apache and not really depend on the OS/filesystem underneath but there’s always a chance for something to be interfering.

    If you are using the bb-admin/rewrite-rules.php in your htaccess and you have slugs turned on and it doesn’t work, then I would bet that you have another mod_rewrite rule somewhere that is conflicting, either in the same htaccess file or in a directory above it. Do NOT use multiviews. I cannot help you if you are using multiviews.

    I need much more information, like your htaccess file, and any htaccess file in directories above your forum. Is bbpress running in /forums/ or in the webroot (ie. / )

    Also are you running wordpress at the exact same time as bbpress? I don’t mean standalone integration, I mean loading within each other. Because I am not sure how that would be handled and I never recommend it.

    #63711
    Covi
    Member

    I have troubles too with cookies, login inconsistent between WordPress and BBpress:

    Login on WordPress -> Log out on BBpress and vice versa :(

    PD: Until the latest version, with the hack for 0.83, this was working fine

    Web example: http://www.laguardiadejaen.com/web/

    :(

    #63999
    _ck_
    Participant

    I think they mean the block words would not be visible to non-members that aren’t logged in. Not to allow anonymous posting.

    A weird request but easily doable – you just take the word censoring plugin and add a if ( !bb_is_user_logged_in() ) { add_filter(blah blah blah)} to it’s add_filter.

    #63979
    _ck_
    Participant

    The bb->load_options = true brought the load of the cpu to 5 times that of the one with 30+ queries but I guess that comes from not having that many topics in the newly installed Db so I really don’t know what to make of this.

    Turn on (or increase) your mysql caching. It’s fairly obvious you are running either without any or not enough of it if you can detect any load increase with load_options=true. The query to load all options would be exactly the same across all instances for all users and mysql would pick up on that immediately and keep it in the cache, always. At least that’s what happens on my installs. I don’t have a site with 50k views a day but I have a 0.8.2.1 version with 15k views a day and it runs very fast.

    Also make sure you use a php opcode cache like eaccelerator, xcache, etc. Best thing you can do for bbPress or WordPress.

    0.9 of bbPress is not some kind of radically different change since 0.8 – there are many bug fixes and a few features added but the db calls are almost identical (some plugins however can be sloppy about not caching queries so that can cause issues).

    Try my bb-benchmark if you want to see what happening behind the scenes for each page generated.

    #63978
    andersson
    Participant

    :)

    ok ok, I believe you. 0.9.0.1 is good enough to give a try.

    Just one more thing: I’m guessing you have something like 100,000 pageviews a day in this forums which would render about 3,000,000 queries (moderate estimate) if you run bbpress 0901 out of the box. Your servers are cool with this? RAM at OK level?

    No need for exact figures but just a notion of what’s been your experience so far would be golden. 3,000,000 queries a day means around 35 queries per second. That’s some load.

    Thanks again.

    EDIT: The reason why I’m asking is that I’d really like to continue to use bbpress as my primary PHP-framework for all my sites that has logon/user needs as I’ve had a hard time to find a more suitable framework to my needs.

    #64073

    In reply to: simple bbdb query?

    Sam Bauers
    Participant

    It’s a lot safer to use the API calls.

    bb_get_user($user_id) will return an object filled with the users data and meta data.

    #63989
    chrishajer
    Participant

    If you have access to the database with phpMyAdmin, you can do something like this:

    Create a new user in bbPress. Check your email for the password email. Save that password somewhere. Now, open phpMyAdmin and take the password hash from the new user, and paste it into the password hash field for the admin user. Now, log into bbPress with your admin username. Delete the new user if you like.

    If you don’t have access to the database, then why not just reinstall?

    I think you used to be able to put a line in your config.php like this: $bb->new_keymaster = true; Then run bb-admin/install.php again.

    Read more:

    https://bbpress.org/forums/topic/cant-login-1#post-795

    #3140
    _ck_
    Participant

    It was really bothering me how a page full of links was wasting so many bytes on full absolute URI’s with the domain name, etc. when all it needed was a tidy relative URL. The front page alone is 4k bigger just because of all the full URIs on the tag cloud and views, etc.

    ie. http://www.bbpress.org/forums/forum/plugins

    vs. /forums/forum/plugins

    (multiply that by a few hundred)

    So it dawned on me just now that it’s fairly easy using filters to make all the urls relative. Just for safety, we don’t kick in the relative URLs until bbPress has gotten past the header section of the template. This makes sure that redirects, stylesheets, and javascript is handled properly.

    function bb_relative_uri($r) {return "/forums/"; }	// change forums to your path
    function bb_relative_domain($r) {return ""; }
    function bb_relative() {
    add_filter( 'bb_get_option_domain','bb_relative_domain',255);
    add_filter( 'bb_get_option_uri','bb_relative_uri',255);
    } add_action('bb_head', 'bb_relative',255);

    .

    In some cases, relative URLs actually makes Internet Explorer cache better so this may be helpful for subtle speedups too.

    I haven’t discovered anything broken by this yet but be sure to let me know if you run into anything.

    #3138
    Aeterno
    Member

    I can’t progress past step 1 of the installer… I keep getting this bloody error….

    Fatal error: Cannot redeclare bb_user_sanitize() (previously declared in /home/xxxxxx/public_html/forum/bb-includes/formatting-functions.php:125) in /home/xxxxxx/public_html/forum/bb-includes/deprecated.php on line 285

Viewing 25 results - 27,926 through 27,950 (of 32,495 total)
Skip to toolbar