Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,176 through 4,200 (of 32,518 total)
  • Author
    Search Results
  • reedy
    Participant

    That code was very helpful, @codingmachine — one question, though. Is there any way to change the name of the roles that are output to the forum? I don’t want to change the name of the role in WordPress, I just want to change the output.

    So, for example, if the user role is “Student”, I want it to output “Client”. Is this possible by editing the code you shared?

    #194857
    pyoil
    Participant

    Small change to the exclusion list. Excluding the backbone.min.js and js/underscore.min.js broke the forum page.

    Add the following instead:
    js/tinymce, js/comment-reply.min.js

    #194856
    pyoil
    Participant

    Disable your plugins one by one, starting with your cache plugins and see if it fixes the issue.

    I was having the same issue. In my case, my cache plugin was breaking both the tinymce visual editor and the quick tags in the text editor.

    To fix both, I excluded the following JS scripts in my cache plugins:

    js/tinymce, js/backbone.min.js, js/underscore.min.js, js/comment-reply.min.js

    If you use Autooptimize then add the above piece of code here

    Settings > Autooptimize > JavaScript Options > Exclude scripts from Autoptimize:

    #194855
    pyoil
    Participant

    Disable your plugins one by one, starting with your cache plugins and see if it fixes the issue.

    I was having the same issue. In my case, my cache plugin Autooptimize was breaking both the tinymce visual editor and the quick tags in the text editor.

    To fix both, I excluded the following JS scripts in my cache plugins:

    js/tinymce, js/backbone.min.js, js/underscore.min.js, js/comment-reply.min.js

    If you use Autooptimize then add the above piece of code here

    Settings > Autooptimize > JavaScript Options > Exclude scripts from Autoptimize:

    #194854
    pyoil
    Participant

    Disable your plugins one by one, starting with your cache plugins and see if it fixes the issue.

    I was having the same issue. In my case, my cache plugin was breaking both the tinymce visual editor and the quick tags in the text editor.

    To fix both, I excluded the following JS scripts in my cache plugins:

    js/tinymce, js/backbone.min.js, js/underscore.min.js, js/comment-reply.min.js

    If you use Autooptimize then add the above piece of code here

    Settings > Autooptimize > JavaScript Options > Exclude scripts from Autoptimize:

    #194853
    pyoil
    Participant

    In my case autooptimize was breaking both the tinymce visual editor and the tags in the text editor.

    To fix both, exclude the following scripts from your cache plugins:

    js/tinymce, js/backbone.min.js, js/underscore.min.js, js/comment-reply.min.js

    If you use Autooptimize then add the above piece of code here

    Settings > Autooptimize > JavaScript Options > Exclude scripts from Autoptimize:

    #194851
    serezh4
    Participant

    Hello!

    Now I have topic titles:

    <title>Topic Title - Domain.com</title>

    How can I customize topic titles to:

    <title>Topic Title - Forum Title - Domain.com</title>

    lookingahead
    Participant

    Hiya. I’m wondering where in the code the choice of template to use is made, when a forum is created.

    I want bbPress to choose to use the Topic Discussion page template for its Forum page — the page that is created with the discussion itself for a topic — when it creates a new Forum….how do I get it to use that template instead?

    I do not need a page that lists all topics for a forum; this is being built to be a one-topic forum; having a list of topics when there will only ever be one topic is just more clicking for my users to have to do, to get to the actual discussion.

    I only want the discussion of the topic itself to populate, not a list of topics which is what the forum template does now.

    Thoughts?

    #194793

    Topic: bbPress Moderation

    in forum Plugins
    JosephTersoo
    Participant

    I need help with this plugin bbPress Moderation By Ian Stanley https://wordpress.org/plugins/bbpressmoderation/
    i use this to hold topics for moderation from my participants before publishing them, because not all topic i will want to publish. but the thing with this plugin is that it hold but topics and reply for moderation and has no option to separate them.
    Is there any way like code that i can use to prevent topics from being moderated, only post should be held for moderation and the reply should not be held.

    #194792
    JosephTersoo
    Participant

    Thank alot it worked fine,
    first when i put the code in functions file, it break my site and it was off, i deleted it from cpanel.
    i later created a plugin added to code to it and activate and it worked fine. thanks.

    #194775
    Robin W
    Moderator

    add this to your functions file

    
    function rew_min_length ($reply_content) {
    	if (strlen($reply_content)<61) {
    		bbp_add_error( 'bbp_reply_content', __( '<strong>ERROR</strong>: Your reply must be at least 60 characters.', 'bbpress' ) );
    	}
    return $reply_content ;
    }
    
    add_filter( 'bbp_new_reply_pre_content', 'rew_min_length' );
    #194772
    Robin W
    Moderator

    sorry, that’s how it works in bbpress.

    But if you do get to someone who has coded, please post the result back here to help others.

    my style pack plugin has a button you can add to the pages to make it clearer

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Buttons

    #194769
    Robin W
    Moderator

    anything is possible, but this is a chunk of code that you are hoping someone will do for free 🙂

    #194762
    Robin W
    Moderator

    I’m pretty sure it’s a setting in your theme which you should be able to blank, but this will fix it in any case

    put the following in your theme’s custom css

    .fusion-menu-description {
    display : none ;
    }
    #194742
    JosephTersoo
    Participant

    Please is there any plugin or code i can use to set minimum reply length on my forum, i want reply’s to not be less than 60 character. so when any body reply’s with 60 character it tells to person to type not less than 60 character words.
    Please i need this urgently.
    thanks.

    #194732

    In reply to: Single Forums

    lookingahead
    Participant

    HI all……so @Robin-w can you help me do this with that plugin somehow?

    I only want one topic per forum. Just one.

    And that single-topic forum? It will be attached to a hidden group.

    So I’m looking for….a way to bypass the screen that lists “topics” in a forum; there will only be ONE topic PER forum, so having that screen there is unnecessary and confusing to my forum participants. And creates “click fatigue.” They should be able to get to the group front page, click “Forum”…then be brought to the discussion on the only topic that that forum will ever be tied to.

    And each group’s topic will be different. But ONLY one topic per forum, per hidden group.

    Note: I’ll eventually be creating hundreds of individual hidden groups….so I do not want to have to go in and hand code the direct link to the single forum topic for each of these groups, just to bypass a page, each time….

    Soooo……I want the flow to be:
    – [click on ‘My Groups’ which is right next to ‘All Groups’ — it’s at that page]
    – [I then see a group link, in list of groups….so I click on a desired group]
    – [get to that group’s front page]
    – [click on ‘Forum’ option there]
    – [***NOW I should see no other things to choose from — there are no other topics that will be in this forum, so I should not be brought to a page with a list of topics to choose from; instead, I am immediately brought to a discussion, which is a discussion that is covering the only topic that that group is ever going to discuss]

    HOW do I achieve this….???

    I was looking for a widget that was a “discussion” widget that I could use to customize the group front page, but never found one.

    And the “activity stream” is littered with an RSS feed and a search bar, and it doesn’t allow for uploading pictures (WHICH IS CRITICAL)….forums allow to upload pictures. So I’d just use the Activity Stream if it was feasible, which it appears to not be. But hell — if that was easier to modify than skipping a forum ‘topic list’ page….let me know that too, please.

    Thanks in advance for all your assistance; I am desperate to finally solve this, lol….! 😀

    #194719

    In reply to: How add Class on list

    puniler
    Participant

    Sorry, I will re-ask the question.

    Why is this code on the “loop-single-reply.php” enclosed in <li></li>?

    ↓loop-single-reply.php

    <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
        <!--various-->
    </div><!-- #post-<?php bbp_reply_id(); ?> -->
    
    <div <?php bbp_reply_class(); ?>>
        <!--various-->
    </div><!-- .reply -->

    ↓HTML

    <li>
    <div id="post-777" class="bbp-reply-header">
        <!--various-->
    </div><!-- #post-777 -->
    
    <div class="even bbp-parent-forum-212 bbp-parent-topic-383 bbp-reply-position-17 user-id-5 post-439 reply type-reply status-publish">
        <!--various-->
    </div><!-- .reply -->
    </li>

    Where is the code to add the <li></li>?
    I want to rewrite it.

    #194707

    In reply to: How add Class on list

    puniler
    Participant

    My purpose is this. I want to find a code adding a list and add a ClassName.

    Why does the list add to HTML, even though there is no code to add a list to both “loop-replies.php” and “loop-single-reply.php”?

    By the way, what I wrote as “list” so far is “<li></li>“.

    #194706

    In reply to: How add Class on list

    puniler
    Participant

    I am trying to implement the infinite loader on the reply page.

    That’s the plug-in for that:
    Ajax Pagination and Infinite Scroll
    https://wordpress.org/plugins/malinky-ajax-pagination/

    And to use this plugin I need to add ClassName to the list, but I do not know where the list is added.

    Regardless of where I look in the template, I can not find any additional code for the list.

    I would like to find the additional part of the list and add it a ClassName.

    #194700

    In reply to: How add Class on list

    puniler
    Participant

    Thanks for getting back to me.

    Break down the code in question into three.

    (1)
    I found the following code in this directory,
    wp-content/plugins/bbpress/templates/default/bbpress/loop-replies.php

    <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    
    	<li class="bbp-header">
    		<!-- various -->
    	</li>
    
    	<li class="bbp-body">
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    	</li>
    		
    	<li class="bbp-footer">
    		<!-- various -->
    	</li>
    
    </ul>

    (2)
    And the template called in the above code is below.
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    	
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    		
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>	

    (3)
    But I could not find the code for the part of the list below.

    	<li class="★">
    
    	</li>
    
    	<li class="★">
    
    	</li>

    In the output HTML, this list is included, but the PHP template does not show the part of the list.

    Where is the list, how can I rewrite it?

    Thanks.

    #194687

    In reply to: How add Class on list

    Robin W
    Moderator

    so where did this code come from ?

    #194682
    puniler
    Participant

    Hi,

    I want to add Class on “★” by PHP template.

    <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    
    	<li class="bbp-header">
    		<!-- various -->
    	</li>
    
    	<li class="bbp-body"></li>
    		
    	<li class="★">
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    	</li>
    	
    	<li class="★">
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    	</li>	
    
    	<li class="bbp-footer">
    		<!-- various -->
    	</li>
    
    </ul>

    But I do not know the appropriate PHP template.
    I wonder what I should do.
    Thank you.

    #194678
    eigodeasobo
    Participant

    There are 13 comments on my page, and there are 5 display settings.

    Web:http://urx2.nu/LPiR
    Img:http://folio.ink/jzbNpw

    But pagination is not display!!

    This is the HTML:

    <div class="bbp-pagination">
    	<div class="bbp-pagination-count">
    
    		
    	</div>
    
    	<div class="bbp-pagination-links">
    
    		
    	</div>
    </div>

    I just installed an WordPress, and only BBPress plugin activated.

    Why??

    #194675

    In reply to: Bbpress Sidebar Width

    iraarel
    Participant

    Is there any css code for only css to set the widths option?
    And i use jannah 2 theme.

    #194671
    Robin W
    Moderator

    so with wordpress and bbpress installed, you create a forum in the dashboard and then create a page called say ‘forum’ and in the contents put

    [bbp-forum-index]

    save this page, publish it, and then view ot and you will see the forum.

    you could also follow this

    Step by step guide to setting up a bbPress forum – Part 1

Viewing 25 results - 4,176 through 4,200 (of 32,518 total)
Skip to toolbar