Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,026 through 28,050 (of 32,462 total)
  • Author
    Search Results
  • #53034
    Amaury Balmer
    Participant

    Hello all,

    You can find the latest french translation on

    http://bbpress.fr/

    and i publish a french pack for 0.8.3.1 and soon 0.9 !

    I search voluntary for write french documentation and post on blog ;)

    Contact me !

    #63353
    Craig
    Member

    As some of you know, I’m new to WordPress and bbPress altogether and as I learn more I am also getting really amp’d for the new releases of both. However, after looking at the trac roadmap…

    I see WP 2.5 still has A LOT of open tickets where as bbPress 0.9 has 0 tickets open. Is it just not updated or is today’s release not realistic? :(

    #63589

    oh thats nice :)

    #63585
    testosteron
    Member

    wich data i have to include to use wordpress functions? and

    when i only login bbpress i have to type my data in wordpress to write a comment :( ( is that “fixable” ?

    greetz

    howtogeek
    Member

    That plugin didn’t work quite right for me, but I was able to hack together my own hard-coded version for both bbpress and wordpress.

    Thanks!

    crazlunatic
    Member

    I added the code but nothing changed:

    http://vistarewired.com/test2/bbpress/

    howtogeek
    Member

    @chrishajer

    Thanks for that… I’ve been meaning to look that up, but looks like you did it for me =)

    Rahul Bansal
    Participant

    chrishajer is right about issue with ‘slugs’

    only false option works… :-(

    $bb->mod_rewrite = false;

    are they rectifying this in next version??

    chrishajer
    Participant

    It looks bad because the path to your style.css is wrong. The stylesheet should be here, but it’s not:

    http://vistarewired.com/test2/forums/bb-templates/kakumei/style.css

    So, where is it really? I suspect the path in the config.php and the URL you are using to access the forum are not the same, and that’s why you see the forum without any styling.

    Wait – it’s actually here:

    http://vistarewired.com/test2/bbpress/bb-templates/kakumei/style.css

    So, in your config you called the directory forums but you actually installed it in the directory bbpress. You need to fix your config.php.

    You have this:

    $bb->uri = ‘http://vistarewired.com/test2/forums/’;

    It needs to be this:

    $bb->uri = ‘http://vistarewired.com/test2/bbpress/’;

    (or, you can leave the config alone and change the name of the bbpress directory to forums.)

    Fix that and everything will look as it should. You may need to do a hard refresh or clear the cache in your browser to see the effect of the changes. CTRL SHIFT R in Firefox.

    #63566
    chrishajer
    Participant

    Your server responds that it DOES support PHP:

    (uiserver):u12345678:~ > curl -I www.infotainmentcenter.com
    HTTP/1.1 200 OK
    Date: Sat, 15 Mar 2008 20:01:32 GMT
    Server: Apache
    X-Powered-By: PHP/4.4.1

    Try putting this into a file and making it accessible at your domain:

    <?php
    phpinfo();
    ?>

    Save that as info.php and try accessing it http://www.infotainmentcenter.com/info.php . Maybe you will find that the server supports PHP.

    If the host does not support PHP, I suggest you get a new host. I have seen forum software that can run with flat files instead of a MySQL database, but none that are done without a scripting language like PHP.

    #63564
    _ck_
    Participant

    Separate db vs one table is something new for 0.9 I believe.

    Those are constants that have to be defined in bb-config.php just like any of the other constants. ie.

    define('USER_BBDB_NAME','blahblah');

    If you are just now installing bbpress and not already integrating an existing install, if you wait for the 0.9 release on monday, it will do most of the integration for you.

    There are endless instructions for integration, I’ve gathered most of them here (though that list is getting outdated for 0.9)

    http://bbshowcase.org/forums/topic/better-bbpress-wordpress-integration-the-missing-faq

    crazlunatic
    Member

    Hmmm. I think that might have helped but my forums looks reallly bad =(

    http://vistarewired.com/test2/bbpress/

    Edit: Actually now when I log in, it takes me here: http://vistarewired.com/test2/forums/bb-login.php

    And yes I did make changes like adding the functions code, but I don’t think I need to use it, do I?

    chrishajer
    Participant

    “The definition of insanity is doing the same thing over and over and expecting different results.”

    –Benjamin Franklin

    I hope you were making changes with each subsequent installation. If so, what did you try?

    Try setting permalinks to false instead of true or slugs, in your config.php, like this:

    $bb->mod_rewrite = false;

    If that works, then it’s a pretty permalinks issue.

    kehlers
    Member

    I’m just following up – I posted this bug a while ago, and when I didn’t hear back, I researched and found the solution. (wahoo!)

    PROBLEM:

    If private-forums plugin is installed, users below moderator capabilities will have a BLANK Pick a Section dropdown on post-form.php. If they go ahead and try to click “submit” on their post, they get an error: Forum topic is closed. (error is bogus, obviously, because they are trying to post a NEW topic).

    SOLUTION

    In the /my-plugins/private-forums.php, replace line 294:

    $new_forums[] = $forum;

    with:

    $new_forums[$forum->forum_id] = $forum;

    WHY IT WORKS

    The $new_forums array replaces the global $forums array with just the forums that user is permitted to see. The $forums array uses the forum_id as the array index. Without this fix, the $forums array will have the default index, i.e. 0, 1, 2, 3…

    If your forum ids are (a) ordered numerically by their id and (b) no numbers are ‘skipped’ in the ids, you may not notice this issue. However, in my case, my forum ids are in the order “6, 7, 1, 10, 9” because we have added and deleted and reordered them over the life of the forum.

    Hopefully this helps someone.

    Cheers,

    k

    #63548
    fpslabs
    Member

    oh wow, lol I didn’t even see that. I told you I might be stupid ;) Thanks man

    #63528

    In reply to: require_once problems

    gkp99
    Member

    Nevermind – I was using the wrong relative URL it would seem.

    I settled for this:

    require_once($_SERVER."/forums/config.php");>/code>

    and it works now :-)

    Garry,

    #3012
    gkp99
    Member

    Hello everyone!

    Here is my setup:

    WP blog = http://www.cocoadummy.com

    BB forums = http://www.cocoadummy.com/forums

    I have set the config.php values as required. I have enabled the bbPress-integration plugin in WP and configured it. I have added

    require_once('../wp-blog-header.php');

    to my bbPress config.php file. (This seems to work as I can call the WP bloginfo(‘name’) function in my footer.

    When I try to go to the forums admin I get the following error:

    Warning: require_once(../wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4

    Also, I have added the following line of code to wp-config so that I can import functions from bbPress into WP (I want to add the online list to my WP sidebar):

    // Import bbPress

    require_once(‘../forums/config.php’);

    I have added it beneath this code:

    // Get everything else

    require_once(ABSPATH.’wp-settings.php’);

    (although the error is the same wherever I put it).

    When I goto my blog homepage (www.cocoadummy.com) I get this error:

    Warning: require_once(../forums/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34

    Fatal error: require_once() [function.require]: Failed opening required ‘../forums/config.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34

    What am I doing wrong?

    Garry,

    #63526

    In reply to: Different Backgrounds

    chrishajer
    Participant

    It can be done with PHP.

    I’ve never done the random thing, but the Cutline theme for WordPress offers this functionality. You can read about it here:

    http://cutline.tubetorial.com/totally-random-header-images-for-cutline/

    I think you could adapt that for your uses.

    In WordPress, for a specific background tied to a specific page, I just do something like this in header.php:

    <div id="container" style="background: #fff url('<?php bloginfo('template_directory'); ?>/images/<?php echo $post->ID; ?>.jpg') left top no-repeat;">

    That gives the container div the background image of the post ID.jpg, so if you were viewing post 52, you would have a background image of 52.jpg. You could easily adapt this to bbPress calls by using the forum number and $forum_id, whichever div you want a background for (#wrapper or #main?) and then the proper location of your images (whether they are stored in your template folder or your forum root or something.) It fails OK too since there is a color code for the background and that is used if the image cannot be found (I think that’s what happens anyway.)

    Let me know if that makes sense. This is how I’ve done it in WordPress, but the same approach will work for bbPress I think.

    #63513
    chrishajer
    Participant

    Please contact me at an email listed on the website linked to my profile here, or just google my screen name. I’m not hard to find. :D

    #63512
    mun33b
    Member

    Would you mind doing it for me? :/

    #60383
    steward
    Member

    Yesssss I did it!!!

    Instructions for Apache users:

    1. Append to <bbpress-root>/bb-includes/template-functions.php before “?>” code from first message in this topic.

    2. Create or edit .htaccess file in <bbpress-root> directory and put into then next code

    Options +FollowSymlinks

    RewriteEngine On

    RewriteBase /!!!!!! your bbpress root dir!!!!!!!/ #edit this!!!!

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

    RewriteRule ^bb-login.php$ index.php

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

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

    #63522
    chrishajer
    Participant

    Since it’s a WordPress plugin, log into your WordPress admin panel, Plugins > bbPress. That’s where you enter your bbPress table prefix.

    This is the URL once you’re logged in.

    http://www.example.com/wp-admin/plugins.php?page=bbpress-integration

    Replace example.com with your domain and you should end up right where you need to be.

    #63517
    Justin Tadlock
    Participant

    Here’s the results I got from the debugging. One thing I’ve noticed is that once I click on Page 2 (the URL changed to click on Page 2 again).

    Forum

    http://justintadlock.com/forums/forum/options-wordpress-theme

    REQUEST_URI:	string(37) "/forums/forum/options-wordpress-theme"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Forum (page 2)

    http://justintadlock.com/forums/forum/options-wordpress-theme/page/2

    REQUEST_URI:	string(44) "/forums/forum/options-wordpress-theme/page/2"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Forum (URL changed to add two of /page/2)

    http://justintadlock.com/forums/forum/options-wordpress-theme/page/2/page/2

    REQUEST_URI:	string(51) "/forums/forum/options-wordpress-theme/page/2/page/2"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Topic (page 1)

    REQUEST_URI:	string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

    Topic (page 2)

    REQUEST_URI:	string(62) "/forums/topic/bug-report-for-version-10-beta/page/2?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

    Topic (URL changed to add two /page/2)

    REQUEST_URI:	string(69) "/forums/topic/bug-report-for-version-10-beta/page/2/page/2?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

    #63515
    chrishajer
    Participant

    Nice to see you working on it :)

    I think it’s a rewrite problem, somehow. When you access the page 2 & page 3 the “old way” they come up:

    http://justintadlock.com/forums/forum/forum.php?id=1&page=2

    http://justintadlock.com/forums/forum/forum.php?id=1&page=3

    #63514
    chrishajer
    Participant

    I wonder if the forums/forum/ is messing things up? Slug based permalinks seem to be working fine.

    You can add a line to your config.php to enable debugging and see some additional info which might help. This will be displayed at the top of your forum page:

    REQUEST_URI:
    should be:
    full permalink:
    PATH_INFO:

     

    Set this in config.php, after the database connection details.

    $bb->debug = 1;

Viewing 25 results - 28,026 through 28,050 (of 32,462 total)
Skip to toolbar