Search Results for 'code'
-
AuthorSearch Results
-
May 2, 2010 at 11:54 am #87564
In reply to: How to use bb_send_pass_message filter?
Milan Dinić
Participantzaerl, 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)
May 2, 2010 at 11:48 am #87195Milan Dinić
ParticipantI 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.
May 2, 2010 at 11:04 am #87544In reply to: WordPress integration.. again
rich777
Memberhey gerikg,
im going to go through you’re tutorial first thing monday morning

thanks for the resource
May 2, 2010 at 9:40 am #79631In reply to: problem with css menu
kikko088
Memberthank you!
May 2, 2010 at 3:16 am #87587Ashish Kumar (Ashfame)
Participantfollow this tutorial – http://blog.ashfame.com/2009/09/fix-lost-admin-access-bbpress/
just use
a:1:{s:6:"member";b:1;}instead ofa:1:{s:9:"keymaster";b:1;}May 1, 2010 at 7:35 pm #87606In reply to: bb_list_tags() to show like bb_tag_heat_map()
Ashish Kumar (Ashfame)
Participantyou can use this
<?php bb_tag_heat_map(array( 'smallest' => 8, 'largest' =>
); ?>May 1, 2010 at 5:29 pm #87586asorethumb
MemberThanks, but still there I’m afraid.
May 1, 2010 at 4:25 pm #87595In reply to: Is bbPress moving forward ?
leofaoro
MemberThank you. I really like bbpress, it is very lean. I wish I knew how to code so I could also contribute.
Leo
May 1, 2010 at 4:06 pm #79629In reply to: problem with css menu
Ashish Kumar (Ashfame)
Participantyou need to have
list-style-type:none;for your menuMay 1, 2010 at 2:07 pm #31852Topic: problem with css menu
in forum Themeskikko088
MemberI 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
May 1, 2010 at 1:30 pm #87303In reply to: wordpress integration
Terranb
MemberI’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?
May 1, 2010 at 6:07 am #87539In reply to: Error After Installing
Ashish Kumar (Ashfame)
Participantglad that you got it working
May 1, 2010 at 12:30 am #87561In reply to: How to use bb_send_pass_message filter?
zaerl
Participantfunction bb_custom_pass_message ($message)
{
$message .= 'My message.';
return $message;
}
add_filter( 'bb_send_pass', 'bb_custom_pass_message' );May 1, 2010 at 12:25 am #87571In reply to: Errors in bbPress – seen on the Official forums
zaerl
ParticipantWhy 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.
April 30, 2010 at 10:02 pm #87560In reply to: How to use bb_send_pass_message filter?
Milan Dinić
Participantfunction bb_custom_pass_message ($message) {
$message .= ‘My message.’;
return $message;
}
add_filter( ‘bb_send_pass_message’, ‘bb_custom_pass_message’ );
April 30, 2010 at 9:01 pm #87569In reply to: Errors in bbPress – seen on the Official forums
Ashish Kumar (Ashfame)
ParticipantThanks for the link!
Why there is a need for recount? Why would the counts go out of sync at the first place?
April 30, 2010 at 7:45 pm #87323In reply to: Direct code to post url
chandersbs
Memberokay ashfame, will check again, thanx.
April 30, 2010 at 7:44 pm #87322In reply to: Direct code to post url
Ashish Kumar (Ashfame)
Participantdid you check out the patch submitted by foof? Its what you need

I wonder why kevin changed the milestone to 1.5?
April 30, 2010 at 7:01 pm #34156Topic: How to use bb_send_pass_message filter?
in forum TroubleshootingMilan Dinić
ParticipantI 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)
April 30, 2010 at 3:25 pm #87508In reply to: Intermittent 'page not found' on valid uls
chrishajer
ParticipantThis 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 Foundhttp://www.themelab.com/2008/04/17/is-your-bbpress-installation-returning-404-errors/
I also think a simple solution was to include wp-load.php instead of wp-blog-header.php. Which one are you including now?
April 30, 2010 at 2:24 pm #86679In 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.
April 30, 2010 at 1:47 pm #87321In reply to: Direct code to post url
zaerl
ParticipantMaybe. It seems that Akismet has done a mess here.
April 30, 2010 at 6:43 am #84568In reply to: bbPress mobile version
chandersbs
MemberOkay, 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.
April 30, 2010 at 12:10 am #87320In reply to: Direct code to post url
chandersbs
Member@zaerl weird enough, just today im seeing your replies, was it caught by akismet??
April 30, 2010 at 12:07 am #87319In reply to: Direct code to post url
chandersbs
Memberhey 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… )
-
AuthorSearch Results