Search Results for 'code'
-
Search Results
-
Topic: How to get poster name
Hi
I’m just trying to fix a plugin (Moderation Hold) so that it updates the ‘Last Poster’ field correctly when a post is approved.
It currently uses this to set the poster id and name:
$uid = $bb_post->poster_id;$uname = $bb_post->poster_name;
But the user name doesn’t get returned. Is there a correct function for this?
Thanks!
Topic: color attribute
I’ve written a WYSIWYG plugin for my BBPress install. It replaces the standard textarea with the TinyMCE WYSIWYG editor based on an option in the user profile.
I’ve incorporated code from Michael D Adams’ ‘Allow Images’ plugin and extended it a little to include paragraph <p> tags and <span> tags.
Everything is working fine, except for one issue that is driving me mad.
When a span with color set in it’s style attribute set, the color: gets stripped out. For example <span style=”color: #ff0000;”> becomes <span style=””>.
I can’t figure this out for the life of me! Other CSS attributes are fine, for example text-align:, background-color:, text-decoration: all work fine.
I’ve tried the following two bits of code with no success:
1. $tags = array(‘style’ => array());
2. $tags = array(‘style’ => array(‘color’ => array()));
Does anyone know if there is a way I can modify this behavior?
This is my first attempt at a plugin, so apologies if I’m missing something obvious here!
Thanks,
Rick
I am resurrecting this, since I saw a couple threads talking about it that – while marked as resolved – didn’t actually resolve the problem!
The bbPress login form does NOT work with IE6. Not even on this forum.
More specifically — you cannot enter text into the form; only submit the (empty) input values. Before I go ahead and completely rewrite this bit of code, is there a known fix?
Topic: Delete Post by It’s Owner
Is it possible to Delete a Post by It’s Owner?
I added this to member capabilities, but it shows me it’s a bad idea
;‘delete_posts => true,//+’
How can I do?
Topic: Database error
When trying to post I get this message:
bbPress database error: [Unknown column ‘post_title’ in ‘field list’]
UPDATE bb_posts SET post_title=’Testy mctest test’ WHERE post_id=’11
I am using the wordpress database (different prefix for bb stuff) but there doesn’t seem to be a post_title column, here’s the output from mysql:
mysql> describe bb_posts;
+
+
+
+
+
+
+| Field | Type | Null | Key | Default | Extra |
+
+
+
+
+
+
+| post_id | bigint(20) | NO | PRI | NULL | auto_increment |
| forum_id | int(10) | NO | | 1 | |
| topic_id | bigint(20) | NO | MUL | 1 | |
| poster_id | int(10) | NO | MUL | 0 | |
| post_text | text | NO | MUL | | |
| post_time | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| poster_ip | varchar(15) | NO | | | |
| post_status | tinyint(1) | NO | | 0 | |
| post_position | bigint(20) | NO | | 0 | |
+
+
+
+
+
+
+9 rows in set (0.00 sec)
I have looked around, but can’t seem to find anything about it on here. The forum/topic actually shows up when I go back to the page, but this is rather inconvenient. Thanks to anyone willing to help out with this.
WP version = 2.51
MySQL version = Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution
bbPress version = latest (just got it 3 or 4 days ago) so 0.9.0.2
Thanks,
-Scott.
Topic: Check out our new skin
Hello my friend just finished our bbpress theme at iPhoneFan.com
Please check it out as we are very proud of it

Unfortunately, it doesn’t work quite well on IE6
Topic: Official themes repository
At first – I know the excellent _ck_ ‘s bbpress showcase. Good work, man!

But should have bbpress.org/themes just like bbpress.org/plugins . After 1.0 RC may be.
I’ve seen this issue posted on multiple threads, but I couldn’t find the solution in any of them. my issue is simple: I want to hide children forums and only display parent forums on the main page of my site. My theme uses the following code to display the forum list:
<?php foreach ( $forums as $forum ) : ?>
<tr<?php alt_class(‘forum’); ?>>
<td>“><?php forum_name(); ?> — <small><?php forum_description(); ?></small></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php endforeach; ?>
What should I change?
In styling my page I messed up the PHP code apparently. When I log in, it does log me in. But the Log In fields just stay there instead of showing the admin|Admin|Logut links.
Can someone please take a look and tell me what I did and how to fix it? Thanks! http://www.undercoverlawyer.com/forum/
-Sherry
I have been experiencing the following issue after moving my install from a staging server:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘bb_template_scripts’ was given in /home/tdsegvth/public_html/thepoolparties/bb-includes/wp-functions.php on line 586
I have tried disabling all plug-ins, combing through the code to figure out what it could possibly be, and doing everything I can imaging to the database. The entire setup seems to be working perfectly aside from that error.
Obviously the site can’t go live until this is fixed, so any suggestions would be appreciated.
You can see the site here: http://thepoolparties.jellynyc.com/
The version that isn’t experiencing the error is here: http://thepoolparties.wearefamiliar.com/
Thanks for any help!
I thought I’d jumped through all the hoops; I’ve managed to get everything integrated on the front end but when I go to access the forum admin section now I get a blank page.
Since being able to access the forum admin section I’ve changed
<?php bb_get_header(); ?>to<?php get_header(); ?>in the bbPress theme files, movedrequire_once('../wp-blog-header.php');up to the top of my config file.If I remove
require_once('../wp-blog-header.php');from my config file I can access the admin section.Any ideas?
. I’ll try and post my results. Thanks for the help.
