Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,751 through 22,775 (of 32,468 total)
  • Author
    Search Results
  • hpguru
    Member

    You need phpMyAdmin. In PHPMYADMIN´s bbPress database choose SQL. Go here. Please backup first!

    DELETE FROM *bb_posts* WHERE *bb_posts*.*post_status* =2 ;

    DELETE FROM *bb_posts* WHERE *bb_posts*.*post_status* =1 ;

    PLEASE CHANGE ALL * TO BACKTICKS `

    OK. Spam and deleted posts now deleted from db.

    2 = spam

    1 = deleted posts

    #81710
    chrishajer
    Participant

    As summae says, you are missing some folders. There should be subfolders under forum1, but there aren’t any. You need to upload all the files and folders exactly as they are distributed by bbPress. You should at least have these 4 folders once you install, directly beneath the top level forum1 folder:

    bb-admin
    bb-includes
    bb-plugins
    bb-template

    #81722

    In reply to: changing tag list view

    Null
    Member

    Ok I have written a function to get the tags in a row, but I want to have them comma seperated, any ideas?

    function bb_row_tags( $args = null ) {
    $defaults = array(
    'tags' => false,
    'format' => 'row',
    'topic' => 0,
    );

    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !is_array( $tags ) ) {
    $tags = bb_get_topic_tags( $topic->topic_id );
    }

    if ( !$tags ) {
    return false;
    }

    $r = '';
    switch ( strtolower( $format ) ) {
    case 'row' :
    default :
    $args['format'] = 'row';
    foreach ( $tags as $tag ) {
    $r .= _bb_row_tag_item( $tag, $args );
    }
    break;
    }
    echo $r;
    }

    function _bb_row_tag_item( $tag, $args ) {
    $url = esc_url( bb_get_tag_link( $tag ) );
    $name = esc_html( bb_get_tag_name( $tag ) );
    if ( 'row' == $args['format'] ) {
    $id = 'tag-' . $tag->tag_id . '_' . $tag->user_id;
    return "t" . '<a href="' . $url . '" rel="tag">' . $name . '</a>' . "n";
    }
    }

    #81902

    It is working now! Tried with Firefox, Opera, and Safari. All is back to normal. Thank you :-)

    #81601
    TrishaM
    Participant

    @chrishajer – I’m not sure – I use 1&1 for hosting but I can poke around to see if some logs are available and report back…

    @buddha trance – yes, after the <?php but I appreciate the troubleshooting 101 :)

    FWIW, I also tried several other things I found in the docs for integrating, such as require_once with the path to wp-blog-header.php but as mentioned everything I try to load WP first so I can access it’s functions causes the 500 error.

    I haven’t given up yet, though! I’ll keep trying a few things and report back this weekend….

    #81721

    In reply to: changing tag list view

    Null
    Member

    Hmm this wont work since I need to edit _bb_list_tag_item too. Hmm perhaps I need to write some new code for this. Kinda hoped this could be done easier :)

    #81600

    When you say you added the line to the top, you mean after the opening tag

    <?php

    … just in case…

    #81729
    chrishajer
    Participant

    the w00tw00t.at.ISC.SANS.DFind is a different problem altogether. Looks like someone is scanning the server for vulnerabilities.

    If you have root on the server you should be able to resolve this. It might be in a php_error.log or maybe it is in an apache access or error log, but those lines there are not the ones you want.

    I would determine the IP address you’re visiting from, then grep through the logs for that IP and you should see the error.

    #81717

    In reply to: CSS failed to load?

    ciaravino
    Member

    I tried what you suggested starship trooper, but it didn’t work :(

    Why would you be able to see it, but I can’t chrishajer?

    *EDIT* Wow… I just used pagewash.com to view it, and it looks fine… Why isn’t my computer updating with the new changes? It’s been like 20 hours and it still looks like it has no style sheet.

    #81322

    There is a thread discussing export capabilities for bbPress, where the project “bbxf.org” is mentioned by chrishajer. Maybe you can ask him there, if the alpha version of the plugin they have on Google Code can be used for your purposes. That is, export bbPress as an XML file and import it into WordPress.

    https://bbpress.org/forums/topic/importexport-work

    The alpha version can be also found on the site of one of the developers, Dan Larkin.

    http://www.stealyourcarbon.net/category/bbxf/

    You could give it a try with a fresh “test” install of WP, and a full bbPress database backup…

    #75703
    noz
    Member

    Hi,

    To change it open ‘bb-avatar-upload.php’ line in my-plugins/ 173

    >> add_profile_tab(__(‘Avatar’) …. >> put ‘Image’

    ;)

    #81725
    asterix35
    Member

    I just tried again, i got the white screen when i click on “check for configuration file” button.

    I’ve also tried to chmod 777 the config file, i still get the same results.

    I tried to put wrong dbname, user, password within bb-config.php and i got an error message telling me that mysql info are not correct, therefore i assume that when i put the good credentials bbpress was able to connect to the mysql database.

    I’ve also tried to delete the mysql db and recreate everything (new db, new user) and i still have the same error message. This is driving nuts :D

    #81733
    Null
    Member

    It’s kinda dead atm. Even big plugin suppliers like _ck_ seems to be abandoning this project. It’s a shame :(

    #81672

    In reply to: PHP if/else arguments

    Olaf Lederer
    Participant

    Hi,

    you need this function: bb_get_location()

    for example:

    if (!in_array(bb_get_location(), array('login-page', 'register-page'))) {
    login_form();
    }

    #81719

    In reply to: changing tag list view

    chrishajer
    Participant

    It looks like the default for that function is a list, but table would also be accepted. But the other choice, table, would just return (i.e., I don’t think they ever finished that, but were maybe planning on having other options.)

    function bb_list_tags( $args = null )
    {
    $defaults = array(
    'tags' => false,
    'format' => 'list',
    'topic' => 0,
    'list_id' => 'tags-list'
    );

    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !is_array( $tags ) ) {
    $tags = bb_get_topic_tags( $topic->topic_id );
    }

    if ( !$tags ) {
    return false;
    }

    $list_id = esc_attr( $list_id );

    $r = '';
    switch ( strtolower( $format ) ) {
    case 'table' :
    break;

    case 'list' :
    default :
    $args['format'] = 'list';
    $r .= '<ul id="' . $list_id . '" class="tags-list list:tag">' . "n";
    foreach ( $tags as $tag ) {
    $r .= _bb_list_tag_item( $tag, $args );
    }
    $r .= '</ul>';
    break;
    }

    echo $r;
    }

    I hope someone else can come along and show how to do this with a plugin.

    #81716

    In reply to: CSS failed to load?

    Peter A. Gebhardt
    Participant

    Try putting this line at the beginning of your .htaccess file in the bbPress home directory

    eg. into yourdomain/bbpress/.htaccess:

    AddType text/css .css

    Had this problem once with 1&1 webhosting in Germany.

    #81715

    In reply to: CSS failed to load?

    chrishajer
    Participant

    It’s styled perfectly here with the default kakumei theme:

    http://chrishajer.com/bbpress/iappleit.png

    And that stylesheet is right where you say it is:

    http://iapple.it/forums/bb-templates/kakumei/style.css

    [~/]$ curl -I http://iapple.it/forums/bb-templates/kakumei/style.css
    HTTP/1.1 200 OK
    Date: Thu, 26 Nov 2009 18:40:14 GMT

    #81701
    chrishajer
    Participant

    You never mentioned where you installed it. Your host said it was here:

    http://latestartermusician.com/bbpress

    You say it’s here:

    http://latestartermusician.com/forum1

    So, where is it? Can you print a directory listing of the folders on your website showing where bbPress is installed in relation to your Blog folder? Screenshot is OK. It’s almost impossible to help with something like this remotely. Someone needs to be there to look at the directory listing and be able to say “oh, it’s installed over there, you need to access it at THIS URL.”

    If this is your web space:

    /hermes/bosweb/web077/b775/ipw.latestar/public_html/

    Then Blog needs be be here:

    /hermes/bosweb/web077/b775/ipw.latestar/public_html/Blog/

    And bbPress should be installed here according to what you said about ‘forum1’:

    /hermes/bosweb/web077/b775/ipw.latestar/public_html/forum1/

    #81699
    chrishajer
    Participant

    On an apache web server, the file and folder names are case sensitive. I noticed you used Blog before (capital B) and Install.php here (capital I) – are you certain the folder is actually bbpress (lowercase) in the root for your domain (on the same level as the Blog folder you already installed)?

    If bb-admin were actually at http://latestartermusician.com/bbpress/bb-admin/, these would come up fine, but they do not:

    http://latestartermusician.com/bbpress/bb-admin/install.css

    http://latestartermusician.com/bbpress/bb-admin/style.css

    http://latestartermusician.com/bbpress/bb-admin/images/menu.png

    So where did you really put the folder and what is the name? Capitalization matters too, so post here what it actually is.

    #81689

    In reply to: Header Invalid

    chrishajer
    Participant

    bbPress is not a plugin for WordPress. It should not be in your wp-content/plugins folder. It will be installed right along side WordPress, not inside WordPress as a plugin.

    Right now you have WordPress installed in a folder called “Blog”. You need to put bbPress in a folder called “Forum” or whatever public URL you want your forum to be known as, and start the installation there.

    http://latestartermusician.com/Forum/ is you put it into a folder called “Forum” at the same level as Blog in the directory tree.

    It’s not a plugin for WordPress, that’s why you received that error.

    #61710

    If anyone is still looking for the solution to this, there is a suitable fix (creating a plugin to do the heavy lifting)

    here

    Basically, create a new plugin by saving the following code as “my-plugin.php” or whatever you might like to call it, in the my-plugins folder:

    <?php

    /*

    Plugin Name: Profile Details

    Plugin URI: https://bbpress.org/

    Description: This plugin adjusts the information required at registration, and which information is displayed on the profile page.

    Author: A.Example

    Version: 0.333

    Author URI: https://bbpress.org/

    */

    function set_my_profile_info_keys($myarray) {

    $myarray = array(

    //’first_name’ => array(0, __(‘First name’)),

    //’last_name’ => array(0, __(‘Last name’)),

    ‘display_name’ => array(1, __(‘Display name as’)),

    ‘user_email’ => array(1, __(‘Email’)),

    //’user_url’ => array(0, __(‘Website’)),

    //’from’ => array(0, __(‘Location’)),

    //’occ’ => array(0, __(‘Occupation’)),

    //’interest’ => array(0, __(‘Interests’))

    );

    return $myarray;

    }

    add_filter(‘get_profile_info_keys’, ‘set_my_profile_info_keys’);

    ?>

    I hope that helps someone out, full credit must go to Olaf for this fix.

    Namasté,

    Xander

    #81619
    danfuh
    Member

    I Have a Solution!

    Using like this:

    preg_match_all(“/(<code.*>)(w.*)(</code>)/isxmU”,

    $post_text_output, $matches))

    and str_replace()

    inside the post.php of my template will fix the problem for me.

    Regards Daniel

    #81634
    yaysloths
    Member

    ok, stuff just got a lot weirder. i made the original post sticky and made a new topic, and the “topic author” code is working for the sticky one but not the regular one. (screenshot.) how the hell did i do THAT?

    #32391

    Topic: Header Invalid

    in forum Installation
    latestart
    Member

    I downloaded the plugin for WordPress 2.8.4, and tried activating it. However, when I activated it, I was taken to a page that said, “This plugin does not have a valid header.” What does that mean? I am so excited about using bbpress, but I can’t. :(

    #81633
    yaysloths
    Member

    Hey, thanks for the tip re: hidden forums plugin; I’ll give that a shot.

    And yeah, I’m trying to add first poster/author since, as you said, last poster is already there. And I did find that <?php topic_author(); ?> code, but for some reason I can’t get it to work – if you look at the code I put in the first post, you should see it there, but for some reason it’s not working. Do you see anything there I should change? </p>

    <p>Thanks for your help…`

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