Search Results for 'code'
-
Search Results
-
How do I override bbp-common-functions.php so that I can safely upgrade bbPress without losing my one change?
Here is the original:
// array of time period chunks $chunks = array( array( 60 * 60 * 24 * 365 , __( 'year', 'bbpress' ), __( 'years', 'bbpress' ) ), array( 60 * 60 * 24 * 30 , __( 'month', 'bbpress' ), __( 'months', 'bbpress' ) ), array( 60 * 60 * 24 * 7, __( 'week', 'bbpress' ), __( 'weeks', 'bbpress' ) ), array( 60 * 60 * 24 , __( 'day', 'bbpress' ), __( 'days', 'bbpress' ) ), array( 60 * 60 , __( 'hour', 'bbpress' ), __( 'hours', 'bbpress' ) ), array( 60 , __( 'minute', 'bbpress' ), __( 'minutes', 'bbpress' ) ), array( 1, __( 'second', 'bbpress' ), __( 'seconds', 'bbpress' ) ) );Here is what I want:
// array of time period chunks $chunks = array( array( 60 * 60 * 24 * 365 , __( 'y', 'bbpress' ), __( 'y', 'bbpress' ) ), array( 60 * 60 * 24 * 30 , __( 'm', 'bbpress' ), __( 'm', 'bbpress' ) ), array( 60 * 60 * 24 * 7, __( 'w', 'bbpress' ), __( 'w', 'bbpress' ) ), array( 60 * 60 * 24 , __( 'd', 'bbpress' ), __( 'd', 'bbpress' ) ), array( 60 * 60 , __( 'h', 'bbpress' ), __( 'h', 'bbpress' ) ), array( 60 , __( 'min', 'bbpress' ), __( 'min', 'bbpress' ) ), array( 1, __( 's', 'bbpress' ), __( 's', 'bbpress' ) ) );I’m trying to make the forums support mobile, and the long words ruin my tables.
I want to be able to upgrade bbPress without losing this change. What can I do?
Topic: Spam Destroyer
Howdy,
I added support for bbPress into my anti-spam plugin this morning. I don’t actually use bbPress though, so can’t confirm that it is indeed working on a live site, so if any of you kind bbPress folks can help a poor plugin dev. out by testing it for me, that would be really handy đIt works ninja well on blog comments, so assuming I’ve implemented it correctly, it should (in theory) work just as well for bbPress too.
Here’s the announcement post for bbPress support:
http://pixopoint.com/2012/08/05/bbpress-buddypress-and-multisite-spam/And here’s the download page at WordPress.org:
http://wordpress.org/extend/plugins/spam-destroyer/It should help block both user registrations via the bbPress user registration shortcode and it should block automated guest posters too.
Topic: Forum List in Sidebar
So I found this bit of code that serves my purpose but I can not figure out why it ONLY works on the forms page. How can I make this work from any page via my sidebar?
`
`