BuddyDev

Search

Can not edit posts, MediaPress plugin gallery function not showing, and more…

  • Participant
    Level: Initiated
    Posts: 15
    Rob on #42813

    Update #2: We finally tracked down what’s going on on the BBcodes…

    This was the response from our developer regarding BBcodes.

    “First of all BBCodes Toolbar is not an editor. It is a toolbar added on top of the basic editor field that bbPress uses by default. The toolbar has no editing capabilities, it just includes shortcuts to placing BBCodes into the content.

    1. When you use TinyMCE, a lot of things happen in the background that you don’t see while in TinyMCE. So, when you paste the URL to an outside website that has support for embedding, it will be wrapped in [embed] shortcode by TinyMCE.

    2. [embed] is regular shortcode, it is not BBCode implemented by my plugin, it has nothing to do with my plugin, it is a 100% WordPress core feature.

    3. When [embed] is resolved, it generates HTML – it grabs embeddable content from the service.

    4. My plugin has no control over TinyMCE. My plugin has options to just switch it on (it is actually loaded by bbPress, but it has no options in bbPress), and that’s the only thing my plugin can do, it can’t force TinyMCE to do anything. Whatever is happening in TinyMCE is beyond my plugin’s reach.”

    So the problem is, the TinyMCE editor is spitting out HTML as opposed to bbcodes, so only Keymasters and Admin can use as they are the only accounts with permission to use HTML.

    Can you please have a look into this as something id defiantly out of wack.

    The TinyMCE editor is our preferred way to go as the toolbar bbcode editor we have to use at the moment has no WYSIWYG capabilities.

    Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24080
    Brajesh Singh on #42816

    Hi Rob,
    I had a look at your site and I am not seeing TinyMCE on the forum posts.

    The theme or even bbPress doe snot provide TinMCE support (bbPress does support a few bb codes if you have the setting “Add toolbar & buttons to textareas to help with HTML formatting” enabled.).

    Were you using anything custom to enable tinyMCE(I can see that in your screenshot).

    I will suggest using either the cusotm bb codes that you are using or TinyMCE not both as the author of bb code says they may not be compatible.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Rob on #42823

    Hi Brajesh,

    Yes, we had to use to this BBcodes toolbar post editor because it’s the only one that does BBcodes.

    The Tiny MCE can be enabled in Admin on the left side menu. Admin> GD bbPress Toolbox Pro> Features>Content Editor You can choose which editor you want to use.

    Is it possible to use TinyMCE and have it issue BBcodes as opposed to HTML which only Admin and Keymasters can use?

    The current editor only does text, with no WYSIWYG it’s pretty lackluster, but it does do BBcodes so that way everyone can use it.

    What steps can be taken to force the TinyMCE editor to use BBcode? Is it possible?

    Also in addition to us needing a forum gallery that we can’t seem to do, our images and videos we embed end up quite big. Is there a way to get these to no more than 500px in width?

    Thanks and Best Regards,
    Rob

  • Keymaster
    (BuddyDev Team)
    Posts: 24080
    Brajesh Singh on #42840

    Hi Rob,
    Thank you for the reply.

    I am sorry, both the functionality are offered by 2 thirdparty plugins and the authors of those plugins are in better position to make it compatible.

    I will suggest requesting bot of the plugin authors and see if anyone of them is able to assit.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Rob on #42885

    Thanks!

    I’ll try to get with those plugin developers to see if they can solve it.

    Just a couple quick questions.

    We have guest posting on and the amount of people it shows is wrong.

    The counter isn’t counting guest posts and honestly, it makes the place look dead.

    Can you instruct me how we get rid of the bad counter altogether and replace it with topic views? That would be more relevant, at least in our case.

    In other words instead of –

    5 People, 20 posts in the lower left hand corner of the topics.

    it would be for example

    370 views 20 posts in the lower left hand corner of the topics.

    Additionally can you tell me the easiest way to add a button in the header area just below the main menu on the right that says “New Topic”.

    The idea is to take you to the bottom where the editor is, in the same way the arrow button takes you top the top of the page only in reverse.

    I know it sounds crazy, but I’ve had 3 emails asking how to post a new topic, and I think that would take care of that issue for those who can’t seem to work a scroll button.

    I did a mock up for clarity https://imgur.com/nM0STv9

    Thanks and best regards!

  • Keymaster
    (BuddyDev Team)
    Posts: 24080
    Brajesh Singh on #43230

    Hi Rob,
    I am sorry for the delayed reply.

    1. We have guest posting on and the amount of people it shows is wrong.:- That is standard bbPress way.

    Please have a look at this topic
    https://bbpress.org/forums/topic/how-to-fix-voice-count/

    There does not seem to have a proper solution for that.

    2. To show the topic views, you will need a 3rd party plugin
    https://wordpress.org/plugins/bbpress-simple-view-counts/

    This has not been updated recently but it seems to be working for now.

    3. Adding a button in forum:- Sure. Please allow me to check the code with CB tomorrow and post it.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Rob on #43235

    Hello Brajesh,

    Good to hear from you.

    On item 1, is there a way to simply not show it?

    I tried hiding with CSS and it just left a white space.

    Item 2

    Your suggested plugin failed to add views to each post.

    It may show in the info box but Ive hidden .bbp-reply-revision-log li and .bbp-template-notice with CSS, it’s irrelevant info that takes up space for no good reason.

    Found this plugin WP-PostViews https://wordpress.org/plugins/wp-postviews/

    It will actually add post views in the posts themselves on the landing page and on the topic pages.

    Unfortunately I can’t find where to put it.

    the instructions are as follows:

    Open wp-content/themes/<YOUR THEME NAME>/index.php
    You may place it in archive.php, single.php, post.php or page.php also.
    Find: <?php while (have_posts()) : the_post(); ?>
    Add Anywhere Below It (The Place You Want The Views To Show): <?php if(function_exists(‘the_views’)) { the_views(); } ?>
    Or you can use the shortcode [views] or [views id=”1″] (where 1 is the post ID) in a post
    Go to WP-Admin -> Settings -> PostViews to configure the plugin.

    I can’t find any of those php pages in the child theme to add this.

    Thanks so much and Best Regards!
    Rob

    • This reply was modified 2 years ago by Rob.
  • Keymaster
    (BuddyDev Team)
    Posts: 24080
    Brajesh Singh on #43320

    Hi Rob,
    Thank you.

    1. Please add the following css

    
    .bbp-topic-tags + .bbp-template-notice.info{
    	
    	display:none;
    }
    

    2. You can put the following code in your child theme’s functions.php or in wp-content/plugins/bp-custom.php

    
    add_action( 'bbp_template_before_single_topic', function() {
    	if ( function_exists( 'the_views' ) ) {
    		the_views();
    	}
    }, 100);
    

    That will show the view count at top for the single topic.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Rob on #43413

    Hi Brajesh,

    Thanks for the code.

    I placed in wp-content/plugins/bp-custom.php and it worked great!

    Still waiting on how to add that “new topic” button that slides people down to the editor, at your convenience.

    One additional question would be how to add div.”page-header-mask” (flex box type container for header images) to the landing page for the forum, just as it appears on the /forums/topic/ pages.

    Best Regards,
    Rob

    • This reply was modified 2 years ago by Rob.
  • Keymaster
    (BuddyDev Team)
    Posts: 24080
    Brajesh Singh on #43528

    Hi Rob,
    Thank you for confirming.

    Please put the following code in bp-custom.php too to add the new topic button

    
    add_action( 'bbp_template_before_single_forum', function () {
    	echo "<h4 class='bbp-new-topic-btn-header'><a href='#new-post'>New Topic</a></h4>";
    	?>
    	<style>
            .bbp-new-topic-btn-header {
                text-align: right;
    
            }
    
            .bbp-new-topic-btn-header a {
                display: inline-block;
                padding: 0.5em 1em;
                cursor: pointer;
                background: #fff;
                border: 1px solid #DBDBDB;
            }
    	</style>
    	<?php
    } );
    
    

    Please let me know if it works for you or not?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved