Forum Replies Created
-
I’m in – pravinp(at)gmail(dot)com
Are you sure it is a .htaccess rewrite issue? Is your main site also sluggish? Your .htaccess file contains a *lot* less code than mine. And my site isn’t exactly slow.
I timed http://ochremusic.com/ using my wristwatch. The main page takes 14 seconds to load. 6 seconds for the site to even begin loading. Clicking forums immediately took me 5 seconds for the page to load.
That makes it 6 seconds for the DNS to resolve(?) 8 seconds for the main site and 5 seconds for the forums.
In reply to: bbpress info in wordpress?Could you just post the relevant parts of css here? By relevant, I mean the all-enclosing div tag and the 3 divs for the 3 columns. I’m thinking it’s a padding + width issue. IE and firefox handle these differently. For one, Width = width + padding. For the other Width is width without the padding.
In reply to: Code in post pluginI don’t know of any plugins for bbpress. But you can modify wp-syntax (which uses geshi highlighter). Maybe you can make it into a plugin too
In reply to: email registrations/password resets not senthttp://pravin.insanitybegins.com/articles/running-bbpress-on-sourceforge/
This article tells you how you can setup bbpress 0.8.1 on sourceforge
In reply to: Users dont receive password after registrationhttp://pravin.insanitybegins.com/articles/running-bbpress-on-sourceforge/
Read this for a full resolution. It emails users their passwords too
In reply to: Reverse the display of the messageslook for these lines (20-23) in
topic.php
if ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page );
$forum = get_forum ( $topic->forum_id );change to
if ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page, 1 );
$forum = get_forum ( $topic->forum_id );get_thread
function changedIn reply to: Users dont receive password after registrationThey are line numbers.
Index: register.php
=============================================
tells you the filename.
http://www.dustyant.com/articles/running-bbpress-on-sourceforge
That link has the patch file without wrapping.
In reply to: Users dont receive password after registrationTrent:I don’t know if this should go in the main branch. This patch is for those people who can not send mail from their servers.
master501: If you don’t know how to use
patch
, just open the files in notepad and change the lines marked with – to the ones marked with +In reply to: Users dont receive password after registrationMe too. It’s not done yet. Trying v0.8.1 now
In reply to: Combined Register + Postbumping this up so someone can do it :p
In reply to: What do you do for a living?I work on search engines. I do mostly NLP stuff.
In reply to: Users dont receive password after registrationFinally 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 );
In reply to: Users dont receive password after registrationUmm, 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
In reply to: Users dont receive password after registrationThe email functions are in
registration-functions.php
inbb-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?
In reply to: Users dont receive password after registrationIf that is too much work, can someone point me to the function that emails the user?
If I run mail from the command prompt at sourceforge, it is successful. So the problem must lie somewhere else.