Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,776 through 22,800 (of 32,481 total)
  • Author
    Search Results
  • #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…`

    #81153
    chrishajer
    Participant

    You could just replace the contents of your template’s front-page.php with this code to redirect the visitor:

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.example.com/forums/forum-slug");
    exit;
    ?>

    Just change http://www.example.com/forums/forum-slug to the URL where you want people to end up.

    #81632
    chrishajer
    Participant

    For issue # 1, you might want to try hidden forums:

    https://bbpress.org/plugins/topic/hidden-forums/

    For # 2, in the “started by” data column, just use this in your template’s front-page.php:

    <?php topic_author(); ?>

    You said “started by” right, since “last poster” is already there, right?

    #62785
    Olaf Lederer
    Participant

    Best wordpress hosting I have ever seen: webfaction.com

    must be good for bbpress too :)

    #81614
    hpguru
    Member

    No problems there now. :) Thanks for read.

    #81152
    yaysloths
    Member

    I, too, would find an example of that page code phenomenally helpful…

    quasiamodo
    Member

    Just similair problem as yours…. may be the same….

    I installed the latest version of WordPress on one of our servers, and thought it would be a nice thing to get it cooperating with bbpress.

    Accordingly you have to install bbpress and configured it to cooperate with wp.

    Then on wp you have to install a plugin called WordPress-bbPress syncronization and configure that thing too.

    On top of this module you will find a box asking you for the directory of the bbpress installation.

    Now given the right address of the bbpress installation, it will build up a link between both by using the

    /bbpress/my-plugins/wordpress-bbpress-syncronization/bbwp-sync.php program, as there is obviously needed some code to execute syncronization.

    In my case this file and directory is completely missing, so even with everything coded the right way, missing the program nothing can happen.

    I have even set permissions to up to 777, meaning readable, executable, writable for whoever, but the file is neither generated nor downloaded nor extracted.

    Accordingly I guess it is missing in the installation package, or the routine to write that thing hangs somewhere…

    Hope it was clearer…

    In any case as soon we get an answer here ,and if you need assistance , it will be a pleasure to help…

    Regards

    Quasiamodo

    #81557

    In reply to: LaTeX support

    Olympus
    Member

    No one to check my code please ? ( it’s less than 10 lines if we don’t count the comments )

    Thanks !

    #77049
    Ken
    Member

    thanks you chrishajer for your quick reply. The CSS code above really did what I wanted to do but the footer moves up after changing the code (don’t worry I backed up the original style.css ;-). Here’s the CSS code for the footer

    #footer {

    font-family: Georgia;

    font-style: italic;

    border-top: 1px solid #ccc;

    margin: auto;

    color: #666;

    font-size: 1.0em;

    padding-top: 10px;

    clear: both;

    text-align: right;

    width: 760px;

    }

    Please help if you can ;-)

    #69164
    chrishajer
    Participant

    I have a 1.0.2 installation and the forum_description call looks like this by default:

    <?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?>

    Did you try modifying that array to send before and after nothing?

    <?php forum_description( array( 'before' => '', 'after' => '' ) ); ?>

    Worked for me, on the front page. Or are you looking to modify something else? This modified the forums listed in #forumlist at the bottom of the front page.

    #77048
    chrishajer
    Participant

    In style.css, you would just switch the width and position of the #hottags div and the #discussions div. Instead of what is in style.css now, you would have something like this:

    #front-page #hottags {
    margin-left: 610px;
    width: 150px;
    overflow: hidden;
    }

    #front-page #discussions {
    position: absolute;
    top: 0;
    left: 0;
    width: 590px;
    }

    That’s untested, but that’s basically the procedure. You’re just moving the tags right and the discussions left. You could do it with floats as well but it’s not done like that now.

    #28188
    Ken
    Member

    Hi:

    How do I align the HOT TAGS section to the right?

    I’m using Kakumei Blue 1.0 theme for bbpress

    thank you ;-)

    http://www.movielakay.com/forums/

Viewing 25 results - 22,776 through 22,800 (of 32,481 total)
Skip to toolbar