Search Results for '\"wordpress\"'
-
Search Results
-
Hello,
Clicking a username from within the BBPress section generates a 404 error.
I’ve done extensive research on this problem, and haven’t been able to find a fix in the forums so far.
I’ve deactivated all plugins besides BBPress – no dice.
I’ve switched the default theme and still get the 404.
I’ve changed the permalinks and the subscriber role – didn’t make a difference.Some code fixes I’ve found in the forums just make it so that the 404 page doesn’t generate, but it shows a blank page, which isn’t really the point. I need it to actually go the member profile.
I believe all of the software is up to date:
Wordpress v3.8
BBPress v2.5.3
Theme is Dante, v 1.5.1Here is a user link: essential-essentials.com/forums/user/Essential-Essentials/
(The site is still very much in development)
Thank you for any help you can provide : )
I’ve look at it a few times in the WordPress Codex and it probably explains GREATLY how it works and what it does but maybe I just don’t get it.
I understand the concept of taking a function that exists <—> edit it <—> return it to WP Core but how!
Lets say I just simply want to replace the text inside a HTML “… class=”bbp-topic-spam-link”> ” of the spam link.
First step I do is search for the function: bbp_topic_spam_link()
Second step found it inside plugins/bbpress/includes/topics/template.php [ line 2832 ]
Third step copy the entire function to my functions.php file or plugins functions file.
Fourth step, edit the code that you want to edit but after that, how do you add the filter to this function to make it a new or your function.
/** * Output the spam link of the topic * @uses bbp_get_topic_spam_link() Topic spam link */ function bbp_topic_spam_link( $args = '' ) { echo bbp_get_topic_spam_link( $args ); } /** * Return the spam link of the topic */ function bbp_get_topic_spam_link( $args = '' ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'id' => 0, 'link_before' => '', 'link_after' => '', 'sep' => ' | ', 'spam_text' => esc_html__( 'Spam', 'bbpress' ), 'unspam_text' => esc_html__( 'Unspam', 'bbpress' ) ), 'get_topic_spam_link' ); $topic = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) ); if ( empty( $topic ) || !current_user_can( 'moderate', $topic->ID ) ) return; $display = bbp_is_topic_spam( $topic->ID ) ? $r['unspam_text'] : $r['spam_text']; $uri = add_query_arg( array( 'action' => 'bbp_toggle_topic_spam', 'topic_id' => $topic->ID ) ); $uri = wp_nonce_url( $uri, 'spam-topic_' . $topic->ID ); $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-spam-link">' . $display . '</a>' . $r['link_after']; return apply_filters( 'bbp_get_topic_spam_link', $retval, $r ); }Thanks.
My understanding is that there is no “New Posts” functionality for BBPress. Previous support requests on WordPress.org have gone unanswered, and I do not see a plug-in that allows this. I reviewed the documentation and I’m not sure how I could construct my own view with this ability.
What I would like to know is how to craft a forum view that aggregates all the forums into one just like when you click on “Support” at the top of BBPress or Buddypress website. Whenever a new reply is posted, it puts the thread back on top. The GDBBPress tools only has the ability to sort topics when they were first created.
Recap, I would like assistance on constructing a view like the one that we normally use here on BBPress.org or Buddypress.org when clicking the “Support” button.
Thank you,
Russ Sanderlin
@TearstoneTopic: PHP code for this shortcode
What’s the PHP code to get this result.
[bbp-single-forum id=$forum_id] ā Display a single forums topics. eg. [bbp-single-forum id=32]
I would like to include it inside a page template.
Something I really HATE about bbPress is that it’s very easy to group a bunch of forums inside another forum ( Category ) and list all those forums together at a page template by just the Parent $forum_id of all those forums and you’re done.
Just like this:<?php if ( bbp_has_forums( array( 'post_parent' => 104 ) ) ) : ?>Easy right, but that bbp_has_form functions doesn’t have something like this:
<?php if ( bbp_has_forums( array( 'forum_id' => 75 ) ) ) : ?>Only show forum_id 75 out of the entire loop, or this:
<?php if ( bbp_has_forums( array( 'forum_id' => 75,88,93 ) ) ) : ?>That doesn’t look like rocket science to me and it would give us so much more customization options.
Look at this screenshot I made.
At the top the block of 4 with the big headings, Mac … + iOS … are forum categories with a bunch a forums inside them. I gave them all their own page templates with each its own ‘post_parent’ Loop.<?php bbp_get_template_part( 'cat-forums/mac-hardware' ); ?>At the bottom the green row of none Apple products related are just forums ( single’s ) with no parent stuff.
It’s ridicules difficult to group them together and list them in a list or row and customize them.
You have to do something like this:<?php bbp_forum_permalink( 98 ); ?> <?php bbp_forum_title( 98 ); ?> <?php bbp_forum_topic_count( 98 ); ?> <?php bbp_forum_post_count( 98 ); ?>That’s all needed to get the same result as at the top for just a single forum_id.
Beside all that frustration it’s even more difficult to give each single forum ( the page where you show a list of topics ) it’s own template.
You can’t customize the forums differently. Let’s say I want to give al forums at the top the Apple products relegated stuff it’s own page template and all none Apple related stuff another page template it’s simply not possible.There should be an easy way to just add a forum_id or name after the page-template.php like WordPress does.
Maybe for starters a conditional tag inside the content-single-forum.php template that says, if forum_id’s 75,98,114 go to template X and if forum_id’s 73,120,88 go to template Z else ( if none of those ID’s ) go to template B.This has been frustrated me for 2 years now and it’s really a game-breaker in customization of bbPress.
š
i have a php code that help me to add any button in wordpress quicktags toolbar:
add_action( 'admin_footer-post-new.php', 'pre_add_quick_tag' ); add_action( 'admin_footer-post.php', 'pre_add_quick_tag' ); function pre_add_quick_tag() { ?> <script type="text/javascript"> edButtons[edButtons.length] = new edButton( 'pre', 'pre', '<pre>', '</pre>', '' ); </script> }now i want this pre button also added in bbpress (not just for admin, i want all users can use this button), any idea?
ps: i also asked this question here
Topic: Prohibit New Topic Creation
Hi.
I use both the current version of wordpress and bbpress and my goal is to disallow new topic creation for non-admins, but allow people to post within pre-made topics.
Will this be possible in the near future?
A little background, I have about 0 knowledge of WordPress and especially BBPress. The reason I am here is I am trying to help get some basic forms working that were setup an possibly messed up by a previous admin who is currently MIA. I have figured out my way around WordPress but am at a loss as to why the posts do not display within the topics. Any help would be appreciated.
This is a link to one of the forum topics that had a few post/replies but are not visible.
http://home.outlandcraft.com/forums/topic/test/Hi all, I know that to make changes to a theme in wordpress you use a child theme to avoid losing the changes upon updating the files. I am doing this and it works fine.
My issue is doing the same for a plugin. Does anyone have any idea on how to make changes to the css files and some php files without losing the changes when I update the bbpress file?
Any help would be greatly appreciated.
Thanks
Faith
Hi, just a quick question about this new feature that has been in the pipeline for some time:
https://bbpress.trac.wordpress.org/ticket/2498
there is already a plugin that provides this functionality (http://wordpress.org/plugins/bbpress-post-topics/) and it is being used already on the official sites here so I’m curious why it isn’t a done deal?
thank you!