Search Results for 'code'
-
AuthorSearch Results
-
April 22, 2008 at 2:22 pm #63926
chrishajer
ParticipantTrunk means the error has been fixed in the code repository but it hasn’t been packaged into a new release yet.
You can get the latest trunk code here:
https://trac.bbpress.org/changeset/1428/branches/0.9?old_path=%2F&format=zip
I have no idea if there are any problems with that release though. You only need one tiny fix for this problem.
Also, it seems like you have a lot of interesting things going on with your installation based on the number of threads posted here. I suspect there is more going on than just a couple tiny, unrelated problems. If you can afford to do it without losing any work, you might want to try a fresh installation and start from scratch.
April 22, 2008 at 1:41 pm #64371In reply to: New user registration email missing recipient email
djp
MemberHi all
Plz help me, I’ve read everything there is to read about problem emails & have also tried installing sambauer’s bb_mail fix plugin with no luck.
I had bbpress 0.9 installed on a previous hosting provider & the system would send out emails to new registrants without any problem.
However, I have moved to a new hosting provider that requires authentication for the mail to be sent, and will not allow “localhost” as the outgoing mail server. Where do I find the php file that allows me to change it from localhost to a specific “outgoing mail server” domain?
Is it even possible?
Thanks
April 22, 2008 at 5:10 am #63047In reply to: Open Links in new window
chrishajer
Participantjaydedman
I think my dislike of it started when tabbed browsers came around. There is no
target="_newtab"
, and I want to control where the windows open. If I want it in a new tab or new window, I do that with my browser. Let me control it rather than specifying where it happens.I dislike it more on some days than others, not as much as I dislike <marquee> and <blink>, but I still tend to dislike it. It’s just a personal preference though. Here’s something related with a couple discussions linked to it:
http://www.456bereastreet.com/archive/200603/the_target_attribute_and_opening_new_windows/
April 22, 2008 at 3:19 am #64389In reply to: slug permalinks can lead to db problems
bobbyh
MemberOur bbpress forum does roughly 20-25k pageviews per weekday. We also have a WordPress blog (with caching) that does around 75k pageviews per weekday. The boards and blog are integrated, and share the same database.
The database is the only thing that runs on a (mt) dedicated server with 1GB of RAM (the Extreme package), and its my.cnf is a slightly tweaked version of a my-huge.cnf.
The database was really running ragged a week ago, with a load average between 2.5 and 4.0. The first change I made was described in the first post (indexing topic_slug in bb_topics, tag in bb_tags and forum_slug in bb_forums). That really helped a lot, because on a popular forum, there are apparently enough new topics that the query cache gets invalidated frequently. By making this query a lot more efficient with an index, the load average fell to between 0.4 and 0.7.
Then, after adding the 4-column index, the load average plunged to between 0.03 and 0.20. It’s pretty amazing.
Indices are AWESOME!
April 22, 2008 at 2:03 am #63046In reply to: Open Links in new window
Sam Bauers
ParticipantLuckily the sort of people who turn off javascript also happen to be the sort of people who hate having new windows forced on them.
I agree with chrishajer that forcing new windows is bad. If I want a new window or tab then I can make that happen myself. But when a new window is forced on me I can’t make it not do it.
April 22, 2008 at 1:31 am #3248Topic: How do I customize emails to new users?
in forum Troubleshootingjaydedman
MemberI just realized that when a new user registers, they are sent an email with Gravatar information. http://showinabox.tv/forum/topic.php?id=8#post-286
I see nothing in the bbPress admin panel under the Gravatar plugin that lets me customize this email. Unfortunately, the wording of this email seems to confuse people.
“New Gravatar Email is blahblah@NewMexicast.com.
New Verification Code is *******
It is an 8-letter string. Note that before you successfully verify your new Gravatar Email, your Gravatar will not work. “
Anyone know how to customize this email…or send out an automatic welcome email so I can be more clear?
Jay
April 21, 2008 at 7:57 pm #64458In reply to: IE 6 breaking tables.
refueled
MemberI am the developer of this theme, and I also saw your post in my forums (will answer shortly.)
First: This was my first theme and an old one, it needs to be updated. Which is probably why you are having issues. I plan to update all of my bbPress themes this week.
Second: As a temporary fix, try:
#front-page #discussions {
width: 590px;
overflow: hidden;
float: right;
}Let me know what happens.
April 21, 2008 at 6:46 pm #64456In reply to: IE 6 breaking tables.
chrishajer
ParticipantHow about just adding
background: #FFFFFF;
to your css for #front-page #discussions?April 21, 2008 at 1:52 pm #62515In reply to: Proposed method for file attachments and uploads
_ck_
ParticipantI agree with not doing the actions in the templates – that was a mistake WordPress did for awhile eh? The hooks can go inside
function edit_form
in the core, no?Just for clarification, because this one is important,
do_action('post_edit_form')
should go AFTER the</form>
is closed.do_action('pre_edit_form')
should be before the<form
and
do_action('edit_form')
should be inside the form.If all the post_form’s are actions, so should be the edit_forms. I don’t think any are filters, wouldn’t make sense…?
This will help other plugins like my Signatures too.
Less template edits needed, makes it easier for users.
Of course I still have to support some 0.8.3 people so it’s going to be awhile before this solves all problems but at least newer installs can benefit.
April 21, 2008 at 1:48 pm #64475In reply to: Hidden forums?
fokjulle
MemberJust tested it, and it works.
April 21, 2008 at 1:44 pm #64448In reply to: IE 6 breaking tables.
chrishajer
ParticipantI was able to get it to display properly in IE6 by changing the CSS for the #frontpage #discussions.
Old
#front-page #discussions {
margin-left: 170px;
width: 590px;
}New
#front-page #discussions {
float: right;
width: 590px;
}Basically, that change makes the #discussions div float to the right inside the #main div, rather than relying on the 170px of left margin. Not sure why IE6 does that and I didn’t investigate, but that fixed it for me. There might be other places you need to do that: I’m not sure. That was just for the home page of the forum.
April 21, 2008 at 12:37 pm #64418In reply to: Error when deleting entire topic…
fokjulle
MemberHere is config.php:
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘*********’); // The name of the database
define(‘BBDB_USER’, ‘********’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘*********’); // …and password
define(‘BBDB_HOST’, ‘**********’); // 99% chance you won’t need to change these last few
define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does
define(‘BBDB_COLLATE’, ”);
define(‘BB_LANG’, ”); // not have these two contstants in them, DO NOT define them
// If you are installing for the first time, leave them here
// Change BB_SECRET_KEY to a unique phrase. You won’t have to remember it later,
// so make it long and complicated. You can visit https://www.grc.com/passwords.htm
// to get a phrase generated for you, or just make something up.
// If you are integrating logins with WordPress, you will need to match the value
// of the “SECRET_KEY” in the WordPress file wp-config.php
define(‘BB_SECRET_KEY’, ”); // Change this to a unique phrase.
// If you are running multiple bbPress installations in a single database,
// you will probably want to change this.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’
// to enable German language support.
define(‘BB_LANG’, ”);
/* Stop editing */
if ( !defined(‘BB_PATH’) )
define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );
require_once( BB_PATH . ‘bb-settings.php’ );
?>
Yes, I use PHPMyAdmin…
April 21, 2008 at 12:02 pm #63043In reply to: Open Links in new window
Sam Bauers
ParticipantThe target attribute is deprecated (for those who care), use this instead:
<?php
/*
Plugin Name: Links in new window
*/
//add onclick="window.open(this.href); return false;" to post links
function bb_links _in_new_window( $text ) {
$text = preg_replace('|<a (.+?)>|i', '<a $1 onclick="window.open(this.href); return false;">', $text);
return $text;
}
add_filter('pre_post', 'bb_links _in_new_window');
?>April 21, 2008 at 8:35 am #62228In reply to: Attachments / File Uploads Plugin
_ck_
ParticipantHowToGeek, that’s easily doable, just more settings to fill out
That reminds me that I’ll have to give a list of accepted file types and sizes above or below the upload form.
April 21, 2008 at 8:30 am #62513In reply to: Proposed method for file attachments and uploads
_ck_
ParticipantThe ticket was months back, I’d have to search.
It’s fairly simple in theory though, why not mimic the existing hook structure for new posts to match editing existing posts:
pre_post_form
->pre_edit_form
post_form
->edit_form
post_post_form
->post_edit_form
April 21, 2008 at 5:05 am #63042In reply to: Open Links in new window
chrishajer
ParticipantCourtesy of _ck_ http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/
<?php
/*
Plugin Name: Target Blank
Description: append target="_blank" to all links
Plugin URI: http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/
Author: _ck_
Version: 0.04
*/
//add target=_blank to post links
function bb_target_blank( $text ) {
$text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
return $text;
}
add_filter('pre_post', 'bb_target_blank');
?>April 20, 2008 at 11:25 pm #64413In reply to: Error when deleting entire topic…
Sam Bauers
ParticipantI imagine you have this set in your bb-config.php:
define('BBDB_COLLATE', 'utf8_general_ci');
.
When it should be (in your case):
define('BBDB_COLLATE', 'latin1_swedish_ci');
April 20, 2008 at 3:58 pm #64345In reply to: IE: error on page.
chrishajer
ParticipantCrossed posts.
I found your ticket at trac after I suggested posting a new one there.
Thanks.
April 20, 2008 at 3:53 pm #64343In reply to: IE: error on page.
chrishajer
ParticipantWhen I was not logged in, no errors. When logged in, I see a Javascript error:
Error: favoritesToggle[1 === isFav ? "removeClass" : "addClass"] is not a function
Source File: http://trashmedia.co.za/forums/bb-includes/js/topic-js.php?ver=20080401
Line: 55I have a 0.9.0.1 installation and I checked there and I have the same exact same error.
It looked like the error was related to favorites, so I figured I would mark something as a favorite and see if the error would go away, but it didn’t.
There is already a ticket filed for this problem with a solution posted there as well:
April 20, 2008 at 3:45 pm #64412In reply to: Error when deleting entire topic…
chrishajer
ParticipantI have no idea what that is, but I can try and help until someone more knowledgeable comes along.
Did you set any of these three lines to something different than the default in your bb-config.php:
define('BBDB_CHARSET', 'utf8');
define('BBDB_COLLATE', '');
define('BB_LANG', '');I found this online:
http://www.datutorials.com/mysql/mysql_ref_manual_Charset.php
What is your MySQL version?
chrishajer
ParticipantAdd this to the header.php in your template:
<link rel="shortcut icon" href="<?php bb_option('uri'); ?>favicon.ico" type="image/vnd.microsoft.icon" />
Then, make sure you have a favicon.ico in your forum’s root directory. You could also put the favicon in another directory (like the website root folder) and reference it there like this
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
instead.April 20, 2008 at 2:04 am #3229Topic: Alter Loop for Paged Forum Pages?
in forum Troubleshootingjenz
MemberI really like how this works on the front page:
$forum_id = 1;
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10")
foreach($forum_one_topics as $topic) :
?>
but would like to use this for the whole site. Is it possible to make this the logic of the entire site loop?
April 20, 2008 at 1:29 am #51585In reply to: Full Content of Most Recent Post on Front-Page?
jenz
MemberIf I used:
<?php
$forum_id = 1;
$number_of_topics = 7;
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_id DESC LIMIT 0,$number_of_topics")
?>
<?php
foreach($forum_one_topics as $topic) : $forum_one_topic_posts = get_thread( $topic->topic_id); ?>(as see at the beginning of this topic) – how can I show the initial topic time on the front page instead of the last reply time?
April 19, 2008 at 10:57 pm #64406In reply to: How to integrate bbPress into static HTML ?
chrishajer
ParticipantI think you would probably want to edit the template files to include those blocks of code from your static page into bbPress, not the other way around. bbPress needs to do its thing, but you can edit the template files and include the sidebar and header into the bbPress pages.
April 19, 2008 at 8:08 pm #62510In reply to: Proposed method for file attachments and uploads
_ck_
Participantfel64: No, there’s been hooks for the post form for as long as I can remember.
Unfortunately that’s only for new posts. For editing existing posts there is absolutely no way to affect the template without editing it. There’s no hooks for edit_form() or any of it’s sub-functions or the template loader (the loader does the include AFTER the hook so nothing can be placed afterwards. I requested some hooks many month ago but they may have been missed (or ignored). This plugin will require (one, simple) edit of the
edit-post.php
template.(In theory it could be done via the bb_get_footer but that’s really messy and the footer hook is AFTER the footer has been rendered).
-
AuthorSearch Results