Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,801 through 25,825 (of 32,481 total)
  • Author
    Search Results
  • #71604

    In reply to: Let ask again …

    You know, at the risk of sounding like a snot, I’ve actually had a similar thought. The only thing stopping me from saying the same thing is that I have no idea what else it is that Sam does. :)

    #69436

    In reply to: tag remove fail

    @ganzua: I predict that you are integrated with WordPress, and that your jQuery isn’t being loaded correctly.

    I will prove this theory by asking for you to add a topic to your favorites on your forum, and report back and let me know if it works. :)

    #71567
    Daniel Juhl
    Participant

    You main site only has PR2, which is low/very low for the main page, therefore you can’t expect much pagerank to go further down on you forum. You “earn” pagerank, it’s not just a gift from Google :)

    #71521

    In reply to: Adding Theme Pages

    slambert1971
    Member

    So am I to assume there is no way to add pages to bbPress? Oly the default pages can be used? Darn, might have to look for something else. :(

    #4748
    slambert1971
    Member

    I am working on a project where I will use bbPress in a large corporate environment and styling it very differently then a standard forum. Sorry, I can’t show it to you because it is part of our Intranet. I have the front end layed out almost exactly as I want it and presented the prototype to our CIO. He likes the front end, but did not like the back end (admin) area.

    The problem is that he manage forums page is not very intuitive to the non-technical person. Because we will have non-technical people managing the forums, I need to change how the manage forums page looks, without editing core code if possible. I will also be adding links in the front end to those people who have access to manage a given forum to edit the forum details.

    This leads to the second part. Each forum is supposed to have a short intro, long intro and an associated photo. Are there any plugins that add fields and/or photos to a forum, or will I need to write that? I have searched here but haven’t found any yet. The less code I have to right the better, just need to know where to start this process.

    Thanks.

    #4747
    wiseacre
    Member

    Are you working for Automattic, Sam? Is it your job bbpress developing? I’m asking because of

    1. http://bbpress.org/blog/2008/01/the-future-for-bbpress/
    2. There are 18 open bugs – http://trac.bbpress.org/query?status=new&status=assigned&status=reopened&milestone=!1.5&type=defect&order=priority
    3. 5 days there are NOT any code uploads – http://trac.bbpress.org

    ganzua
    Member

    a nice substitute for some weighty bbPress documentation in the meantime

    Actually some of us are looking forward the next chapter ;-) This one should go to the “documentation” section as an entry or something like this.

    #70394
    wwc
    Member

    Thanks, hoppie, everything works now! I found some code in bbPress that looks like it’s meant to warn users when the PHP MySQL libraries are missing, but I wasn’t getting the warning message. I’ll look into filing a bug report about this.

    _ck_
    Participant

    Sorry I missed the earlier questions.

    And to post code, make sure you put it between backticks `

    #49427

    In reply to: Importing from phpBB

    copperblade
    Participant

    lingmiester, I looked through the code and I didn’t see anything that sends email to anyone. I did see a “joke” about sending the emails to spammers though.

    Is there any update on this, or newer script for importing phpbb2 ?

    tomwi
    Member

    figured this out!

    but can’t get the damn code to post right. if anyone is interested let me know how to post a code snipplet without the forum eating it… it outputs like this:

    *post title*

    Posted by: *user* in *forum*.

    This is how phpBB already works. ;)

    I think its a good idea though.

    frooyo
    Member

    I believe I have a simple but highly effective fix.

    Since the vast majority of forum traffic is for non-logged in users AND, since the only time a forum page changes is if a POST is made … why not implement a very basic disk caching system that caches the content for the FrontPage and Topic page for non-logged in users.

    Here is the pseudo code:

    // Front page


    if (not logged in)

    …….. serve disk cache

    …………….if (disk cache not present)

    ……………………generate page and save to disk

    else (logged in user)

    ……..generate page (PHP)

    // Topic page


    if (not logged in)

    ……..serve disk cache

    ……..if (disk cache not present)

    …………….generate page and save to disk

    else (logged in user)

    ……..generate page (PHP)

    // post a comment function


    delete Topic cache for non-logged in users

    delete Front page cache for non-logged in users

    The benefit being, now for any non-logged in user – the Front page and individual Topic pages will be cached once some submits a new comment.

    And if you are logged in, non of this effects you.

    Thoughts?

    #71196
    fwilson789
    Member

    Come on, there has to be a way to do this!

    It worked fine for me with the current stable release, but the login was broken, so I installed the unstable. The login started working, but wp_head() stopped.

    bb-config.php:

    include('../wp-config.php');

    /**
    * The base configurations of bbPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys and bbPress Language. You can get the MySQL settings from your
    * web host.
    *
    * This file is used by the installer during installation.
    *
    * @package bbPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for bbPress */
    define('BBDB_NAME', 'bbpress');

    bb-templateskakumeifront-page.php:

    <?php get_header(); ?>
    ... page ...
    <?php get_footer(); ?>

    #67924
    frooyo
    Member

    @sambauers & @andersson

    I believe I have a simple but highly effective fix.

    Since the vast majority of forum traffic is for non-logged in user AND, since the only time a forum page changes is if a POST is made … why not implement a very basic disk caching system that does the following pseudo code:

    // Front page


    if (not logged in)

    …….. serve disk cache

    …………….if (disk cache not present)

    ……………………generate page and save to disk

    else

    ……..generate page (PHP)

    // Topic page


    if (not logged in)

    ……..serve disk cache

    ……..if (disk cache not present)

    …………….generate page and save to disk

    else

    ……..generate page (PHP)

    // post a comment function


    delete Topic cache for non-logged in users

    delete Front page cache for non-logged in users

    The benefit being, now for any non-logged in user – the Front page and individual Topic pages will be cached once some submits a new comment.

    And if you are logged in, non of this effects you.

    tomwi
    Member

    right now I am using:

    echo "<li><a>topic_id."'>".$result->topic_title."</a>Posted by: <a>topic_poster."'>".$result->topic_poster_name."</a> in </li>";

    #65143
    chrishajer
    Participant

    Are the functions capitalized in the same manner? Windows doesn’t seem to care about capitalization, but Linux does. I’ve had that trouble with WordPress plugins before, where it seems the plugin was developed on Windows and the function was called

    function DoThis() {, so calling dothis() stops working on Linux where it was fine on Windows.

    Could that be a possibility?

    martenk
    Member

    Started running bbpress 1.0-Alpha6 recently on a productionsite… Probably a bad idea but everything seems to work… A few plugins that don’t work but other than that it’s all good! :)

    #71532
    joshposh
    Member

    I found out that the CSS class for the definition of the pagination was missing in the CSS file of the theme. I’ve added it but can’t figure out how to change the space between the page numbers. I tried padding, margin and letter-spacing and they all worked for the text (“next” & “previous”) but not for the page numbers :/

    EDIT: OK, works now but looks still stupid *sigh*

    http://f.imagehost.org/0960/p1.png

    #4735
    joshposh
    Member

    I can’t add links in posts properly :/

    When I try to add a link I do it like that:

    <a href="http://www.mysite.com/">My Site</a>

    but the link generated by bbPress in the post isnt linking to

    http://www.mysite.com/

    but to

    http://www.mysite.com/

    :(

    #70905
    walkerevans
    Member

    The forum isn’t “inside” the blog. The templates are all just set up to look the same across the site. :D

    #4733
    deadlyhifi
    Participant

    I would like to modify the bb_list_tags to show who the author of that tag was (to moderators)

    So I created a functions.php in my theme and have copied function bb_list_tags from functions.bb-templates.php file. And done the following (note the changes to the function have not yet been made)

    <?php
    // to override bb_list_tags to show tag author

    remove_filter('bb_list_tags', 'bb_list_tag');

    function bb_list_tag( $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 = attribute_escape( $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>";
    endswitch;
    echo $r;
    }

    add_filter('bb_list_tags', 'bb_list_tag');

    ?>

    Is this the correct way to change a core function? Changing anything within it doesn’t appear to override the original function.

    #71527
    chrishajer
    Participant

    I am going to take a SWAG:

    SimplePie supports RFC 822, RFC 2822, RFC 3339, and ISO 8601 datestamps. My guess is Magpie does as well. I would start by trying a RFC 2822 timestamp.

    Sat, 24 Jan 2009 08:09:12 -0500

    #4730
    joshposh
    Member

    [Sorry if this is the wrong place to ask, I couldn’t find a better one]

    I know it a lot to ask but could someone help me with a short piece of code please? I never worked with PHP and would like to insert a bit of HTML into a piece pf PHP. I would really appreciate any help.

    The Problem:

    I have some not so web savvy users at my board and I’d like to make the pagination of threads better to see for them.

    At the moment it’s kinda tiny and has no spaces between the page numbers for some strange reason.

    (Screenshot of how it looks at my board: http://f.imagehost.org/0070/toosmall.png)

    I guess I found the place to change it in the post-template.php

    $output = '';
    if ( $multipage ) {
    if ( 'number' == $next_or_number ) {
    $output .= $before;
    for ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) {
    $j = str_replace('%',"$i",$pagelink);
    $output .= ' ';
    if ( ($i != $page) || ((!$more) && ($page==1)) ) {
    if ( 1 == $i ) {
    $output .= '<a href="' . get_permalink() . '">';
    } else {
    if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">';
    else
    $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">';
    }

    }
    $output .= $link_before;
    $output .= $j;
    $output .= $link_after;
    if ( ($i != $page) || ((!$more) && ($page==1)) )
    $output .= '</a>';
    }
    $output .= $after;
    } else {
    if ( $more ) {
    $output .= $before;
    $i = $page - 1;
    if ( $i && $more ) {
    if ( 1 == $i ) {
    $output .= '<a href="' . get_permalink() . '">' . $link_before. $previouspagelink . $link_after . '</a>';
    } else {
    if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $link_before. $previouspagelink . $link_after . '</a>';
    else
    $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $previouspagelink . $link_after . '</a>';
    }
    }
    $i = $page + 1;
    if ( $i <= $numpages && $more ) {
    if ( 1 == $i ) {
    $output .= '<a href="' . get_permalink() . '">' . $link_before. $nextpagelink . $link_after . '</a>';
    } else {
    if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $link_before. $nextpagelink . $link_after . '</a>';
    else
    $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $nextpagelink . $link_after . '</a>';
    }
    }
    $output .= $after;
    }
    }
    }

    if ( $echo )
    echo $output;

    return $output;
    }

    And I would like to change the visual output to this

    <p><strong>  Next Page ></strong></p>

    for “Next”

    and

    <p><strong><  Previous Page  </strong></p>

    for “Previous”

    Thanks for your time :)

    [and please excuse my poor English xD]

    #4725
    bean_zj
    Member

    After a successful installation, the main page shows as follow:

    ” You must specify a table prefix in your bb-config.php file. “

    I AM sure my config.php has defined table prefix as follow:

    ” $bb_table_prefix = ‘bb_’; “

    after I add the code, my main page shows as follow:

    ” $bb_table_prefix = ‘bb_’;You must specify a table prefix in your bb-config.php file. “

    What is going wrong?

Viewing 25 results - 25,801 through 25,825 (of 32,481 total)
Skip to toolbar