Search Results for 'code'
-
AuthorSearch Results
-
January 6, 2009 at 2:16 am #70940
In reply to: “Forum is proudly powered by bbPress”
John James Jacoby
KeymasterWhere is this discussion taking place? I’m always game for a good discussion!
January 6, 2009 at 1:44 am #64491In reply to: forum RSS feed – wordpress widget – not up to date
chrishajer
ParticipantIn the German locale the weekday symbol for friday is ‘Fr’ instead of English locale which is ‘Fri’.
http://rel.me/2008/07/22/date-format-rfc82285010361123asctimeiso8601unicode35tr35-6/
January 6, 2009 at 12:41 am #70784John James Jacoby
Keymaster@the both of yous
Sambauers is the main programmer responsible for updating and maintaining bbPress, the rest of us seem to serve more as bug testers and trac reporters. You’re both correct to assume that the goal is to have it work both ways, with a registration at one platform to assign a role to the other.
You’re lucky, I haven’t been able to get either/or to automatically tell the other what roles to assign, despite my efforts. To be honest, it can’t be happening anywhere on the WordPress side of things, because WordPress has no idea that bbPress exists. It’s just doing what it always did. bbPress needs to look for capabilities, and assign them according to the WordPress role map provided it has been set.
It seems like a good idea to have the role-map setup as part of the installation process, if choosing to integrate that is.
The other side of this, which I’ve said before in different topics, is that automated integration of bbPress is difficult to predict, because there are several configurations that anyone could or would use, and it isn’t just WordPress that bbPress is intended to work with. There’s BuddyPress too, which is a whole other assortment of configurations. You can see how having bbPress automatically assign a role to a user that doesn’t have a role at all can be a strange situation, since there are times where WP users might not have roles either. There are about 250 different types of arrangements that users can have that must be trapped when I think about it, considering registrations on either side, the role map, and what the results of each situation would be.
Maybe when they register through WordPress, I don’t want them automatically given access to the forums, or vice versa. Even though they are integrated, maybe I don’t want them to have a role at all. What if WordPress registrations are closed but bbPress ones are open? I mean when you think of all of the possibilities, it’s a wonder/miracle that it works at all. Ha!
Long story short, Sam is working really hard on getting this integration up and running for us, and I suspect there will be an alpha6 coming shortly.
January 6, 2009 at 12:25 am #70783globalkris
MemberWell, glad to see I’m not the only one with the problem at least. Hopefully someone has a solution for us… anyone?
January 5, 2009 at 11:29 pm #64488In reply to: forum RSS feed – wordpress widget – not up to date
pulk99
Memberthanks chris, this is my problem.
in my rss2.php in my themes folder I have the following line:
<pubDate><?php bb_post_time('D, d M Y H:i:s +0000'); ?></pubDate>this is giving me this result:
<pubDate>Mo, 05 Jan 2009 21:58:55 +0000</pubDate>but in the same file, the line:
<pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>is working fine. output:
<pubDate>Mon, 05 Jan 2009 23:24:47 +0000</pubDate>I have:
define('BBDB_CHARSET', 'utf8');in my bb-config.January 5, 2009 at 10:12 pm #4582Topic: “Forum is proudly powered by bbPress”
in forum Installationcalman
MemberHi Guys!
My first question today, is this statement a legal requirement, or can it be removed while customising your forum?
All the best,
Cal
January 5, 2009 at 8:25 pm #55958In reply to: Show off your Forum !!
ganzua
MemberNice one Tiago, very inspiring, thanks for showing
January 5, 2009 at 8:00 pm #70791In reply to: PHP usage poll
_ck_
ParticipantSam, I can already tell you that from my 5000 site survey.
This data is from mid-October 2008
PHP Popularity
4.2 : 1
4.3 : 249
4.4 : 1088
5.0 : 41
5.1 : 261
5.2 : 2464
unknown : 700+
or in finer detail:
4.2.2 => 1
4.3.0 => 1
4.3.2 => 4
4.3.3 => 3
4.3.4 => 7
4.3.8 => 6
4.3.9 => 115
4.3.10 => 51
4.3.11 => 62
4.4.0 => 12
4.4.1 => 23
4.4.2 => 29
4.4.3 => 13
4.4.4 => 85
4.4.5 => 4
4.4.6 => 32
4.4.7 => 191
4.4.8 => 414
4.4.9 => 285
5.0.3 => 1
5.0.4 => 32
5.0.5 => 8
5.1.1 => 3
5.1.2 => 39
5.1.3 => 1
5.1.4 => 17
5.1.5 => 4
5.1.6 => 197
5.2.0 => 183
5.2.1 => 79
5.2.2 => 51
5.2.3 => 121
5.2.4 => 171
5.2.5 => 537
5.2.6 => 1318
5.2.8 => 4
unknown : 700+
I will be updating the survey next month and I expect the sites to double.
(If you really need me to, I guess I can rush the survey update earlier)
January 5, 2009 at 6:53 pm #55956In reply to: Show off your Forum !!
tiago-s
MemberHEAVILY modded forum warning. I only use bbPress because of the WordPress integration, and I want it as close as possible to other forums, so I did this (with only amateur self-learned skills):
Feel free to use it as reference, but it’s like nothing I’ve ever seen done in bbPress. Like, at all. And not only the looks, functions too. I’m especially proud of the support of bbcode, including nested
Quote:tags
January 5, 2009 at 6:19 pm #70927In reply to: delete tables start over
chrishajer
ParticipantIt looks like you used wp_ (instead of bb_) as your table prefix, and WordPress was already installed, which means bbPress tried to install into the WordPress tables?
By default, WordPress uses these tables (in 2.7):
wp_comments
wp_links
wp_options
wp_postmeta
wp_posts
wp_terms
wp_term_relationships
wp_term_taxonomy
wp_usermeta
wp_users
And bbPress uses these in the alpha version:
bb_forums
bb_meta
bb_posts
bb_terms
bb_term_relationships
bb_term_taxonomy
bb_topics
bb_usermeta
bb_users
bbPress 0.9.0.* versions used different tables:
bb_forums
bb_posts
bb_tagged
bb_tags
bb_topicmeta
bb_topics
bb_usermeta
bb_users
And when you integrate, bbPress uses the wp_users and wp_usermeta tables instead of its own bb_users and bb_usermeta.
January 5, 2009 at 3:14 pm #64487In reply to: forum RSS feed – wordpress widget – not up to date
chrishajer
ParticipantI just validated the feed for one of the pages for this forum, and it came back as valid. The data format looks the same to me. I noticed in your date, there is a character missing from “Friday”:
<pubDate>Fr, 02 Jan 2009 10:57:20 +0000</pubDate></blockqoute>This date format is correct for RFC 822 from a Linux command line:
[~/ch/bbpress]$ date -R
Mon, 05 Jan 2009 10:12:42 -0500
So, I think there is just some problem with your date function, missing the “i” in Friday, or you typed incorrectly instead of pasting, and the missing “i” is just a typo.
January 5, 2009 at 2:57 pm #70912In reply to: moderators able to ban?
chrishajer
ParticipantThat is correct. Here are the moderator capabilities from bb-includes/capabilities.php:
'moderator' => array(
'name' => __('Moderator'),
'capabilities' => array(
'moderate' => true,
'participate' => true,
'manage_tags' => true,
'delete_topics' => true,
'close_topics' => true,
'stick_topics' => true,
'move_topics' => true,
'view_by_ip' => true,
'edit_closed' => true,
'edit_deleted' => true,
'browse_deleted' => true,
'edit_others_tags' => true,
'edit_others_topics' => true,
'delete_posts' => true,
'throttle' => true,
'ignore_edit_lock' => true,
'edit_others_posts' => true,
'edit_favorites' => true,
'edit_tags' => true,
'edit_topics' => true,
'edit_posts' => true,
'edit_profile' => true,
'write_topics' => true,
'write_posts' => true,
'change_password' => true,
'read' => true
)),You could add the permissions you for your moderator there, but it’s generally a bad idea to modify a core file. You probably want a plugin to modify the capabilities for your moderators. I didn’t see one specifically for that, but I did notice this plugin was added yesterday.
January 5, 2009 at 1:34 pm #68465In reply to: WordPress 2.7 and bbPress?
WarrenScott
Memberbbpress 0.9.0.4 and wordpress 2.7 intregrate but bbpress doesn’t hanlde the roles at all. If a user gegisters through wordpress, all is good but if they register through bbpress, they get an “you don’t have permission to view this page” when they try to login to wordpress.
I think this should be addressed asap, but as I’m ready through the forums, I see Sam or any other developer has addressed this issue at all. There are some .htaccess 301 redirects and a small code change you can make to redirect users from the bbpress registration page to the wordpress registration page, but in my humble opinion, one should not have to do this because the whole reason to use bbpress with wordpress was the fact that they intregrate.
Bottom line…bbpress needs to update the user roles to that of wordpress user roles period.
January 5, 2009 at 10:04 am #4559Topic: Newbie around these parts!
in forum Installationcalman
MemberHi folks!
Just wanted to say hello and that I am looking forward to getting into the workings of bbPress. I newly created my forum last night, so a lot of learning ahead.
All the best,
Cal
January 5, 2009 at 3:54 am #70911jrobichess
MemberThanks for the quick reply _ck_!
January 5, 2009 at 3:34 am #70759In reply to: List of Hooks/Actions?
_ck_
ParticipantThere’s no official documentation or codex yet.
A few people have done phpxref for bbpress but I find that kind of output fairly useless.
If you have access to linux shell you can do a grep to get a function list in the template include like so (or install the grep for windows)
grep -oe ^function.*) bb-includes/template-functions.php | sort > functions.txtmodifying that you can also get the filters/actions
grep -oe apply_.*) bb-includes/template-functions.php | sort > filters.txtgrep -oe do_.*) bb-includes/template-functions.php | sort > actions.txtIf you use the grep for windows, leave out the escapes (backslashes) or it won’t work.
January 5, 2009 at 3:32 am #70910_ck_
ParticipantAllowing iframes is a massive security issue.
Whatever you are trying to do, you need to find another way.
The code button is the same as backticks, it’s for placing encoded text, not actual code to execute.
January 5, 2009 at 3:29 am #65352In reply to: Latest Discussion – More Control
_ck_
ParticipantDo not use the Private Forums plugin, it has not been updated in awhile and has bugs.
Use my Hidden Forums plugin instead. The code above is not sufficient in itself.
January 5, 2009 at 2:16 am #4576jrobichess
MemberIs there a way to allow members to use the <iframe> tag in posts? I have downloaded and installed the admin can do all plugin and I can get it to work for me, but I would like the forum members to be able to use <iframe> also. Not sure if this is a security issue or not.
Speaking of security, I also installed the bbcode lite plugin and the bbcode button plugin. I see there is an option for “code” there – is this any kind of security concern or is it something simple and harmless that members can use for something?
Thanks in advance!
January 5, 2009 at 1:56 am #4575Topic: ColumbusUnderground.com
in forum Showcasewalkerevans
MemberSo, I finally got the revamp of my site launch completed on January 1st. The “News” portion of the site is driven by wordpress, and the “Messageboard” portion is bbpress with some marriage between the two.
We migrated from a phpbb2 install that was using phpbbfetchall for pulling “News” to the front page. I think the new set up is much better.

I’m still ironing out glitches and adding features, but I thought I’d share it here to show it off so far. We get between 10,000-12,000 unique visitors to the site per day, and bbpress is handling that traffic beautifully.
January 4, 2009 at 10:45 pm #67575In reply to: Integrating to WP has broken the static front page
Ipstenu (Mika Epstein)
Moderator*snicker* That was so much easier. Sometimes I get stupider the more I try to code!
<li style="list-style:none">
<h2>Meta</h2>
<?php global $user_ID, $user_identity, $user_level ?>
<?php if ( $user_ID ) : ?>
<p><?php if ( $avatar = get_avatar( $user_ID, $size = '50' ) ) : ?>
<div style="float:right;"><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
<?php printf(__('<strong>Welcome, %1$s!</strong>'), $user_identity );?>
<br /><?php global $current_user; ?> <a href="http://domain.net/forums/profile.php?id=<?php echo $user_ID; ?> ">Profile</a> | <a href="<?php echo wp_logout_url(); ?>">Logout</a>
</p>
<div style="clear:right"></div>
<?php elseif ( get_option('users_can_register') ) : ?>
<form action="http://domain.net/blog/wp-login.php" method="post">
<p>
<label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /> User</label><br />
<label for="pwd"><input type="password" name="pwd" id="pwd" size="22" /> Password</label><br />
<input type="submit" name="submit" value="Send" class="button" />
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
</p>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</form>
<p><a href="http://domain.net/forums/register.php">Register</a> | <a href="http://domain.net/forums/bb-login.php">Recover password</a></p>
<?php endif; ?>
</li>January 4, 2009 at 10:17 pm #70896In reply to: Simple:Press and bbPress Themer
johnhiler
MemberMatching the bbPress theme to your WordPress theme isn’t trivial… at first it really bothered me. But once I realized how different blogs and forums were, it made a lot more sense to me.
The initial conversion was the hardest part. After that, little tweaks to my blog theme didn’t take that long to incorporate into my bbPress theme. But I’m getting ready to do a redesign of the blog, and am dreading converting it into a bbPress theme again. It probably won’t be that bad; it’s just inconvenient.
Overall though, it’s been definitely worth it
. Frankly I am liking bbPress much more than I ever liked WordPress!
January 4, 2009 at 8:18 pm #70842In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
thugzie
MemberI’m having an installation error as well

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/content/b/r/i/xxxxxx/html/xxxxxx/support/bb-includes/wp-functions.php on line 113
January 4, 2009 at 5:12 pm #70841In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
_ck_
ParticipantThis seems a great time to mention a new hidden feature in bbPress 1.0 based on a suggestion I made: “Safe Mode”
When you don’t know why something isn’t working, one quick and easy way to prove if it’s a plugin gone wrong or not is to temporarily try “Safe Mode”
The way to activate safe mode is to edit
bb-config.phpand insert$bb->safemode = true;Then your forum will temporarily switch to the default theme (which you should never have tampered with) and disable all plugins, temporarily.
When you are done testing, remove the line from
bb-config.phpThis is far easier than deactivating 20+ plugins, one at a time and then having to activate them again.
January 4, 2009 at 1:24 pm #70836In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
John James Jacoby
KeymasterNot sure if this is new since alpha5 or not, but on a fresh install the auth key seems to die when there is a quotation mark
"in the key.Basically a WP key like
define('SECURE_AUTH_KEY', '-"r642fed3E1d>}MdGFlh@tR!QPU%/!S_6;CjO0}^>6TclyZM9mEKqEn+ <?)3 U#*X;');Ended up like
define('BB_SECURE_AUTH_KEY', '-');This actually messed up the installer at one point too, displaying part of the key inside an area where it wouldn’t normally.
Should I trac this Sam?
-
AuthorSearch Results