Anyone who is having trouble with the server please do this:
-open a command line and type tracert www.rayd.org
-Copy the resulting text and email it to thansen@qualitytech.com
-If it starts timing out over and over, just press CTRL-C to stop the process, copy and send it on.
Due to spammers, sometimes a lot of the countries in the far east get blocked. Sending that tracert text will allow us make sure legitimate users are allowed through the firewalls.
Thanks!
Your PHP version is rather old, use this:
if (!function_exists('file_put_contents')) {
function file_put_contents($filename, $content) {
if ($fp = fopen($filename, 'w')) {
$result = fwrite($fp, $content);
fclose($fp);
return $result;
}
else {
return false;
}
}
}
Enhancement request: could the notification include the name of the member who made the post?
So,
There is a new post on: POSTTITLE
By: MEMBERNAME
URL
I should have made that sooner because it could have caused confusion. The Link in the first posting no longer shows the first template because I changed the template, cause of problems that coud happen with google.
That’s how the first one looks like:
http://www.weirdtherapy.com/images/borderline-green-01-shot.jpg
can some Mod change the link in the first posting pls? 
I also added a note at the template that people should keep the policys in mind – I will try to make one that is more policy friendly
Alright veb, it’s updated… so make your change 
Although it MIGHT mess you up a little because I think your plugin will have to be added into mine when Avatar is used (open the new bb-avatar.php file and you’ll see why). Plus, with the new release of Avatar, if people do Signature the way you describe, it won’t work.
I don’t know, what do you think? Maybe we should just combine the two, or have multiple releases. I don’t know how people are going to want to implement.
Glad you used my code as a base
I will be updating my Avatar code very soon so that functions.php no longer has to be changed. I’ll expect you to update this when I finish
I think this would be an idea for later versions (around 1.0 or so) … very nice idea
You want to read out the two single vars from the db, am I right?
So I suggest using $variable = $bbdb->get_var("SELECT...");.
I also had to hard code message.php for it to work.
<– “if (wp_knu_)
$touser = $bbdb->get_row(“SELECT * FROM “.wp_knu_.”users WHERE ID = $toid”);
else
$touser = $bbdb->get_row(“SELECT * FROM “.bb_knu_.”users WHERE ID = $toid”);
pm_user_form( $touser, ” );
exit;”–>
message.php is the main one. That is where you would hardcode it.
Trent
hmmm…I’m having the same problem, where I get the error about the bbpress database not existing. I’m integrating with WPMU instead of regular wordpress but that shouldn’t really cause an issue should it?
Is there a place we can hardcode it to wp_ instead of bb_?
That about sums it up, sorry I didn’t mention what it actually did.
If someone can help me with the code to call the right browser in a plugin, then I will work on the templates needed to show up in the browser. It is just the plugin code and calling /mytemplates/mobile/ for the templates that would be difficult for me!
Trent
I was able to edit that file and the option is removed when creating a new topic, and old threads will still accept replies.
Here is the change I made:
Remove lines 22 through 28:
<?php if ( is_tag() || is_front() ) : ?>
<label for="forum_id"><?php _e('Pick a section:'); ?>
<?php forum_dropdown(); ?>
</label>
<?php endif; ?>
and insert:
<input type="hidden" name="forum_id" id="forum_id" value="1" />
so that it looks like this:
<?php endif; ?>
<input type="hidden" name="forum_id" id="forum_id" value="1" />
<p class="submit">
That assumes your forum_id is 1. You can check the HTML source of your rendered page to verify the forum_id.
Making those changes worked for me. The drop down for selecting a forum to move a topic is still available for admin.
I tried that first thing. The problem is that removing that section of the code makes every thread appear “closed” to replies.
Hi,
Heres my first plugin which was pretty much copied from the Avatar plugin, but hey, now I can contribute my 2 cents
(Thanks to the guy who made that too)
To install you must open functions.php (in bb-includes, line 1388) and add:
'sig' => array(0, __('Signature'))
to the end (before last closing bracket)
This is the code:
<?php
/*
Plugin Name: Signature
Author: veb
Version: 1.0
*/
function post_sig() { // function to use in page php to get the sig
if ( get_sig( get_post_author_id() ) )
echo get_sig( get_post_author_id() );
}
function get_sig ( $id ) { //function to return sig lfrom database
global $bbdb, $bb_current_user;
$user = bb_get_user( $id );
$profile_info_keys = get_profile_info_keys();
if ( $id && false !== $user )
if ( is_array( $profile_info_keys ) )
foreach ( $profile_info_keys as $key => $label ) {
if ( 'sig' == $key )
return $user->$key;
}
}
?>
Save as bb-signature.php in my-plugins.
Have fun
Table creation is automatic. It should install if you navigate to your domain/pm.php or put the message code on your front page.
Hehe … I think I found the bug. You’ve said, you’re using the latest Trac-Version of bbPress?
Then I think you have to change line 48 of my plugin from
add_action('init', 'online_update');
to
add_action('bb_init', 'online_update');
then … it should work! (for me it did)
Hmm it was part of a larger plugin code, took the part out and put it in the plugins folder and it worked here aswell. Problem must be elswhere with the other plugin code.
This results in a new question. My plugin has this code and works:
<?php
// Get Portal topics
function get_portal_topics() {
global $bbdb;
$pforum_id = 1;
$number_of_topics = 10;
return $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $pforum_id ORDER BY topic_time DESC LIMIT 0,$number_of_topics");
}
?>
But I also want to pull the 1 and the 10 from the database $pforum_id = 1; and $number_of_topics = 10; are now manually done…
How to do this then?
Ehm … I dont know what’s wrong, I put your code on my site … and it worked. Do all the other plugin-functions work?
changed some things it’s now:
function get_portal_topics() {
global $bbdb, $bb_table_prefix;
return $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");
}
Still same error when calling using:
<?php $portal_topics = get_portal_topics(); ?>
<?php foreach($portal_topics as $topic) :
Etc etc
Error:
Fatal error: Call to undefined function get_portal_topics()
maybe using $bbdb->get_results() instead of $bbdb->query()
just an idea…
Hi,
Welltried to make a plugin, but it aint working, why not?
Plugin code:
<?php
function get_portal_topics () {
global $bbdb;
return $bbdb->query("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");
}
?>
This has to give a list I need, but turning it into my template it get this error:
Warning: Invalid argument supplied for foreach() in /bbpress/bb-templates/portal-page.php on line 33
Template code:
<?php $portal_topics = get_portal_topics() ?>
<?php foreach($portal_topics as $topic) :
$portal_topic_posts = get_thread( $topic->topic_id); ?>
<h1><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></h1>
<?php printf(__('%1$s - <a href="%2$s">%3$s</a>'), get_topic_time(), get_user_profile_link($topic->topic_poster), get_topic_author()) ?><br/>
<?php echo $portal_topic_posts[0]->post_text; ?>
<div align="right"><?php printf(__('<a href="%1$s">Comments (%2$s)</a>'), get_topic_last_post_link(), get_topic_posts()) ?></div><br/>
<?php endforeach; ?>
Or my plugin is all wrong, or how I call it…. or both 
Thx
Cant edit my message 
I mean the tables of all plugins i installed, are not created.
I dont understand why because i thought that is automatic.