Search Results for 'code'
-
AuthorSearch Results
-
May 3, 2010 at 3:28 pm #87668
In reply to: permalink doesn't work
ghiboz
Memberok, I removed from the .htaccess the row with
Options -MultiViewsSincerely I don’t know what do this row, but seems to work fine everything
thanks for the support and for the desturb!
May 3, 2010 at 3:23 pm #87667In reply to: permalink doesn't work
ghiboz
Memberecco, trovato!
forum/.htaccess: Option MultiViews not allowed hereMay 3, 2010 at 3:19 pm #87651In reply to: Forum permission
johnhiler
MemberI have had a fantastic experience using “Hidden Forums”… I’ve used it on a number of installs over a long period of time, and have never had an issue.
Zaerl-visibility definitely sounds intriguing!
I see you built on the Hidden Forums code for the plugin… would love to hear more about what drove your “old and broken” comment. Thanks!
May 3, 2010 at 3:02 pm #87600In reply to: Problem with WordPress User Role Map
Ashish Kumar (Ashfame)
Participant
May 3, 2010 at 3:58 am #87642In reply to: Slashes being added when using certain symbols
Terranb
MemberI just added the code I pasted above to my theme’s header.php file and that seems to have done it. Any reason this is a bad idea?
May 3, 2010 at 3:45 am #87641In reply to: Slashes being added when using certain symbols
Terranb
MemberYep, I have it integrated with wordpress. I’ll give those fixes a shot.
Is there anyway I could add them without hacking core? Maybe as a plugin? This post (https://bbpress.org/forums/topic/slashes-being-added-in-front-of-apostrophes#post-12563) suggests adding this:
if (function_exists('wp_head')) {
// or another check to see if WordPress has been included
add_filter('get_topic_title', 'stripslashes');
add_filter('get_post_text', 'stripslashes');
}to the “WordPress Integration” plugin. Since that plugin is in wordpress, not bbpress it didn’t seem like it would work, but I tried anyway and nothing. One person said it worked. Where might they have been adding it?
Then there is hacking core files, which I’d rather not do since it makes updating more difficult.
May 2, 2010 at 6:50 pm #87622In reply to: bbpress login & registration in wp
kikko088
Membermy bbpress and wordpress ara just integrating, if i’m login with wp i’m login also with bbpress, but while the registration with bbpress the user must insert name, email, site with wordpress the user must insert only a nickname and email…I want to menage the registration only with bbpress….I try to put the html code for login but there is a little problem, until the user isn’t logged in the sidebar there is the login form, but when the user login in the sidebar remains the login form instead “Welcome, user, ecc…..”
There is another way for put login form in the sidebar?
thank you
May 2, 2010 at 5:46 pm #87579In reply to: Errors in bbPress – seen on the Official forums
chrishajer
ParticipantI still don’t believe there is any truth to the existence of a cache. Does anyone have proof of this?
I believe deleting either users or posts or topics, by whatever process, does not properly reset the last poster, number of voices, number of posts, number of replies, etc. Which is why I think this is related to either bugs or not fully developed or poorly performing plugins.
The functions exist, as ashfame explained, to fix problems. It should not happen on a regular basis.
From the “recount” page of the 1.1-alpha admin:
To minimize database queries, bbPress keeps it’s own count of various items like posts in each topic and topics in each forum.
If the plugin or even built-in functionality does not accurately update the count, then you need these recount functions. If the code were perfect (core and plugins) then these functions would need never be used.
May 2, 2010 at 5:39 pm #87620In reply to: bbpress login & registration in wp
kikko088
Memberthank you
May 2, 2010 at 5:14 pm #87619In reply to: bbpress login & registration in wp
Ashish Kumar (Ashfame)
ParticipantYes! Copy the code for bbPress login (html) and paste it into a widget, it should work.
zaerl
ParticipantPlease notice that if you specify:
define( 'BB_LANG', 'it_IT' );then the mo/po must be called it_IT.mo/po. Take my italian translation. It is guaranteed.May 2, 2010 at 3:59 pm #87574In reply to: Errors in bbPress – seen on the Official forums
chrishajer
Participant@zaerl: “Cause bbPress uses a cache system in order to minimize database queries and sometimes it goes out of synch.”
Really? Where do you see evidence of this in action?
I think the problem with the negative counts here is a bug.
I think the problem with the incorrect voices/posts is probably a bug.
I think the need for recounting is because sometimes plugins don’t work cleanly when moving or deleting posts or topics or users. Maybe when you delete a topic that has posts the counts are not recounted or recounted properly. I think bozo and Akismet probably figure into it.
I think the need for recounting is almost always because some code did not account for changing the count somewhere.
In a perfect world, there would be no need for recounting functions. But as we all know, software is not a perfect world, so recounting helps clean things up. But I don’t think it has anything at all to do with caching. I’d love to see that I am wrong about this.
AFAIK, there is no bb-cron equivalent of wp-cron, which seems like it would be a perfect place for cleaning up cached information, if it existed. Where is this cache of information? I thought the topic count, post count, voices, post count, etc, we all stored in the database. No caching involved (other that whatever is built in to MySQL.)
Anyone know any different?
kikko088
Memberis the same…
I change the line but nothing…define( ‘BB_LANG’, ‘it_IT’ );
kikko088
Milan Dinić
ParticipantYou also need to edit file bb-config.php. Replace line define(‘BB_LANG’, ”); with define(‘BB_LANG’, ‘code’); where code is code of your langiage. eg. sr_RS.
May 2, 2010 at 11:54 am #87564In 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?
-
AuthorSearch Results