Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,526 through 23,550 (of 32,468 total)
  • Author
    Search Results
  • #79052
    Mark
    Member

    There’s a reason for that. :) Most of us still remember the days of Netscape 2.0, when everybodies website was inside of frames, they all blinked, every frame had a different background and almost every button was some kind of animation.

    We’re all trying to pretend that it never happened. Animated what now?

    #79081
    Mark
    Member

    It’s called deep integration, and it’s being discussed all around you right now. ;)

    https://bbpress.org/forums/tags/integration

    https://bbpress.org/forums/search.php?q=deep+integration

    #79072
    Mark
    Member

    Which pages are you getting the 404 header on? I just crawled my local copy quickly with firebug and was getting 200’s across the board. I’m probably missing a few of the pages though, I just loaded it up and started clicking away. :)

    #31721
    johnnydoe
    Member

    heyho,

    so i guess this is going to be my last question and i should be done now with my bbpress template .

    so i need a placeholder link for normal logged in folks like

    <?php if ( is_admin() yadda yadda php xy bla bla() ) : ?>
    <table>
    <tr>
    <td>
    <li><?php bb_admin_link();?></li>
    </td>
    </tr>
    </table>

    or else

    <table>

    <tr>
    <td>
    <li><?php bb_any_link();?></li>
    </td>
    </tr>
    </table>

    what kind of bbpress/php tags do i need?

    thankssssss a bunch

    #79024

    Guh. Last stab at it, the action only runs on a valid tag being added (rather than just an attempt being made to add one). Beyond that though, who knows, I’m running 2.8.2 SVN so it’s always hard to tell what’s just me :)

    #79069
    Greg
    Participant

    Looks like WordPress is setting the 404 because it doesn’t recognize the bbPress page that is loading.

    When the global WP object is constructed, the function WP->handle_404 calls “status_header( 404 )”.

    As a workaround, I modified “handle_404” to lay off the 404 if “BB_PATH” is defined (i.e. when a bbPress page is loading). This seems to work ok.

    Here’s the new “handle_404” at around line 445 in “wp-includes/classes.php”.

    function handle_404() {
    global $wp_query;

    if ( !defined( 'BB_PATH' ) && (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {

    // Don't 404 for these queries if they matched an object.
    if ( ( is_tag() || is_category() || is_author() ) && $wp_query->get_queried_object() ) {
    if ( !is_404() )
    status_header( 200 );
    return;
    }
    $wp_query->set_404();
    status_header( 404 );
    nocache_headers();
    } elseif ( !is_404() ) {
    status_header( 200 );
    }
    }

    johnnydoe
    Member

    yeah that’s what i’m doing since 2 days (i allways try things first befor i ask), and this is kinda annoying if you’re in a “productive flow” with your template design.

    aaaaanyway i may find this pisser … one day :D

    thanks kawa

    johnnydoe
    Member

    just the the other way round haha , i need to hide those existing messages completely. :D

    Not quite sure what you’re asking, but if you’re just trying to display a message to non-logged in users, use something like:

    <?php if ( !bb_is_user_logged_in() ) : ?>
    Welcome, please log in or register!
    <?php endif; ?>

    in front-page.php

    My coding is pretty terrible too ;P I just learn from poking around in bbPress and WordPress and breaking things a lot, so you’re going about it the right way :P

    johnnydoe
    Member

    well not really kawa i’ve just copy & pasted the message from this forum here (@chand it’s right on top of this forum), my forum is in german and i thought that sounds maybe chinese for a few if i post the german message so i copied the one from here. :D

    other than that , kawa you’re right i’m one of the most brilliant php coders you’ve ever seen, my backend know how is like …well ughhh beyond words lol

    however, i use your trick with those fields, but yet an advice regarding to the “guest welcome/login message” ?

    #79022

    There might be a fatal database error, and database errors might hidden by default, $bbdb->suppress_errors( false ); will turn them on if they are. Obvious question is, does that work without any database interaction?

    #79020

    It’s not necessarily very obvious if it is run unless you get something to echo because it’s all hidden under AJAX

    <?php
    function status_tags_update( $a, $b, $c ) {

    var_dump($a);
    var_dump($b);
    var_dump($c);

    }

    add_action('bb_tag_added', 'status_tags_update',100,3);
    ?>

    I put that in my functions.php and it happily threw out some mangled HTML with the dumps underneath the tag list :)

    #79035

    In reply to: IPB3 to bbPress

    I’d have a go at it if IPB wasn’t paid software :/ kind’ve hard to develop for something you don’t have really, which might be why it’s difficult to find a viable converter. Do you know if there are any formats it will export to natively?

    #79019
    benbeltran
    Member

    Yeah… apparently add_action('bb_tag_added', 'status_tags_update',100,3); won’t work. I don’t think the action is running. Which is odd.

    I’ll keep on looking, any new help is appreciated. And thanks for the tip.

    #31725
    Greg
    Participant

    The Google webmaster tools are showing my forum pages as 404 (Not Found), but if I browse to the pages they seem fine in the browser.

    So I went to http://web-sniffer.net/ and found that all of my forum pages are returning HTTP status code 404, but the correct page content (?!).

    I tried a simple static page in the forum folder, and that works fine.

    Any ideas as to what might be going on here?

    #79010
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?> <a href="<?php post_link($topic->topic_last_post_id); ?>">Latest</a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>

    Just change the word Latest to whatever you like :)

    #79009
    DKB
    Participant

    It works but i get it on the wrong row.

    Here is the code:

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>

    how can i get it after the topic pages and can i add i image instead of latest?

    #79037
    fifthhouse
    Member

    Thank you for responding to my post :)

    #79041
    Tomcraft1980
    Member

    COOL!

    That was all! Thx so much! ;-)

    #79040

    There’s no such thing as bb_print_scripts. bbPress is partially integrated with WordPress functions (BackPress), so in bbPress it remains wp_print_scripts.

    @johnnydoe: In your theme’s register.php, before the line if ( is_array($profile_info_keys) ) : (above the <?php tag before that), put:

    <?php unset( $profile_info_keys['user_url'], $profile_info_keys['from'], $profile_info_keys['occ'], $profile_info_keys['interest'] ); ?>

    That will take out the extra fields in the register form. What you did was take out the part that outputs all the form fields :D

    I can’t see the “to participate” part either, did you manage to get hold of the bbPress.org template? ;)

    #78956

    In reply to: Displayname check

    How fun, your install is ignoring a exit (die) command :D got a link to your forum?

    That or 1.0.2 is radically different in how it structures when that function is called D:

    #79061

    In reply to: Enhance your 404 page

    <?php
    $redirect_301 = array(
    '/ddd/' => '/forum/newlocation',
    );

    list( $request, $query ) = explode( '?', $_SERVER['REQUEST_URI'], 2);
    $request = rtrim( $request, '/' );

    $forum = dirname( $_SERVER['PHP_SELF'] );

    foreach( $redirect_301 as $from => $to ) {
    $from = $forum . '/' . trim( $from, '/' );
    if( $from != $request )
    continue;
    if( !empty( $query ) )
    $to .= '?' . $query;
    wp_redirect( bb_get_uri ( $to ), 301 );
    exit();
    }

    ?>

    That might support IIS, the native WP function doesn’t use the Location: header so I guess that’s an issue?

    http://support.microsoft.com/kb/q176113/

    @chandersbs: It’s nice :D I tidied it up to support trailing slashes no matter what and query strings amongst other things. I think. That or it’ll break :D

    I dropped the need to have the forum directory included in the $redirect_301 array as well, that’s automatically added now. Just change bb_get_uri ( $to ) to $to if you need to point the redirect outside the forum directory or use ..

    #79042

    Easy enough to do

    <?php if (40 <= $topic->topic_posts) : ?>I'M ON FIRE<?php endif; ?>

    Put that in your front-page.php and/or forums.php somewhere inside the parts that say foreach( $something as $topic ), probably best before <?php bb_topic_labels(); ?>. Change 40 to whatever you want the topic to change at and the on fire bit to something… fiery.

    #31716

    Topic: Logo?

    in forum Themes
Viewing 25 results - 23,526 through 23,550 (of 32,468 total)
Skip to toolbar