Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,326 through 32,350 (of 32,429 total)
  • Author
    Search Results
  • #49415

    In reply to: Importing from phpBB

    marky
    Member

    My mistake; you’re absolutely right — it only displays deleted posts. :-)

    #49413

    In reply to: Importing from phpBB

    brunotorres
    Member

    Marky, just after posting here I realized I forgot to convert the bbcodes. I’ll try to make it shortly.

    About the announcements and sticky, I’ll give a look too.

    But I still don’t have a clue why posts don’t appear on the admin. If you or anyone know why, please let me know.

    #50330

    In reply to: Using RSS Feeds

    I believe there are several plugins for WordPress (and even a sidebar widget) that pull content from RSS feeds.

    I’d use the widget since I don’t know the names of the plugins off the top of my head. I’m sure Google does, though :)

    #49410

    In reply to: Importing from phpBB

    marky
    Member

    OK, I gave the script a shot and it imported everything very nicely!

    The only snag is that the bbCodes weren’t stripped or converted in the process, so many of the posts end up looking like gibberish. Also, sticky threads and announcements weren’t converted as such, although that’s less of an issue.

    I certainly hope there’s enough demand for this script to justify adding these features. Otherwise, nice job! :-)

    #50405

    In reply to: Creating live URLs

    larmir
    Member

    Got it!

    Didn’t use back ticks – just straight code and it works fine.

    Don’t know how I missed this.

    #50117

    Nope. Fresh from the download page. I did check db.php and it does have code in there if the 2nb db is declared, it just seems not to catch it.

    I’m gonna try it stuffed away on on a live server somewhere. I don’t want to accidentally hose my MU install until I know I can get it working.

    #50164

    Copy bb-templates/topic.php to my-templates/

    Find and remove

    <li id="resolution-flipper"><?php _e('This topic is') ?> <?php topic_resolved(); ?></li>

    This will likely be removed by default in future versions of bbPress.

    #50125

    Make sure there is no whitespace (spaces, extra lines, tabs, etc.) before the <?php in your plugin nor after the ?>

    #49409

    In reply to: Importing from phpBB

    marky
    Member

    brunotorre, you’re a life saver! I’ll give the script a test shot tonight, and I’ll let you know how it goes. :-)

    #50231

    In reply to: Cookies and WPMU

    mozey
    Member

    mdawaffe, thanks for the response, okay,

    example.com/someblog

    my forum is in example.com/forums

    i’m not loading wpmu, i was using at a point of time

    MU_BB was true,

    include_once(‘wp-config’)

    (the syntax was right)

    However, i took that off since it was messing up my template, it was assuming that /forums is someone that wanted to register.

    should i solve that issue FIRST? if so, any ideas? :)

    however, back to main topic, what should i play with in order to share the sessions?

    #50259
    Pravin Paratey
    Participant

    Finally got it to work. Patch:

    Index: bb-includes/registration-functions.php

    ===================================================================

    --- bb-includes/registration-functions.php (revision 502)

    +++ bb-includes/registration-functions.php (working copy)

    @@ -35,9 +35,9 @@

    return array($user_id, $password);

    } else {

    bb_update_usermeta( $user_id, $bb_table_prefix . 'capabilities', array('member' => true) );

    - bb_send_pass( $user_id, $password );

    + #bb_send_pass( $user_id, $password );

    do_action('bb_new_user', $user_id);

    - return $user_id;

    + return array($user_id, $password);

    }

    }

    Index: bb-templates/register-success.php

    ===================================================================

    — bb-templates/register-success.php (revision 502)

    +++ bb-templates/register-success.php (working copy)

    @@ -4,6 +4,6 @@

    <h2 id="register"><?php _e('Great!'); ?></h2>

    -<p><?php printf(__('Your registration as <strong>%s</strong> was successful. Within a few minutes you should receive an email with your password.'), $user_login) ?></p>

    +<p><?php printf(__('Your registration was successful.<br /><br />Username: <b>%s</b><br />Password: <b>%s</b>'), $user_login, $user_password) ?></p>

    <?php bb_get_footer(); ?>

    Index: register.php

    ===================================================================

    — register.php (revision 502)

    +++ register.php (working copy)

    @@ -28,7 +28,9 @@

    $user_safe = false;

    if ( $user_login && $user_safe && $user_email && !$bad_input) :

    – $user_id = bb_new_user( $user_login, $user_email, $user_url );

    + $userinfo = bb_new_user( $user_login, $user_email, $user_url );

    + $user_id = $userinfo[0];

    + $user_password = $userinfo[1];

    foreach( $profile_info_keys as $key => $label )

    if ( strpos($key, 'user_') !== 0 && $$key !== '' )

    bb_update_usermeta( $user_id, $key, $$key );

    #50258
    Pravin Paratey
    Participant

    Umm, sourceforge has stopped the ablity for webservers to send email.

    http://sourceforge.net/docman/display_doc.php?docid=4297&group_id=1

    point 12.

    Now I’ll have to figure out how to use cron :|

    #50257
    Pravin Paratey
    Participant

    The email functions are in registration-functions.php in bb-includes.

    The mail function doesnt do anything on sourceforge. I wrote a sample php file and ran it:

    <html>

    <body>

    <?php

    mail( ‘pravinp[at]gmail[dot]com’, “subject”, “message”, ‘From: pravinp[at]gmail[at]com’);

    ?>

    </body>

    </html>

    And it didnt send me the email.

    Anybody know how I can fix this?

    #50124

    Works for me too. Thanks to both of you!

    NO, wait when I try to open the tags.php I recieve this message:

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/forum/my-plugins/latest-topics.php:9) in /home/username/public_html/forum/bb-includes/functions.php on line 1304

    TIA

    #50142
    ear1grey
    Member

    <?php tag_heat_map( 60, 150, '%', 40); ?>

    Yay, percentages work too! It’s not 8am yet and that’s made my day.

    #50177

    mdswaffe,

    many thanks. you guys did an awesome job. I wish more and more people join the bbpress. :=)

    Franky

    #50212

    The easy way is to find get_thread( $topic_id, $page ) in /topic.php and change it to get_thread( $topic_id, $page, true ).

    The better way is to use a plugin so that you aren’t modifying any core files. (This is untested)

    <?php

    /*

    Plugin Name: Reverse Post Order

    Plugin URI: https://bbpress.org/forums/topic/76

    */

    function reverse_post_order() {

    global $topic_id, $page, $topic, $bb_current_user;

    global $bb_db_override, $posts, $forum, $tags, $user_tags, $other_tags, $list_start;

    $bb_db_override = true;

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

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

    $tags = get_topic_tags ( $topic_id );

    if ( $bb_current_user && $tags ) {

    $user_tags = get_user_tags ( $topic_id, $bb_current_user->ID );

    $other_tags = get_other_tags ( $topic_id, $bb_current_user->ID );

    } elseif ( is_array($tags) ) {

    $user_tags = false;

    $other_tags = get_public_tags( $topic_id );

    } else {

    $user_tags = false;

    $other_tags = false;

    }

    $list_start = ($page – 1) * bb_get_option(‘page_topics’) + 1;

    post_author_cache($posts);

    }

    add_action( ‘bb_topic.php_pre_db’, ‘reverse_post_order’ );

    ?>

    #50241

    Try require_once('/path/to/wp-blog-header.php'); instead of wp-config.php.

    #50227

    In reply to: Cookies and WPMU

    $bb->passcookie = PASS_COOKIE

    Might work if you load wp before you load bb.

    Is your bbPress URL a sudbirectory of your mu URL? If so, you should be able to use the $bb->wp_home and $bb->wp_siteurl variables.

    #50122

    Oops, my fault. Do exactly what you did but put

    global $bb;

    directly under the function line.

    <?php

    function front_page_topics() {

    global $bb;

    $bb->page_topics = 2;

    }

    add_action( ‘bb_index.php_pre_db’, ‘front_page_topics’ );

    ?>

    #50174

    If you have any blocked users, you should run upgrade_160() found in bb-admin/upgrade.php. Otherwise, you shouldn’t have to worry about anything.

    Just overwrite the files and you should be good to go (backup first!)

    #50186
    Zambu
    Member

    OK, I figured it out finally…you can control the color of these background fields on the front page by changing the color code in the style.css file at these lines:

    .deleted.alt {

    background: #ff9999;

    }

    Of course! “deleted.alt”…so obvious of a name for this option in the style sheets…why didn’t I think of this 9 hours ago! ;-)

    #743

    Topic: Cookies and WPMU

    in forum Installation
    mozey
    Member

    i managed to get bb and mu working from mu’s users tables THANK GOD. Now, i need them to have the same sessions,

    “name $bb->usercookie USER_COOKIE

    name $bb->passcookie PASS_COOKIE

    path $bb->cookiepath COOKIEPATH

    path $bb->sitecookiepath SITECOOKIEPATH

    domain $bb->cookiedomain COOKIE_DOMAIN”

    (documentation)

    SO, what would the code look like in my config.php?

    $bb->passcookie = $wp->{‘PASS_COOKIE’}; ?

    ..

    This is not workig as nice. any clues?

    #741
    ear1grey
    Member

    Giving someone moderator rights across the whole site seems a bit generous. Is there any way I can restrict Moderator privileges to specific forums?

    i.e.

    Fred moderates Forum A,

    Jim moderates Forum B,

    Sheila moderates Forum A and C, etc…

    EDIT: Moderator, this is probably better suited to “Requests and Feedback”, but I can’t move it… be my guest if you agree :)

    #50193

    In reply to: About Freshness

    eddyshi
    Member

    thanks your reply ^_^

Viewing 25 results - 32,326 through 32,350 (of 32,429 total)
Skip to toolbar