Search Results for 'code'
-
Search Results
-
I want to switch the Top Five Topics widget on my site to a Topics With No Replies widget.
I think I’ve found the code referring to the Top Five Topics widget in functions.php – this looks like it:
function rk_top_five_view() {
bbp_register_view( ‘top-five’, __( ‘5 Most Popular Topics’ ), array(
‘meta_key’ => ‘_bbp_reply_count’,
‘posts_per_page’ => ‘5’ ,
‘ max_num_pages’ => ‘1’,
‘orderby’ => ‘meta_value_num’ ),
false );
}add_action( ‘bbp_register_views’, ‘rk_top_five_view’ );
And I think this is the relevant code on the page where the widget is displayed:
[bbp-single-view id="top-five"]According to https://codex.bbpress.org/features/shortcodes/ the code for No Replies is:
[bbp-single-view id=’no-replies’]So I’m guessing that on the page I just need to replace top-five code with no-replies…?
But what about the code in functions.php?
I found this on github:
bbp_register_view(
‘no-replies’,
__( ‘Topics with no replies’, ‘bbpress’ ),
apply_filters( ‘bbp_register_view_no_replies’, array(
‘meta_key’ => ‘_bbp_reply_count’,
‘meta_value’ => 1,
‘meta_compare’ => ‘<‘,
‘orderby’ => ”
)
) );
}Is this what I need? Or should it start with function like the current code I posted at the top?
Please excuse me if I’m missing something obvious here – I’m just the website owner, not a developer.
Thanks in advance 🙂
WP – ver 4.6.1
bbPress – ver 2.5.10Hello, thank you in advance for any help!
I have just activated a plugin called “Search bbPress 2.0” which fixes the issue of searching for topics, replies, etc. However, when the results display they include a link to the author and the title. The title works fine but the author points to “the_author_posts_link();” – which sends me to a url containing /author/ (instead of /members/)
https://woodardnetwork.com/forums/?s=quickbooksI am thinking “posts” is not where I want to go, rather “members” – I could not find this in the documentation (or on codex.wordpress as it looks to be bbPress specific). Anyone know the replacement for the above function?
Thanks again!
-GrahamHi,
I’ve been struggling with a serious import problem since may 2016.
Issue #1 My BBpress forums will not migrate properly with conventional WordPress import/export built in tool.
Issue #2 When I use WP ALL Import (pro bundle) to get a CSV I can actually work with, and manually update the USER ID table and Forum ID and Parent ID, the import works (Forums and Topics are matched up properly) but tool>BBpress>recaculate will completely break the forum, I need to be able to recalculate once in a while… not being able to do this is a problem. And even to get the imports working I have to manually change IDs in the CSVs in order for the imports to match content up properly. And even when using vlookup in Excel, it is painstakingly difficult to manually create a dual reference column where column one is the old ID (for old website forum) and column two is the new ID (for new website forum). This is why I don’t have a fixed CSV for replies yet. I’ve thousands of them.Authors of WP ALL Import have been of no substantial help. Please any help because I’ve been paying for my old server and new server for months now and it’s gotten very expensive.
Data columns including in Forum Export is:
id Title Content Post Type Date Order Parent Slug Author Status _bbp_status _bbp_old_forum_id _bbp_forum_parent_id _bbp_forum_subforum_count _bbp_topic_count_hidden _vc_post_settings _bbp_status _yoast_wpseo_title _bbp_forum_id _bbp_last_topic_id _bbp_last_reply_id _bbp_last_active_id _bbp_last_active_time _bbp_topic_count _bbp_total_topic_count _bbp_reply_count _bbp_total_reply_countData columns included in Topic Export is:
"id Title Content Date Post Type Permalink _bbp_old_topic_id _bbp_reply_count _bbp_total_reply_count _bbp_author_ip _bbp_old_sticky_status _bbp_topic_id _bbp_forum_id _bbp_last_reply_id _bbp_last_active_id _bbp_last_active_time _bbp_voice_count _vc_post_settings vc_teaser Status Author Slug Order Parent Comment Status"Data columns included in Replies Export is:
id Content Date Post Type Permalink Status Author Slug Parent Order Comment Status Ping Status _bbp_post_id _bbp_author_ip _vc_post_settings _bbp_activity_id _bbp_topic_id _bbp_forum_idFor Forum’s I updated Author IDs.
For Topic’s I updated Author IDs, Parent, and _bbp_forum_idAfter a successful import for these two post types,
bbpress recalculate will completely break the posts’ hierarchy.I’ve yet to find a way to get replies to import successfully due to the shear number of replies and _bbp_topic_id’s I’d have to update the new IDs for.
Topic: Quote
Hello. I ‘m new, and I am not a programmer, so please excuse me for the question.
Is there a way to insert the “quote” option in a bbpress post? I mean a button (or something like that) on each post. When a user what to reply quoting that post, simply has to click there.
There is a plugin, but If possible I would do it without a plugin. Is there a code to paste somewhere? If so, tell me the code and where (in a simple way so I can understand 😀 )
Thanks a lot!
Problem 1:
Using builtin importer, whole system is being imported by phpbb3. Anonymous users who does not have any accounts are allowed for posting but they are showing up as anonymous, in the system.
I have collected theusernames_of_the_visitorsfromposts_from_current_usersand created those users, using a query:INSERT INTO wp_current_visitors (using_the_login) SELECT DISTINCT usernames_of_the_visitors FROM posts_from_current_usersStep 2:
I am creating multiple tables (in this case:3), some of the code is:SELECT ID FROM wp_current_visitors INSERT INTO current_live_posts(author_current_posts) WHERE current_live_posts(post_time_and_date) = posts_from_current_users(posted_time) AND posts_from_current_users(usernames_of_the_visitors) = wp_current_visitors(using_the_login)You can see this is not the correct way contain syntax errors. First I have to correct it. Second, I have to find a way to tell the mySQL that ID is connected with ‘using_the_login’ (see the first line). Am I right?
Please help in this regard?
Queries after up-gradation:
SELECT ID FROM wp_current_visitors SELECT post_time FROM posts_from_current_users = post_time_and_date SELECT post_username FROM posts_from_current_users = using_the_loginThe are working in the correct way. But, I don’t know where to insert the WHERE information correctly.Only possible solution in my mind is to create sub-queries.
Problem 2:
I am installing bbpress on my own(for the first time on a client website, as an evaluation task). I am creating a simple forum, with necessary plugins for login and flow control. But, an important requirement, I am unable to configure is that client wants to create a new page for each directory page. And whenever a new page is added, he wants to add a forum page, automatically. Like, if the directory page is Directory page of militarybases – Cheyenne mountain Air Force base Colorado Springs Colorado. When, he made the page using wordpress, it’s forum page like website/forum/cheyenne-mountain-air-force-base-colorado-springs-co automatically created.Is this possible? If yes, how will achieve this? Please don’t tell codes other than javascript and php. Please only provide the full solution, in case of others.
Hi,
I installed bbPress for my site which uses hueman theme.
But when I create the forums page including bbPress shortcode, the layout of the forums page is quite messy. But for another theme thentyfifteen, bbPress works fine.What can I do to solve this problem with hueman theme?
This is the forums page: https://trainsova.pitt.edu/forums
Topic: Redirect after subscription
Hi!
I’m trying to change the URL of the redirection after subscribing to a forum, based on where I’m coming from.I have subscription buttons on both the forum pages and a page with a list of all forums. When I subscribe from the forum page I want to stay there (it works fine), and when I subscribe from the list I want to go back to the list but instead I am redirected to the page of the forum I just subscribed to.
Looking at the comment in the code (“Redirect back from whence we came”) I feel like what I want to do is actually how it’s supposed to work but it’s not working for me (I fall in the last else).
Any idea how I could achieve this?
Thanks in advance!!This page is a great initiative to make explained each part.. but for me still has a problem…
I can’t identify those parts in the layout… could someone do a visual scratch for elements over some “twenty” template?
I really, really appreciate 😉