PinkishHue (@pinkishhue)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 80 total)
  • @pinkishhue

    Participant

    For anyone else looking for an answer I found it:

    if( has_term( 'myterm', 'topic-tag' ) ) {
        // do something
    }
    In reply to: send ajax topics?

    @pinkishhue

    Participant

    @aminazadi There is a plugin for ajax replies:

    https://github.com/aliso/bbpress-ajax-replies

    And a plugin for ‘load more’ topics, if that’s the sort of thing you mean:

    bbpress-loadmore-topics

    Hope that helps.

    @pinkishhue

    Participant

    @creative-nomad Maybe something like this would work for you?:

    Hustle – Pop-Ups, Slide-ins and Email Opt-ins

    In reply to: User/Member Directory

    @pinkishhue

    Participant

    @sgirldesigns Install buddypress, this works alongside bbpress and provides a member list (and a lot of other features you can turn on or off).

    Hope that helps.

    In reply to: Convert mailing list

    @pinkishhue

    Participant

    @ruperty There are a bunch of converters built in to bbpress but I don’t think they would suit your needs for an old mailing list, they seem to be for specific forum softwares.

    I’d use a CSV importer plugin as that’s nice and simple (maybe too simple for you?). Hope that helps.

    @pinkishhue

    Participant

    In the topic form template you should be able to add a conditional around the tags input to say IF the post is being edited and IF the current user is a moderator/author of the topic, then show the input, otherwise don’t. Hope that helps somewhat, I know it’s not a solution per se.

    @pinkishhue

    Participant

    @lalitavalon I haven’t tested it but you could try the ‘display posts shortcode’ plugin, set the post type to replies and the category to the forum ID? Not sure if that would work exactly but worth a try.

    Display Posts Shortcode

    @pinkishhue

    Participant

    @scottm-ldg Install the ‘bbp additional shortcodes’ plugin, that allows you to specify a different number of topics in the shortcode:

    bbp additional shortcodes

    Hope that helps.

    In reply to: Link to latest post

    @pinkishhue

    Participant

    You could install the ‘bbp additional shortcodes’ plugin, then use that to display just one topic

    bbp additional shortcodes

    Then use ‘do shortcode’ if you want to place this in a template file, like:

    // Use shortcodes in form like Landing Page Template.
    <?php echo do_shortcode( '[bbp-display-topic-index show='1']' ); ?>

    I think that should work for you.

    @pinkishhue

    Participant

    To update again , I think 2000+ subforums is maybe just too much (for a standard server set up). I keep getting “Maximum execution time of 30 seconds exceeded” errors, so I guess…back to the drawing board!

    Thanks anyway for your help Robin.

    @pinkishhue

    Participant

    Just thinking, I suppose I don’t actually need all 2000 listed on the forum index! (although would be handy to know how). But will see if I can hide that specific subforum list when viewing the index.

    @pinkishhue

    Participant

    Great, thank you 🙂 That seems to be working when you view the parent forum list (site.com/forums/forum/parent-forum/), but still not when viewing the main forum index.

    Guessing perhaps ‘bbp_before_has_forums_parse_args’ is not used on that list, something else, but I have no idea what (google-fu not getting me anywhere on this one!)

    In reply to: Iimprovements

    @pinkishhue

    Participant

    @pinkishhue

    Participant

    Thank you Robin, didn’t work unfortunately. First got the error:

    Parse error: syntax error, unexpected ‘:’ in C:\xampp\htdocs\sitename\wp-content\themes\make-child-theme\functions.php on line 196

    Changed : to ; and the error went away but it didn’t change the subforums list.

    @pinkishhue

    Participant

    I see, to make the font on the sub-forums larger you can use:

    .bbp-forums-list .bbp-forum a {
    font-size: 18px;
    }

    Also if you want an easier way to alter sizes and styles etc. you could try Robin’s handy plugin:

    bbp style pack

    @pinkishhue

    Participant

    @casiepa Hi again, I don’t see an option to send you a private message but wanted to let you know I installed the plugin (thanks), but I’ve noticed it has altered the display of my subforums (removed the topic and voice counts, and made the font larger), even though I have not checked that option in the plugin settings.

    Here’s the info from the plugin if it’s any help.

    WP version 4.8
    Theme Make (child theme) 1.1.0
    PHP version 5.6.30
    bbPress version 2.5.12-6148
    site url (removed, on localhost XAMPP)
    Active Plugins Name and Version
    – p1 bbP Toolkit 1.0.10
    – p2 bbP shortcodes 2.8
    – p3 bbPress 2.5.12
    – p4 BuddyPress 2.8.2
    – p5 User Switching 1.0.9
    – p6 WordPress Social Login 2.3.3

    @pinkishhue

    Participant

    Aah ok, thanks

    @pinkishhue

    Participant

    Oh great, thanks @casiepa, now installed 🙂

    @pinkishhue

    Participant

    Thanks for all the info above. I’ve added the ‘bbPress-Topic-Subscribers’ plugin and that works great.

    To try and do the same for forum subscriptions I’ve copied the files and changed all instances of ‘topic’ to ‘forum’, and it’s listing the users fine, but when you click the unsubscribe link nothing happens.

    Looking at the code, I think it must be something in this section that is not right:

    		$forum_id = bbp_get_forum_id();
    		
    		if ( $forum_id && current_user_can( 'moderate' ) ){
    			$subscribers = bbp_get_forum_subscribers( $forum_id );
    			if ( $subscribers ){
    				echo '<table style="width: 100%">';
    				foreach ( $subscribers as $subscriber ){
    					$subscriber = get_user_by( 'id', $subscriber );
    					echo '<tr>';
    						// avatar
    						echo get_avatar( $subscriber->ID, 45 );
    						echo ' ';
    						//username
    						echo $subscriber->user_login;
    						echo ' ';
    						// remove button
    						echo bbp_get_forum_subscription_link(
    							array(
    								'user_id'     => $subscriber->ID
    							)
    						);

    Specifically maybe the ‘bbp_get_forum_subscription_link’ area? Does anyone have any suggestions on why this wouldn’t work for forums in the same way as topics? Many thanks for any help you can give.

    @pinkishhue

    Participant

    See this info –

    bbp_topic_author_link

    To display just the avatar linked to the member profile you would use:

    <?php bbp_topic_author_link( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'avatar' ) ); ?>

    or for reply author’s:

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'avatar' ) ); ?>

    Hope that helps

    @pinkishhue

    Participant

    1) Topic Type and Topic Status are only viewable to you/forum admins (aka keymasters), regular users do not see them

    2) Wherever you add custom CSS (probably ‘Appearance > Customize’ in the admin menu’s), add this:

    .bbp-forum-title {
      font-size: 18px; /* make this size whatever you prefer */
    }

    3) This functionality isn’t built in to bbpress but you could add another plugin to make this happen. Here is an old topic that might provide some suggestions for you: https://bbpress.org/forums/topic/rating-and-sorting-plugin/

    Hope that helps

    @pinkishhue

    Participant

    This is an old topic but just to update on you4eea’s question above – I would use the CSV importer/exporter to do an export of all posts/forums/topics etc. (make sure you have some forums created with all the fields you need) then open up the exported csv file and take a look. If all is working correctly you should be able to see there what the names of the fields would be and use this to create your new csv file for importing.

    @pinkishhue

    Participant

    Thanks @robin-w, that works on the textarea. Still the topic title input and the fieldset above where it says ‘Create New Topic’ are overflowing out of the viewable area of the screen. Will post back with code if I figure out how to fix it.

    In reply to: Image upload

    @pinkishhue

    Participant

    @hearken Your plugin looks good, a much needed function for many bbpress users. Thank you for sharing this with us 🙂

    @pinkishhue

    Participant

    You could also do this by editing the theme files so that the reply form is only shown to users with specific user roles, there is a similar topic here that may help:

    All Users can see category and topics but only certain roles have access toreply

Viewing 25 replies - 1 through 25 (of 80 total)