Forum Replies Created
-
so where are you placing this code ? eg in a page template?
bbp_is_user_subscribed_to_topic()
bbp_is_user_favorite( $user_id, $topic_id );
In reply to: bbpress Loop Argumentgiven that
get_template_part( ‘template-parts/topic’, ‘card’ );
is from your theme (or other plugin) not bbpress, not sure what is taking the pagination.
the usual solution would be to parse args eg
add_filter ('bbp_before_has_topics_parse_args', rew_has_topics') ; function rew_has_topics( $args = '' ) { $args['posts_per_page'] = '-1' ; return $args; }
bbp_is_user_subscribed_to_forum($forum)
In reply to: [New Plugin] BBpress Syntax Highlighterthis is 11 yr old and relates to version 1 of the bbpress plugin – so yes not current
In reply to: Changing Submit button wording to UpdateYou can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.
so if you wanted to amend loop-single-forum you would do the following
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
bbPress will now use this template instead of the original
and you can amend thisIn reply to: Changing Submit button wording to Update‘updating..’ beyond my current time avaailability
In reply to: Changing Submit button wording to Updatethen you need to amend form-topic and form-reply
to amend
<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
to something like (untested)
<?php if ( bbp_allow_revisions() && bbp_is_topic_edit() ) : ?> <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> <?php endif ; ?> <?php else : ?> <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Update', 'bbpress' ); ?></button> <?php endelse : ?>
In reply to: Changing Submit button wording to Update//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );
In reply to: How do I edit the Forum page?item 3 method 2 and you can put introductory text before the shortcode
In reply to: Show username instead of full name / display namegreat!
In reply to: Migrating from phpBBI’ve never used phpbb, but suggest you need to get the database loaded somewhere, which will then have access. You can then convert from there
In reply to: Migrating from phpBB‘the serviceprovider has the database on phpmyadmin’.
vs
‘but I have no access to the old database’if the service provider has given you the old database, then those credentials should work?
so do you have access to the old database?
In reply to: Show username instead of full name / display nameuntested, but this might do it
add_filter( 'bbp_get_reply_author_display_name' , 'rew_reply_change_to_login', 10 , 2 ) ; function rew_reply_change_to_login ($author_name, $reply_id) { // Get the author ID $author_id = bbp_get_reply_author_id( $reply_id ); $author_name = get_the_author_meta( 'user_login', $author_id ); return $author_name ; } add_filter( 'bbp_get_topic_author_display_name' , 'rew_topic_change_to_login', 10 , 2 ) ; function rew_topic_change_to_login ($author_name, $topic_id) { // Get the author ID $author_id = bbp_get_topic_author_id( $topic_id ); $author_name = get_the_author_meta( 'user_login', $author_id ); return $author_name ; }
let me know
In reply to: Export images in forum‘I have the plugin allowing for media uploads’ – no idea what plugin you are talking about, but can only suggest you try it and see
In reply to: Mass editing of topics does not workI don’t understand your question – possibly lost in translation
In reply to: Search Button not showinggreat
In reply to: Question Regarding default bbpress support forumthere is a theme for this, and my style pack plugin contains some widgets
In reply to: Customized Translation filesyou can use ‘gettext’ if you haven’t too many
In reply to: Importing from phpBB2.6 RC7 holds updated importers, but then you are running with an unreleased version
In reply to: Closing topicsgreat
In reply to: Closing topicsgreat
hmm… suggest you read the documentation and also look at
dashboard>settings>forums allow anonymous posting
In reply to: Using Buddypress avatargreat – thanks for posting the solution