Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,626 through 8,650 (of 32,519 total)
  • Author
    Search Results
  • #162899

    In reply to: Mentions sitewide

    Robin W
    Moderator

    The @ is simply text, it does nothing of itself.

    It could be coded to do all you ask, but nothing exists that I know of

    #162889

    In reply to: Topic excepts

    Robkk
    Moderator

    here is the code to display the topic excerpt, which i recommend so you would not have to display the whole description in a topic.

    <?php bbp_topic_excerpt(); ?>

    #162888
    Robkk
    Moderator

    You can use this for custom subscribe text

    //custom text for subscribe links
    function rkk_subscribe_link() {
      $args['subscribe'] = esc_html__( 'Subscribe to this',   'rkk' );
      $args['unsubscribe'] = esc_html__( 'Unsubscribe to this',   'rkk' );
      return $args;
    }
     add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'rkk_subscribe_link' );
     add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'rkk_subscribe_link' );
    #162885
    Robin W
    Moderator

    try adding

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    if ( $translated_text == 'old text2' ) {
    	$translated_text = 'new text2';
    	}
    
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    to your functions file. The wording needs to be exact including caps and punctuation

    Functions files and child themes – explained !

    boriskamp1991
    Participant

    hi!

    can I set the default behavior of the Notify me of follow-up replies via email button when posting to the forum or whatsoever?
    I would like it to be checked by default.
    Im pretty sure i could write some JS to do this on page load but was wondering if you guys have some built in solution for this?

    #162878
    boriskamp1991
    Participant

    Hi guys!

    looking at these forums, I can see the @name name is printed beneath the profile picture.
    How can I turn this on in my website?
    I’ve uploaded a beta of my website here

    Is there an auto suggestion option for the mentions?
    example, if somebody starts typing @bor he/she will be suggested @boris-kamp?

    Thanks!

    #162877
    Robin W
    Moderator

    which theme are you using?

    Have you tried the two methods in 3

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

    and looked at no. 8 in the same bit

    mmice
    Participant

    Raw SQL, yep.
    Here it goes:

    EDIT: SQL code is now here https://gist.github.com/anonymous/8d1cb71e69d52ac69f5d

    That’s not all, – i still have to implement a karma system to bbpress and also import it, and still have to import private messages. If you will be so kind to point me, what i’ve missed (and that cause error i’ve been experiencing), i appreciate it so much )

    Chezzer
    Participant

    I just figured out what I needed. It turns out bbp_get_forum_title() returns a string that I can actually compare and it seems to work perfect. So my issues in my last message can be ignored.

    Just for clarity, this is what the final piece looks like:

    <?php if (bbp_get_forum_title() !== "News") : ?>

    Then I just add the endif you suggested at the end and it works great.

    Thanks again!

    #162840

    In reply to: Custom CSS

    jbeagley
    Participant

    You nailed, thank you!!! I was missing a } closing the previous CSS code.

    #162839

    In reply to: Custom CSS

    Robkk
    Moderator

    @jbeagley

    Make sure to wrap code with the code button on bbpress.org

    I checked your custom CSS on your site.

    Sometimes CSS after a CSS statement is not complete will not work.

    For example make sure all of your statements have the

    #selector .selector  { <-- make sure you have this on all of your CSS statements
    property: value;
    } <-- make sure you have this on all of your CSS statements.
    #162836

    Topic: Custom CSS

    in forum Troubleshooting
    jbeagley
    Participant

    I have had no problem editing the appearance of the forum until I tried to change the background color of the current navigation link on the user details page… its the list of link including profile, topics started, replies created, etc…

    I have been editing it with the ‘custom css’ feature of my theme… this is what I added

    #bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a {
    background-color: #12681A;
    }

    I grabbed that code from the ‘inspector’ tool using F12 in my browser… just changed the color code… but is not affecting the page…

    any suggestions why this particular element isn’t being affected?

    wordpress 4.22
    bbPress 2.5.7
    http://hillberryfestival.com/forums/user/dhp/

    #162834

    In reply to: Allow HTML from users

    atsouf
    Participant

    Hello guys.

    I had the same issue. I read all the topics and i managed to fix almost everything thanks to your posts

    btw thans Edgar you saved my with your plugin.

    My only issue is this: i have activated the video button on tinymce so peoepl can add video using the youtube or vimeo url.

    I know that just pasting the link it will embed it but the issue is that you cant arranged width and height.

    Although i tried and added more things to Edgar’s plugin when i try to add iframe code it nothing appears on the post

    The code i added is:

    // iframe
    ‘iframe’ => array(
    ‘src’ => true,
    ‘style’ => true,
    ‘width’ => true,
    ‘height’ => true,
    ‘scrolling’ => true,
    ‘marginwidth’ => true,
    ‘marginheight’ => true,
    ‘frameborder’ => true,
    ),

    any help is welcome.

    Thanks in advance,
    atsouf

    #162833
    PinkishHue
    Participant

    This is an old topic but in case you’re still looking for help (or if helpful to someone else), this plugin allows you to use a shortcode to display a list of notifications (and other buddypress things) in a page or post:

    https://wordpress.org/plugins/bowe-codes/

    #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 );

Viewing 25 results - 8,626 through 8,650 (of 32,519 total)
Skip to toolbar