Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,226 through 28,250 (of 32,492 total)
  • Author
    Search Results
  • #54862
    helpy
    Participant

    Quoto from simpler integration with wordpress:

    Do so by defining WP_BB as true in either config.php or wp-config.php. Also, WordPress will have to be loaded first.

    I use WP and BB with german language! If I include wp-blog-header.php in the configuration file (config.php) of bbpress, the following error occurs:

    Fatal error: Cannot redeclare class streamreader in /homepages/.../www/forum/bb-includes/streams.php on line 26

    If I uncomment the lines 122 + 123 in bb-settings.php:

    // include_once(BBPATH . BBINC . ‘streams.php’);

    // include_once(BBPATH . BBINC . ‘gettext.php’);

    No error occurs … but the forum is in english!

    I use WP 2.3.3 and bbpress 0.8.3.1 … WP is installed in web root and bbpress in the subfolder “forum”.

    Is there a documented way to fix this … or a workaround?

    cu, helpy

    #63008
    deesdogcare
    Member

    OH ~ and I had actually tried a copy & paste of the code that you changed through finding it in another thread, but there was some kind of error in his syntax, cause it just gave me error messages.

    #63007
    deesdogcare
    Member

    That did exactly what I was wanting on the front page, but now you can’t find the subforums at all. I had thought that when I clicked the parent forum it would automatically show the subforums ~ either on the front page or on a new page. Instead, it just goes to an “Add a topic” page. Any ideas?

    Please forgive my bad spacing at times. When I’m in firefox, this doesn’t happen because of auto-spellcheck, but in IE, I miss fixing some of it. I messed up the spacebar on this keyboard and it doesn’t alway space like it should =(

    Thanks _ck_!

    D

    #63006
    _ck_
    Participant

    If you are asking what I think you are asking, I think I have made the subtle change you need. The sub-forums will no longer be shown on the front-page.

    http://pastebin.com/m5ce19f4b

    Line 53 is really all that’s needed.

    if (!$forum->forum_parent) {

    This is untested however.

    Topics from within the sub-forums will still showup in the latest discussions however.

    #2912
    deesdogcare
    Member

    I have tried a variety of codes that have been offered up in these forums in an attempt to hide subforums on my main page because one of my parent forums is dog breeds~~~ can you imagine how HUGE my front page will beonce I add in all of my subforums?

    All of my attempts to utilize code offered in the forums has failed. One piece looked likeit MIGHT do what I wanted, but I could never figure out where to paste it!

    Please forgive me for my lack of knowledge ~~~ I am learning as I go.

    I have pasted my code for my front-page.php into the paste bin. If you could look at it and give me a clue, I’d appreciate it!!!

    http://pastebin.com/m4e612460

    Thanks!

    D

    #63004
    _ck_
    Participant

    Added to the theme switcher here:

    http://bbshowcase.org/forums/?bbtheme=blackletterhead

    Looks suitable for Halloween :-)

    #60242
    thierryyyyyyy
    Participant

    Can we have this page without installing the “big plugin” My_views ?

    Perhaps I can download this “module” and look at the code, and make a small plugin. Or just make a link that shows this page.

    I forgot to say : wow ! nice plugin :)

    exactly what I want to see.

    _ck_
    Participant

    http://pravin.insanitybegins.com/articles/running-bbpress-on-sourceforge

    I also believe there is code on the WordPress side that uses 3rd party mailers like gmail or yahoo to send passwords. This could be easily adapted to bbPress as a plugin.

    #62974
    t3ch33
    Member

    nm. i just reinstalled it.

    #62973
    t3ch33
    Member

    anyone? please?

    #62930
    deesdogcare
    Member

    OK ~ mark it as resolved ~~~ I’m just an idiot. I didn’t notice (even as many times as I’ve seen copies of the mod line) that there were NO QUOTES when you mark it FALSE. Saw that tip in another thread just a few minutes ago and tried it . … .

    I don’t get 404 error pages anymore!

    I can edit my users, read threads, EVERYTHING! =)

    Sorry I am so slow at this!

    Thanks for the help!

    D

    #57816
    _ck_
    Participant

    Omegacool has a wp.com site too, there are download links there as well:

    http://mundoarroba.wordpress.com/2007/05/24/theme-misty-para-bbpress/

    (ps. it’s bbShowcase.org I decided bbpressshowcase was just too long and too many sss’s ;-)

    #62926
    _ck_
    Participant

    If you cannot get into admin panel it’s one of two reasons:

    1. cookie hashes & paths don’t match

    2. you do not have the proper role set under bbpress as administrator

    The 404’s may be caused by turning on slugs without multiviews or proper mod_rewrite rules. If you have slugs turned on, turn them off temporarily (in your config.php) until you solve the other problem. ie.

    $bb->mod_rewrite = false;

    I am betting on the role not being set in bbPress that’s preventing you from getting to the admin panel. This can be inspected/fixed via phpmyadmin. I’ve been meaning to write an auto-load plugin to fix this issue automagically.

    UPDATE:

    I’ve whipped up a little plugin to restore proper admin access roles for both bbPress and WordPress without having to tinker in phpmyadmin:

    http://bbshowcase.org/plugins/fix_admin_access.zip

    Copy this to your plugins directory in bbPress OR WordPress (not both). Then access bbPress or WordPress (whichever you used). Then test you can access admin panel. Then DELETE the plugin off your server. There is no reason to leave it there.

    (you MUST leave the leading underscore “_” on the plugin name which makes it auto-load without having to activate it first. I have not tested it from the WP side but in theory should be fine.)

    #2900
    t3ch33
    Member

    This code is supposed to go in bb-admin/install.php for the plugin that allows users to post anonymously. My bbpress was already active when I discovered the plugin, so, of course, i didn’t want to run the install file again. So, can you translate this for me so that I can possibly make the changes manually? Thanks. The code is as follows:

    bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );

    #62963
    t3ch33
    Member

    hans3, thank you. that worked. :)

    #55749

    In reply to: Anonymous posting

    t3ch33
    Member

    This is almost working for me. My bbpress was already active, so i didn’t want to run the modified install file. Here is the code that’s in the bb-admin/install.php file:

    // Anonymous User
    $now = bb_current_time('mysql');
    $bbdb->query("INSERT INTO $bbdb->users (user_login, user_registered)
    VALUES ('anonymous', '$now')");
    $bbdb->query("UPDATE $bbdb->users SET ID = '0' WHERE user_login = 'anonymous'");
    bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );

    Since my bbpress is already active, I have manually updated my users table by following the guideline in the above code. But, I have no idea what the last line of code means: bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );

    Can you modify it so that I can manually update the db or do whatever needs to be done to make it work? Thanks.

    #50219
    3ring
    Member

    Hey Mods;

    (Tried to install plugin, got fatal error, so tried code file edit…)

    I just want one post to have reverse order, so I tried:

    if ( !$bb_db_override ) :

    if ($topicid == '54') {

    $posts = get_thread( $topic_id, $page, true );

    } else {

    $posts = get_thread( $topic_id, $page );

    }

    $forum = get_forum ( $topic->forum_id );

    $tags = bb_get_topic_tags ( $topic_id );

    But it doesn’t seem to recognize the topic id – it displays all posts normally? Am I assuming wrongly that the topic_id is the number after “/topic/##” in the thread url?

    Can you see anything I’m doing wrong? How do I isolate a single post to be reverse order?

    Thanks!

    #62955
    t3ch33
    Member

    looks like i had a bad install. sorry for the panic. :)

    #62880
    rosebud
    Member

    I figured it out. Thanks anyhow.

    <php if ( $user_id == 1 ) : // User number one ?>

    #62952
    chrishajer
    Participant

    bbPress does not create the .htaccess file. You have to manually create it with a text editor either on the server, on locally, then upload it. The file can contain one of two things:

    1. Options +MultiViews

    or

    2. visit http://website.com/dir/bb-admin/rewrite-rules.php

    That script will generate the rules you need to put in your .htaccess file. Use this if the first option does not work.

    If you cannot get permalinks working, just change the mod_rewrite line to false in your config, so you can at least use your forum until you get permalinks working.

    $bb->mod_rewrite = false;

    #62934

    In reply to: Edit topic title

    chrishajer
    Participant

    As keymaster, if you log in and edit the first post in a topic, you have access to editing the title. If you created the topic as a user, there is a limited amount of time that you can go back and edit your own post. By default, I think the limit is 60 minutes, set in the config.php with $bb->edit_lock = 60;.

    #62912
    chrishajer
    Participant

    dreamsofthequill: since _ck_ caught the session issue, I recalled that dotq.org also had a session in the response:

    u39872340:~/riverside/bbpress-831 >  time curl -I dotq.org
    HTTP/1.1 200 OK
    Date: Wed, 13 Feb 2008 21:33:49 GMT
    Server: Apache
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Pragma: no-cache
    X-Pingback: http://dotq.org/xmlrpc.php
    Set-Cookie: PHPSESSID=263b0ed23debf73f72bb98c377fb5fbb; path=/
    Content-Type: text/html; charset=UTF-8

    real 0m5.749s
    user 0m0.004s
    sys 0m0.000s

    Maybe the issues are the same?

    #62910
    chrishajer
    Participant

    noyz319: I would try a stock installation of bbPress without the WordPress stuff. The require_once wp-blog-header.php seems to be fouling it up.

    #2883
    darkling235
    Member

    I have the code to work with the new field in the DB all ready and tested. To test it I just created a new column in the user table manually. Is there a way to do it automatically on install?

    I.E. bbpress creates a bunch of tables and fields when it is first activated, how can I alter what tables are created and what columns they possess?

    #62903
    chrishajer
    Participant

    Can you force godaddy to use PHP5 instead of PHP4 by making this change to your .htaccess?

    AddType x-mapp-php5 .php

    Put that line at the top of your WordPress .htaccess if GoDaddy allows PHP5. I could not tell from your server response which version of PHP is being used. You could create a file called info.php with this in it:

    <?php
    phpinfo();
    ?>

    then put it somewhere accessible via browser, then load it up. It will tell you the version of PHP being used. Try it before and after making that change to the .htaccess file.

    Call that info.php then load it in a browser at whatever URL you choose.

    I am curious to see if using PHP5 will make the 404 errors go away…

Viewing 25 results - 28,226 through 28,250 (of 32,492 total)
Skip to toolbar