Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,401 through 21,425 (of 32,481 total)
  • Author
    Search Results
  • #87564
    Milan Dinić
    Participant

    zaerl, you helped me find a problem. I used filters above on 1.0.2 version where they don’t exist so it couldn’t work. It’s because on computer I have a trunk version where this is implemented.

    So on trunk version my code works as intended. Thank you both zaerl and ashfame.

    (btw, bb_send_pass filter doesn’t exists in 1.0.2 too, there is just a function with that name)

    Milan Dinić
    Participant

    I have found solution for problem. Since I based form on Subscribe to Topics, I mistakenly used it’s arguments. So working function should be:

    function bb_checkbox_subscription_update($post_id) {

    global $bbdb, $bb_current_user, $bb_post, $topic, $wp_taxonomy_object;

    $bb_post=bb_get_post($post_id);

    if (!empty($_REQUEST)) {

    $checkbox_status = $_REQUEST;

    if ( ‘add’ == $checkbox_status ) {

    $tt_ids = $wp_taxonomy_object->set_object_terms( $bb_current_user->ID, ‘topic-‘ . $bb_post->topic_id, ‘bb_subscribe’, array( ‘append’ => true, ‘user_id’ => $bb_current_user->ID ) );

    } elseif ( ‘remove’ == $checkbox_status ) {

    // I hate this with the passion of a thousand suns

    $term_id = $bbdb->get_var( “SELECT term_id FROM $bbdb->terms WHERE slug = ‘topic-$bb_post->topic_id'” );

    $term_taxonomy_id = $bbdb->get_var( “SELECT term_taxonomy_id FROM $bbdb->term_taxonomy WHERE term_id = $term_id AND taxonomy = ‘bb_subscribe'” );

    $bbdb->query( “DELETE FROM $bbdb->term_relationships WHERE object_id = $bb_current_user->ID AND term_taxonomy_id = $term_taxonomy_id” );

    $bbdb->query( “DELETE FROM $bbdb->term_taxonomy WHERE term_id = $term_id AND taxonomy = ‘bb_subscribe'” );

    }

    }

    }

    Also, I made a code for improvements I suggested in first post. You can see it here. Also check this ticket.

    #87544
    rich777
    Member

    hey gerikg,

    im going to go through you’re tutorial first thing monday morning :)

    thanks for the resource

    #79631

    In reply to: problem with css menu

    kikko088
    Member

    thank you! :)

    follow this tutorial – http://blog.ashfame.com/2009/09/fix-lost-admin-access-bbpress/

    just use a:1:{s:6:"member";b:1;} instead of a:1:{s:9:"keymaster";b:1;}

    #87606

    you can use this

    <?php bb_tag_heat_map(array( 'smallest' => 8, 'largest' => 8)); ?>

    asorethumb
    Member

    Thanks, but still there I’m afraid. :/

    #87595
    leofaoro
    Member

    Thank you. I really like bbpress, it is very lean. I wish I knew how to code so I could also contribute.

    Leo

    #79629

    In reply to: problem with css menu

    you need to have list-style-type:none; for your menu

    #31852

    Topic: problem with css menu

    in forum Themes
    kikko088
    Member

    I have a problem with this menu, http://www.endurodoc.net/forum/ if you go to “Officina” or “Varie” the sub page have a square in the right top, where is the problem for you?

    also another problem, the apostrophe on the “Endurod” forum, the description of forum :(

    kikko088

    #87303

    In reply to: wordpress integration

    Terranb
    Member

    I’m having a similar problem when I try calling require_once(dirname(__FILE__) . '/../wp-load.php'); so I can bring my theme into bbpress.

    This is a WP 3.0 multiuser site on subdomains. The funny thing is I’ve had this working on test sites using WP 3 single user and WP 3 multiuser on subdirectories.

    Is there something about it being on subdomains that might cause this? Might differences in the WP .htaccess file cause it?

    #87539

    In reply to: Error After Installing

    glad that you got it working :)

    #87561
    zaerl
    Participant
    function bb_custom_pass_message ($message)
    {
    $message .= 'My message.';
    return $message;
    }

    add_filter( 'bb_send_pass', 'bb_custom_pass_message' );

    #87571
    zaerl
    Participant

    Why there is a need for recount? Why would the counts go out of sync at the first place? :/

    Cause bbPress uses a cache system in order to minimize database queries and sometimes it goes out of synch.

    #87560
    Milan Dinić
    Participant

    function bb_custom_pass_message ($message) {

    $message .= ‘My message.’;

    return $message;

    }

    add_filter( ‘bb_send_pass_message’, ‘bb_custom_pass_message’ );

    #87569

    @gerikg

    Thanks for the link!

    Why there is a need for recount? Why would the counts go out of sync at the first place? :/

    #87323
    chandersbs
    Member

    okay ashfame, will check again, thanx.

    #87322

    @chandersbs

    did you check out the patch submitted by foof? Its what you need ;)

    I wonder why kevin changed the milestone to 1.5?

    #34156
    Milan Dinić
    Participant

    I am having problem with using filter bb_send_pass_message. What I want to do is to add some text to end of message but with any code I tried it was without success. Anyone used it or knows how to use it?

    Thanks in advance.

    (this filter is defined in /bb-includes/functions.bb-users.php)

    #87508
    chrishajer
    Participant

    This issue has been reported before with deep integrated sites. Every page of the forum will return a 404, I believe, but depending on the browser, you sometimes see the content instead of the errors. Here are the headers returned from your forum:

    Response Headers - http://www.johnthebaptisttv.com/bbpress/

    Date: Fri, 30 Apr 2010 15:20:41 GMT
    Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    X-Powered-By: PHP/5.2.11
    X-Pingback: http://www.johnthebaptisttv.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Last-Modified: Fri, 30 Apr 2010 15:20:41 GMT
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8

    404 Not Found

    http://www.themelab.com/2008/04/17/is-your-bbpress-installation-returning-404-errors/

    https://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load#post-13156

    I also think a simple solution was to include wp-load.php instead of wp-blog-header.php. Which one are you including now?

    #86679

    In reply to: Continuing Topic Icons

    gerikg
    Member

    @all, paulhawke did a great job with topic icons. If he has time it would be nice if he can do forum icon as well. I’ll try to keep in touch with him about it.

    @zaerl you’re doing a great job with the plugins. Sorry I wasn’t able to run it fully to get you the bugs. Is the email you sent me the same as your paypal?

    @kevinjohngallagher I agree on starting fresh, I will try to contribute and help as much as possible to ease the stress of the coders that are helping on this site/program.

    #87321
    zaerl
    Participant

    Maybe. It seems that Akismet has done a mess here.

    #84568

    In reply to: bbPress mobile version

    chandersbs
    Member

    Okay, perhaps the good folks around here can help me with this.

    I checked the website that Kevin posted here, and it asks me to put this code:

    require_once('mobile_device_detect.php');
    mobile_device_detect(true,false,true,true,true,true,true,false,false);

    Now, I have no clue in which file exactly to put that code, or how the code should be wrapped.

    Any suggestions?

    If i can find a way to redirect the browser to a different mobile version URL, that would be a good start already, to start working on a mobile version.

    If once it works, i will sure as hell put the code here.

    #87320
    chandersbs
    Member

    @zaerl weird enough, just today im seeing your replies, was it caught by akismet??

    #87319
    chandersbs
    Member

    hey foof, i checked the page, and the source code of post.php don’t actually now what u wanted to show me (or where my answer is… )

Viewing 25 results - 21,401 through 21,425 (of 32,481 total)
Skip to toolbar