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?
`
`
Topic: Code in Replies is Executing
Using bbPress 2.1.2
Happy to see that a toolbar has been added in, however it doesn’t currently work very well for code. It’s allowing basic HTML like strong even though wrapped with code tags to execute.
I miss the old backtick option that forced ANY and ALL code to display as plain text like a champ.
Thanks, Bryan
Hello,
I run a custom loop for some replies at a specific part in my template. I would like anyone that has the rights to edit these replies. I use bbp_reply_admin_links for that, but this function gives me NULL. When digging futher in to the code I see that bbp_is_reply equals NULL in bbp_reply_admin_links. Probably because im not in a “official” bbpress loop. Anyone has a solution? Manually calling bbp_get_admin_links($post->ID) does not do the trick. bbp_is_reply still gives false on that, because bbp_get_admin_links does not give the ID trough to bbp_is_reply.
"reply", "post_parent" => get_the_ID(), "order" => "ASC", // First comments first "paged" => get_query_var("paged") ) ); $i = 1; if($replies->have_posts()) : while($replies->have_posts()) : $replies->the_post(); $class = ($i % 2) ? "" : "mark"; ?> <!-- reply --> <li class=""> <!-- author --> <a href='post_author ); ?>'>post_author); ?> Administrator <img class="image" src="/images/ico-27.gif" width="49" height="49" alt="image description" /> Niels van Renselaar Media-Enzo Posts: <!-- reply -->