Search Results for 'code'
-
AuthorSearch Results
-
May 3, 2009 at 12:23 am #73314
In reply to: Same Directory as WOrdpress?
johnhiler
MemberNightgunner5 is right – you shouldn’t install them in the same directory. You have two real options if you’re using the same server for both:
1) install the blog in the root and the forum in a subfolders
2) install them both in separate subfolders
There’s a good explanation on why this all matters here:
https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101#post-17412
Personally, I use a separate subdomain for each bbpress install… so I guess that’s yet another option.
Good luck!
May 2, 2009 at 10:34 pm #73313In reply to: Same Directory as WOrdpress?
Ben L.
MemberDon’t install it in the same directory – Try
WORDPRESS DIRECTORY/forums
.May 2, 2009 at 4:33 pm #7835Topic: BBPRESS error from finalise installation
in forum Installationbenjamincano
MemberMy problems is described below, trying to integrate buddypress 1.0, WPMU 2.7.1 and bbpress latest alpha. Im doing it according to the buddypress forum isntallation (without the cookies since its not needed) but i get this error over and over, Ive tried all the forums and possible solutions over a 100 times (no joke) would anyone please help?
DB Error in bb_install::process_form_finalise_installation: Table ‘db62393_fabricadesuenos_comunidad.wp_options’ doesn’t exist
SELECT
option_value
FROM wp_options WHEREoption_name
= ‘auth_salt’ LIMIT 1DB Error in bb_install::process_form_finalise_installation: Table ‘db62393_fabricadesuenos_comunidad.wp_options’ doesn’t exist
SELECT
option_value
FROM wp_options WHEREoption_name
= ‘secure_auth_salt’ LIMIT 1DB Error in bb_install::process_form_finalise_installation: Table ‘db62393_fabricadesuenos_comunidad.wp_options’ doesn’t exist
SELECT
option_value
FROM wp_options WHEREoption_name
= ‘logged_in_salt’ LIMIT 1Warning: Cannot modify header information – headers already sent by (output started at /nfs/c04/h02/mnt/62393/domains/comunidad.fabricadesuenos.net/html/foro/bb-includes/backpress/class.bpdb.php:293) in /nfs/c04/h02/mnt/62393/domains/comunidad.fabricadesuenos.net/html/foro/bb-includes/functions.bb-core.php on line 838
May 2, 2009 at 2:54 am #73274In reply to: What do you consider an “important action”?
johnhiler
MemberHey Kevin! I completely agree on the 0.9 compatibility… Nightgunner5 was kind enough to convert his moderator suite plugin to also support v 0.9!
https://bbpress.org/forums/topic/what-do-you-consider-an-important-action#post-28517
I’ve installed and tested it on three separate 0.9 bbPress installs, and it’s working great.
May 2, 2009 at 1:52 am #73273In reply to: What do you consider an “important action”?
kevinjohngallagher
MemberLooking good Nightgunner5, and great to see you back.
While possibly a little self serving, i’d strongly suggest doing our upmost to make this plugin work for 0.9 for a number of reasons:
1) 0.9 is officially the stable branch and has been for over 9 months now.
2) 1.0.6alpha is nowhere near being the beta.
3) The next alpha is going to break alot of functions and plugins, to the point that _ck_ has already stated she’s not going to fix her plugins from 1.0.7a -> 1RC1 at the earliest. Aiming this code for 1.0.6a, is probably going to give you more work in the long run.
4) I know that Sam has posted on the blog that the proposed function changes might not happen now, but there’s still alot of open tickets out there; and alot of works been done on BBpress since 1.0.6a alpha in January. Add in to that all the work done for “talkpress”, and there’s no way the next version is goin to be near RC1 level.
5) WordPress 2.8 is coming with a new authentication system (yes new to 2.5 and 2.6/2.7’s authentication system), so even if we do get a new release of BBpress at the same time, there’s a whole bunch of coding to be done and tested as an alpha – let alone having the 1.0.beta released at the same time.
Either way, and with the best will in the world, 0.9 is going to be the “stable” release of BBpress for at least the summer. Today’s the 2nd of May, and we’ve not seen an update to 1.0.6a. If 1.0.7 is released on Monday, we’ll have at least 4 weeks of user reports and bug fixes before the next release. If that’s the beta and not not another alpha release, then we’ll have a few weeks of testing/fixing before an RC, and then at least a week before the final release.
Obviously it’s GREAT that you’re building this plugin, and from what i’ve read – it looks ace ( I’m about to install at home in a few minutes), but given the very changeable nature of alpha’s, it’s probably wise to focus more on 0.9 computability; and then making a version1 port when it’s in beta or release candidate. Just my two cents mate.
May 1, 2009 at 11:18 pm #73310In reply to: AJAX Spell Checker
the_Wish
MemberThank you for your replies, I didn’t think about a spell check on the browser side. This should do for now.
May 1, 2009 at 8:48 pm #73104In reply to: Can’t install properly
Ben L.
MemberHe did post a link, but if you don’t want to click it: http://img254.imageshack.us/img254/8066/blankbutton.png
The button’s html value is blank. It’s not CSS.
Here’s the code to load the text for the button: https://trac.bbpress.org/browser/tags/0.9.0.4/bb-admin/class-install.php#L602
May 1, 2009 at 6:53 pm #73272In reply to: What do you consider an “important action”?
Ben L.
MemberCheck the bottom of your
modlog.php
to see if it’s the same as the bottom of https://plugins-svn.bbpress.org/bbpress-moderation-suite/trunk/modlog.phpAlso, the messages that are already logged won’t change.
May 1, 2009 at 5:57 pm #72748In reply to: Why is phpBB better than bbPress?
johnhiler
MemberYah I can do all that account stuff myself… it’s just starting to take a half hour a day or so, so was starting to think about self-serve options…
May 1, 2009 at 4:28 pm #72744In reply to: Why is phpBB better than bbPress?
Ben L.
MemberOther than changing and deleting their own username, those are all great ideas! Changing usernames messes up lots of code, and deleting your own account?!
The Role Manager has been submitted to the bbPress Plugin Repository – in some future version, it will have 0.9 compatibility (if 1.0 isn’t released first).
The BuddyPress PM plugin is for WordPress MU, not bbPress, so you’d be switching over from a forum to a blog hosting social network. The existing PM plugin probably needs to be scrapped — it would be easier to start over (for me, at least), but importing the old data would help everyone that had Private Messaging installed.
The avatars plugin (in my opinion) is doing the right thing the wrong way. By making the plugin a “real plugin” (no editing core files, no putting files into other directories) and splitting the avatars into separate folders, the plugin would be a lot better.
As for resetting passwords, or for that matter, the entire password system of bbPress as a whole, the idea is already being discussed.
May 1, 2009 at 4:10 pm #72743In reply to: Why is phpBB better than bbPress?
johnhiler
MemberA good role manager would be awesome. Right now I have to create a new plugin every time I create a new Role… kind of a pain.
If someone took the existing PM code and then refactored it and removed security holes… that would be huge. It’d be particularly awesome if it used the same database model, so the old PM’s were still readable! I’ve heard BuddyPress is working on a PM plugin, so I was considering just switching over to that (if I could use it without installing BuddyPress).
The Avatars plugin out there is hard to configure (there are at least 3 separate files you have to install in different places), and it dumps all avatars in a single folder (not sure if that scales). It’d be fantastic if someone could clean that up.
Fundamentally, bbPress needs better user account management. Users can’t easily reset their passwords or look up their usernames… and there’s no ability to change or delete your own username. Those would be huge additions.
Thanks for asking!!
May 1, 2009 at 3:04 pm #72741In reply to: Why is phpBB better than bbPress?
Ipstenu (Mika Epstein)
ModeratorYes but defining ‘better’ is really subjective!
Look, better for ONE of my sites is a barebones bb. Better for the other is Invision. It has to do with what you, as an admin, want to support, what kind of users you have, what you need to integrate your site with, etc etc etc.
In short: Any answer you get will be based on the specific individual needs.
You’re never going to get a definitive answer. Instead, you need to ask a better question: “What features do you feel are important in forum software?” Then you get a list of the default features in each board software and list them all.
From THAT, you can make a breakdown of ‘Who handles which plugin better?’ and have multi-choice.
Which would kind of be a cool app to help people pick the right forum software, but it still rolls back to ‘what’s right for you?’
May 1, 2009 at 1:26 pm #72739In reply to: Why is phpBB better than bbPress?
Ipstenu (Mika Epstein)
ModeratorBetter is subjective.
I don’t want a cash mod. I don’t want PMing. I don’t need a full role manager.
So I vote for ‘other’ as ‘none’
May 1, 2009 at 7:25 am #73269In reply to: What do you consider an “important action”?
johnhiler
MemberJust installed this on a live forum! A bit nervous, but everything seems to be working great so far.
A few questions/thoughts:
* The Moderation Log lives under the Users tab… what do you think of putting it under the Plugins or Manage tab?
* When a topic deletion is logged or marked as spam, the moderation log says, Username (key) deleted topic “Topic Name” which is great. It’s linked directly to the deleted topic though – maybe there could be an extra ?view=all appended to it?
* Is it possible to also log when topics are closed and opened?
This is super exciting – thanks for all of this!
May 1, 2009 at 4:32 am #72896In reply to: Registrations and Spam.
deadlyhifi
ParticipantThe updated plugin has been working ok except it has major flaws
1 – The user displayname is not being put into the database – therefore all new users appear as a blank when they post.
2 – registration error messages aren’t displayed. (e.g. Invalid email)
The fix was straightforward. The bb_new_user function needed updating as so:
if (!function_exists('bb_new_user')) :
function bb_new_user( $user_login, $user_email, $user_url, $user_status = 0 ) {
global $wp_users_object, $bbdb;
// is_email check + dns
if ( !$user_email = bb_verify_email( $user_email ) )
return new WP_Error( 'user_email', __( 'Invalid email address' ), $user_email );
if ( !$user_login = sanitize_user( $user_login, true ) )
return new WP_Error( 'user_login', __( 'Invalid username' ), $user_login );
// user_status = 1 means the user has not yet been verified
$user_status = is_numeric($user_status) ? (int) $user_status : 0;
$user_nicename = $_user_nicename = bb_user_nicename_sanitize( $user_login );
if ( strlen( $_user_nicename ) < 1 )
return new WP_Error( 'user_login', __( 'Invalid username' ), $user_login );
while ( is_numeric($user_nicename) || $existing_user = bb_get_user_by_nicename( $user_nicename ) )
$user_nicename = bb_slug_increment($_user_nicename, $existing_user->user_nicename, 50);
$user_url = bb_fix_link( $user_url );
$user_registered = bb_current_time('mysql');
$password = wp_generate_password();
$user_pass = wp_hash_password( $password );
$user = $wp_users_object->new_user( compact( 'user_login', 'user_email', 'user_url', 'user_nicename', 'user_status', 'user_pass' ) );
if ( is_wp_error($user) ) {
if ( 'user_nicename' == $user->get_error_code() )
return new WP_Error( 'user_login', $user->get_error_message() );
return $user;
}
$user_id = $bbdb->insert_id;
$options = bb_get_option('approve_user_registration_options');
bb_update_usermeta( $user_id, $bbdb->prefix . 'capabilities', array('waitingapproval' => true, 'member' => true) );
approve_user_registration_send_pass( $user_id, $password );
do_action('bb_new_user', $user['ID'], $user['plain_pass']);
return $user['ID'];
}
endif;although I am using a fairly hacked together install with some bleeding edge stuff in there so you may need to experiment a little.
May 1, 2009 at 3:15 am #71642In reply to: WPMU 2.7 cookie integration
dmbware
MemberI am having the same problem ! i followed the video to a T and than added the HASH. No Cookie tie at all, but I do have DB Integration. My question for you is do we add these lines of code in both config files?
define(‘COOKIE_DOMAIN’, );
and define path ?
May 1, 2009 at 2:17 am #73285In reply to: Installed: Try logging in, does nothing
Ben L.
Memberbb-config.php
April 30, 2009 at 6:49 pm #73292In reply to: Domain transfer fails
Ben L.
MemberRemove
index.php
from the forum url in the files and the database.April 30, 2009 at 3:54 pm #73283In reply to: Installed: Try logging in, does nothing
Ben L.
MemberbbPress shouldn’t be tightly integrated with WordPress. There are too many things that won’t work. Try removing the line of code that includes WordPress into bbPress.
April 30, 2009 at 1:59 pm #73268In reply to: What do you consider an “important action”?
Ben L.
Member/bb-admin/admin-base.php?plugin=bbpress_moderation_suite_modlog is the only place moderation logs are. I know the way I talk about it is a bit confusing.
April 30, 2009 at 7:52 am #72202superann
MemberHi Citizenkeith, I just saw this now… you’d put the hack at the end of pm_new_message. So my function now looks like this:
function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){
global $bbdb, $bb_table_prefix;
$created_on = bb_current_time('mysql');
$id_receiver = intval($id_receiver);
$id_sender = intval($id_sender);
$pmtitle=substr(strip_tags($pmtitle),0,64);
remove_filter('pre_post', 'post_regulation');
$message=substr($message,0,2048);
$message=force_balance_tags($message);
$message=apply_filters('pre_post',$message,0,0);
$message=apply_filters('post_text',$message,0);
$bbdb->query("INSERT INTO ".$bb_table_prefix."privatemessages
(id_sender, id_receiver, pmtitle, message, created_on)
VALUES
('$id_sender', '$id_receiver', '$pmtitle', '$message','$created_on')");
$to = bb_get_user_email($id_receiver);
$pm_link = bb_get_option('uri') . 'message.php?id=' . $bbdb->insert_id;
$message = __("You have a new private message: %1$s nFrom: %2$s nn%3$s ");
mail( $to, bb_get_option('name') . ':' . __('Private Message'),
sprintf( $message, $pmtitle, get_user_name($id_sender), $pm_link ),
'From: ' . bb_get_option('from_email')
);
}April 30, 2009 at 3:07 am #73267In reply to: What do you consider an “important action”?
johnhiler
Member1. Ah thanks for adding that!! Boo for bbPress having no hook for moving topics…
2. Ah so sorry to have missed that…
One last thought: what do you think of merging the various moderation logs into a single page? As a keymaster/mod, it’d be a lot easier to monitor what’s going on on the site if all the logs are on the same page.
Or maybe as an alternative, the various moderation logs could all have convenient links to each other?
ps I owe you a contribution – please email me at john at weddingbee dot com, and we can coordinate!
April 30, 2009 at 3:01 am #57164In reply to: Registration Email Not Being Sent – new issue
golan03
MemberIf you don’t have backpress you can also modify your bb_mail function (in bb-includes/pluggable.php)
just add the email you want as return-path.
before ::
$headers = trim(join(“rn”, $headers));
after::
$headers = trim(join(“rnReturn-Path: from@mydomain.comrn”, $headers));
It is not elegant but it works.
Remember it is hardcoded, you’ll have to change it manually if you want to change your from@mydomain.com later.
April 29, 2009 at 2:52 pm #73073In reply to: Sub subforum – Change CSS
Ben L.
MemberWith that code, the last sub forum already has
bb-last-child
, and if you change<td colspan="3">
to<td colspan="3" class="subsubforum">
, subsubforums have a class.April 29, 2009 at 7:12 am #7823Topic: HELP?
in forum Installationalberto505
MemberHi Alberto here,
I need some help installing my Avatars and Upload Photos in my BBPress Forum. Can someone guide me on what to do?? Do I need to go into a template to add code to make the avatars display?
-
AuthorSearch Results