Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,626 through 8,650 (of 32,505 total)
  • Author
    Search Results
  • #162830
    PinkishHue
    Participant

    This topic is a bit old now but if you’re still looking for an answer (or if helpful to other people)

    Here’s some info that should help:

    Layout and functionality – Examples you can use

    Sticky thread Issues

    #162822
    PinkishHue
    Participant

    Cool, I didn’t know that.


    @shanesams
    There probably is a way to code this. I’m succesfully using the Ajax replies plugin mentioned here:

    Has anyone used the bbpress ajax replies plugin??

    So perhaps that could be customised to work with an activity style layout? Just needs someone with some bbpress smarts to take a look at it 🙂

    PinkishHue
    Participant

    It does seem tricky to set this sort of thing up (hopefully to be improved in future versions of bbpress?).

    One way to do this, although not the most robust option, would be to simply hide the new topic form for everyone but keymasters/admins when viewing that particular forum.

    I will assume you are accessing your new topic form when viewing the individual forum (it’s trickier if you are using the new topic form where you choose which forum to post to instead of/as well as individual forms in each section. This is what’s used here on the bbpress.org forums for example. If you need a solution for this as well let us know, I’m sure someone can explain how to do that)

    This is just off the top of my head and not tested (hopefully someone more experienced will be able to advise better) – in wp-content/your-theme/bbpress/form-topic.php (create this file if it’s not already in your theme, copy the original from wp-content/plugins/bbpress/templates/default/bbpress/

    At the top of the file, after this code:

    <?php
    
    /**
     * New/Edit Topic
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>

    Add this code to check if you are in your news forum (here I’ve used forum id ‘5’ as an example, you’ll have to find the specific id for your forum) and if the user is an admin (there may be a better to do this using the keymaster role instead of the usual WP role but I don’t know about that):

    <?php if ( bbp_is_single_forum( '5' ) && current_user_can( 'manage_options' )) : ?>

    Then at the very end of the file close the if statement by adding this:

    <?php endif; ?>

    That should work as far as I know but I am still finding my way with bbpress so can’t say for definite. Good luck!

    oyeben6
    Participant

    Hello, this is my second ost in this forum. I install bbpress plugin in my wordpress website and when i want to post topics or replies in my Front-End i get ERROR : Are you sure to do that ?.

    Please i need your help

    Wordpress version: 4.2.2
    bbPress version: 2.5.7
    Template version : Dream theme The7.2

    #162802
    quentinpotgieter
    Participant

    Okay great, so all I really had to do is declare the variables first. So in future for everybody else, here is my solution:

    <?php //parent variables
    	$parent = get_post($post->post_parent);
    	$parent_title = get_the_title($parent);
    	$grandparent = $parent->post_parent;
    	$grandparent_title = get_the_title($grandparent);?>
    <div id="a-<?php echo $grandparent_title; ?>">

    Thank you very much Rob for your guidance.

    Robkk
    Moderator

    This plugins should help if you want more control.

    https://wordpress.org/plugins/peters-login-redirect/

    Without a Plugin you have to add this to your child themes functions.php

    add_filter( 'login_redirect', 'rkk_login_redirect' );
    function rkk_login_redirect() {
        // Change forums to whatever is your forum main page
        return home_url( '/forums' );
    }
    Stephen Edgar
    Keymaster

    So your importing from phpBB v1?

    Indeed our importers only support phpBB 3.x for bbPress 2.5.x and phpBB v3.1 for bbPress 2.6

    Did you write your own phpBB v1 importer or copy and modify the one that is included with bbPress?

    There are also some fixes and improvements in our repair tools coming for bbPress 2.6 that hopefully will be released in the next couple of weeks.

    I’m happy to take a look at the importer if you made one and/or some data examples, you can post code examples on GitHub here https://gist.github.com/ntwb

    (If you added the raw MySQL data from a single forum, a topic of that forum, and a reply of that topic I could give you some tips on what the main issues are that your most likely having)

    Stephen Edgar
    Keymaster

    Well, – forums are showing, so do topics, – when i click on “Replies” in admin – i get no response from server. Yep, there’re about 7,5M replies there, but i guess it has to work despite of that fact?

    Those replies are shown in frontend and forums seem to work well.

    This is because there is a slight data mismatch I expect, most likely around either post_parent in wp_posts or some of the post meta relationships in wp_postmeta.

    And yes, even though they show on the front end correctly.

    Another issue is: as i imported forums and topics to db – i could see them both listed at backend and frontend. But if i tried to come into the forum or topic on frontend i’ve got “not found”.

    This is going to similar I think to the above, one or two of the meta relationships is not quite correct.

    Open forum in backend, then just “save” helped that.
    Bulk select topics, edit, changing nothing, just “save” helped that.

    The affect of doing this is that when saving/updating forums, topics, replies we have some error checking that will validate that the ID is indeed the correct type that is be saved, so be it a replies parent topic, or a topics parent forum etc these get validated upon saving.

    Thus this is kind of working as a pseudo repair tool repairing that meta I mentioned above.

    I’ll add another reply in a moment…

    #162788
    PinkishHue
    Participant

    One way to achieve this sort of thing would be using the ‘Display Posts Shortcode’ plugin:

    https://wordpress.org/plugins/display-posts-shortcode/

    Once installed you can add a shortcode to a post or page to display a list of all topics and replies:

    [display-posts post_type=”topic,reply”]

    and there’s lots of different settings you can customise, see documentation here:

    https://github.com/billerickson/display-posts-shortcode/wiki

    You may just need to customise the look of it to be more like a normal ‘activity’ page as normally this will just give a plain text list of your posts, so it depends on your needs.

    Hope that helps 🙂

    eta: You would still have to click on the posts in the list and go to their own page to add a reply. I’m not sure if that’s something you are trying to avoid when you say “batch process my replying right there. no clicking to forums” I’m presuming you just mean no clicking to see the posts, not for replying.

    #162787

    In reply to: First post not showing

    PinkishHue
    Participant

    Hi Steven. I don’t know anything about that plugin (and still finding my feet with bbpress) but my first thought is that it might be a conflict with the ‘lead topic’ feature of bbpress which allows you to use a different theme template/styling for the first post in a topic.

    Here’s some more info on that:

    bbp_show_lead_topic

    If this is enabled on your site I would try disabling it (removing that code from your functions.php/plugin/wherever it might be), or alternatively if it’s not enabled, try enabling it, and see if that does anything.

    Also, let us know what theme you are using and does it have custom bbpress templates included in it?

    Hope that helps a bit!

    #162778
    Robkk
    Moderator

    something like this might work

    get_the_title( $post->post_parent );

    #162777
    Robkk
    Moderator

    add this to your child themes functions.php file or insert this snippet into a functionality plugin and all links posted to your forum would just return plain text.

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4    );	
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4    );
    #162773

    In reply to: Page Comments

    Robkk
    Moderator

    unless there is a way to set it up so that all posts have to be moderated before they go live?

    https://codex.bbpress.org/getting-started/user-submitted-guides/dealing-with-spam/#protecting-anonymous-posting-from-spammers

    #162757
    oyeben6
    Participant

    Hello all, i’m new user of bbpress plugin. So after installation and set up configuration of plugin, i get a error ERREUR: ĂŠtes-vous sĂ»r de vouloir faire ça ? in english it’s : ERROR : Are you sure to do that ? when i want to post Topics or Replies since my front-end whatever the user. But in my back-end it’s alright i can create topics, replies.

    Please can you help me ?

    I use :
    Wordpress version: 4.2.2
    bbPress version: 2.5.7
    akismet version: 3.1.1

    #162751

    Topic: widget hover color

    in forum Showcase
    projectprince
    Participant

    WordPress 4.2.2 Avada v3.7.4 bbpress Version 2.5.7
    http://www.haltoninfo.org.uk

    I would like the hover colour for all the text links to be in red.
    I have added the following to the custom CSS box:
    a:hover{color:red; !important;}
    This does not work in my sidebar.
    It works for the bbpress login widget, but not for Forum List, Recent Topics or Recent Replies widgets.
    Please can you tell me what CSS code to use.

    #162749

    In reply to: Broken Breadcrumbs

    Robin W
    Moderator

    to save someone scrolling through, this is the solution posted by @themusiciangirl1 – thanks Maya !

    Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!

    1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
    2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
    3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.

    TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.

    #162743

    In reply to: Plugin for moderation

    Shmoo
    Participant

    I doubt someone will make a plugin like this in the near future because it’s listed as a native bbPress feature for 2.7. ( next year at bbPres dev pace )
    https://bbpress.trac.wordpress.org/milestone/2.7

    If you’re feeling comfy editing the bbPress template files you could make something like this in a very basic setup.

    1) You’d need to add a few different user_roles to WordPress and give each moderator it’s own user_role
    2) Next you’d have to work with conditional PHP tags. For example: PHP -> If [ user_role = xxx AND topic is in forum ID ZZZ ] then –> show the moderation links. IF the above rule is not true –> don’t show them at all and return nothing.

    https://codex.wordpress.org/Conditional_Tags

    This isn’t very difficult if you have beginner PHP knowledge or let’s say you’re not afraid to touch the template files on a development install. Never do this on a Live site if you don’t know what you’re doing.

    #162740
    quentinpotgieter
    Participant

    Hi, Thank you in advance. I always do a lot of research coming up with a solution before finally asking here.

    I have Home » Forums » Classifieds » Air Sports » Topic name – Breadcrumb

    I am able to output the parent title using bbp_forum_title(); which shows Air Sports

    I need to output the Parent of that so it shows Classifieds

    How can I do that with something short like <div id="<?php bbp_forum_title(); ?>">?

    I will wait for your response this time, I believe it would only be later tonight (Eastern Africa Time)

    alcavit
    Participant

    Hi,

    I just run a small forum and am looking to move it to bbpress. It is currently on PHPbb 3.1.3. I have everything entered in correct I am sure, but all I get when I import is the replies… No users, categories, topics, etc… just replies.

    Let me know if you have any suggestions please.


    Repair any missing information: Continue
    Conversion Complete
    No reply_to parents to convert
    Converting replies (100 - 199)
    Converting replies (0 - 99)
    No tags to convert
    No super stickies to stick
    No stickies to stick
    No topics to convert
    No forum parents to convert
    No forums to convert
    No passwords to clear
    No users to convert
    Starting Conversion

    #162713
    wplove3268
    Participant

    I also found that when, as Keymaster, I went to Edit a particular topic or reply, the Edit field displayed no text and I was not able to save any changes. When I commented out this particular snippet form derricksmith01’s solution the problem dissappeared.

    function buddyboss_bbpress_form_reply_content($retval){
    	global $bp;
    	if (end($bp->action_variables) == 'edit' && in_array('topic', $bp->action_variables) && in_array('reply', $bp->action_variables)) {
    		$post = get_post( bbpress()->current_reply_id );
    		return esc_textarea( $post->post_content );
    	}
    }
    
    add_filter('bbp_get_form_reply_content','buddyboss_bbpress_form_reply_content', 10, 1);
    ns
    Participant

    Hello.

    I’d like to solve problem.
    Would anyone answer to my problem?

    Firstly, the conditions of WordPress, bbPress, design theme, plugin, and function.php are below.
    Wordpresss: Latest version
    bbPress: Latest version
    design theme: Original building
    plugin: introduced “bbPress – Sort topic replies”.
    The settings of this plugin are “Global:Descending”, “No Parent:Default”, and “Always show lead Topic:Yes”.
    function.php: Below code exists.

    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    function change_reply_order() {
    	$args['order'] = 'DESC';
    	return $args;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }

    Then, here is main topic.
    The function of bbPress itself is that after the user replies to the parent topic in topic page, next screen shows the last page(the page of max number) if the pagination shows.
    With the setting of “bbPress – Sort topic replies” plugin is under “Global:Descending”, the redirection which I expect is to go to the first page.
    I think that this solution isn’t https://bbpress.org/forums/topic/new-replies-redirect-to-last-page/

    I’ve searched and tried to solve the problem, however I can’t find the solution.
    I wonder my current settings or ways might be wrong.

    Thanks.

    #162707

    Getting 3 more notices

    Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /Applications/MAMP/htdocs/supernova/wp-includes/functions.php on line 3560
    
    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /Applications/MAMP/htdocs/supernova/wp-includes/functions.php on line 3560
    
    Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/supernova/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php:28) in /Applications/MAMP/htdocs/supernova/wp-includes/pluggable.php on line 1196
    #162706

    Same Issue, I am using the latest version of bbpress and buddypress.

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /Applications/MAMP/htdocs/supernova/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    #162696
    Robkk
    Moderator

    Adding menu links like that is quite difficult unless you manually create the menu in HTML and just not worry about the WordPress menu configuration.

    I suggest maybe creating a copy of the login widget and add whatever links you want for the suer to the bbPress login Widget.

    This explains it quite briefly.

    Layout and functionality – Examples you can use

    If you need help or an example plugin to create this please reply back.

    #162692

    In reply to: bbPress 2.5.5

    Robkk
    Moderator

    @littleapplebigpear

    To create a topic you choose the forum you want to create a topic in from the left forums list.

    then you scroll down to the topic form.

    to fix your issue.

    #bbpress-forums .reply,
    #bbpress-forums .reply:hover {
      color: #000000 !important;
    }
Viewing 25 results - 8,626 through 8,650 (of 32,505 total)
Skip to toolbar