Robkk (@robkk)

Forum Replies Created

Viewing 25 replies - 3,751 through 3,775 (of 3,784 total)
  • @robkk

    Moderator

    nevermind i pretty much add it after the else so it would just return a normal reply author link

    EDIT: didnt get it , still dont know how to construct functions πŸ™

    @robkk

    Moderator

    why do you need a plugin ?

    example cat picture

    when you reply to this comment look at the toolbar there is an image upload by url (img) button.

    if you want images to be uploaded to your server

    add this function to your functions php (if you have a child theme already set)

    add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' );
    /**
     * Allow upload media in bbPress
     *
     * This function is attached to the 'bbp_after_get_the_content_parse_args' filter hook.
     */
    function bavotasan_bbpress_upload_media( $args ) {
    	$args['media_buttons'] = true;
    
    	return $args;
    }

    but function only allows admins, moderators , and authors to upload images to your server.

    you would then need to change some user role capabilities so that if you want subscribers to upload images to your server

    @robkk

    Moderator

    ok my bad for bumping this

    but i changed my mind on how i want the function to display

    is there a way to use if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) {

    so that it just replaces this code of the reply author name

    div class=reply-author-name><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>

    to this instead

    div class=topic-starter><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>

    i just want to change the div class so that if the topic author = reply author it would just show the reply author name in just a different color , kind of like reddit

    i want this because when my site goes to a smaller size i have to remove some attributes like post count , buddypress profile data , user role , and the user avatar at really small screens just so i could make it look nice.

    i want to users to still recognize the topic starter even at smaller screens

    i think a simple filter might do this

    but i dont know where to even start.

    thanks if anybody helps

    @robkk

    Moderator

    your welcome

    @robkk

    Moderator

    yeah i might have to

    but before that im going to contact the developer , because they have this plugin where you can implement it into wordpress comments and im sure that an akismet integration would be a hell of a feature on wordpress comments or other post types.

    @robkk

    Moderator

    it shouldnt be each page…just each different sidebar you use if you use a plugin like custom sidebars .

    you can either enter each css code for each instance of the widget
    or you can give each instance of the widget a certain css id

    if you want to give each recent topics widget a certain css id

    download the plugin “widget css classes”

    in the options of the plugin you can activate “show additional field for id”

    then you can just 1 css id for where ever you place the widget

    you input your id in the widgets section , in each widgets options

    it should show fields to input your custom fields like this

    CSS CLASS:
    CSS ID:

    so if i enter

    CSS CLASS:
    CSS ID: custom-id

    i would have to add this css code

    #custom-id ul li {
    border-bottom: 1px solid #F1F1F1;
    }

    @robkk

    Moderator

    yeh i have the layout your talking about but i have it on my site for whatever width the screen is.

    heres a pic of a single reply

    https://docs.google.com/file/d/0B_Ue9ryY5cmYU3BHMDRkNzJsNU0/edit

    and whenever the screen gets smaller i just change the size of the fonts and the avatar size

    i will share the template files and css on github some time later though

    @robkk

    Moderator

    im working on a good layout that should be great on mobile devices

    its pretty much just turning attributes like freshness, posts, voices, and topics into rows instead of columns.

    And using topic reply space wisely , and basically turning bbpress replies VISUALLY into a comment system

    I might share my template files and css in the future

    but i did check out your site and see that your using buddypress too

    so you could try this plugin

    https://wordpress.org/plugins/buddymobile/

    I havent tried it yet so i cant really say much about it though.

    @robkk

    Moderator

    So where do we put this code, some might ask?: This is a plugin, so we can create a file like /wp-content/plugins/empty-anonymous-replies-in-bbpress/empty-anonymous-replies-β€Œβ€‹in-bbpress.php. Then we visit the plugin section in the backend and activate it. This code should also work from the functions.php file in the current theme directory. I hope this helps the users, that aren’t sure what to do with this code.

    you make a .php file copying the entire code they published

    or copy after

    /**
     * Plugin Name: Empty Anonymous Replies in BBPress
     * Plugin URI: http://wordpress.stackexchange.com/a/133420/26350
     */

    and add that code to functions.php if you hopefully have a child theme

    @robkk

    Moderator

    look up the css in inspect element

    and youll see that when you look at http://desimedicos.com/forums/view/latest-topics/

    on the recent forum topics widget the id of the widget is #bbp_topics_widget-8 now

    so now you would have to also add the custom css

    #bbp_topics_widget-8 ul li {
    border-bottom: 1px solid #F1F1F1;
    }

    look for changes like that on each page you have those widgets

    @robkk

    Moderator

    on my end whenever i used #sidebar and .widget it didnt work

    so

    #bbp_topics_widget-4 ul li {
    border-bottom: 1px solid #F1F1F1;
    }

    #bbp_topics_widget-4 ul li {
    border-bottom: 1px solid #F1F1F1!important;
    }

    #bbp_topics_widget-4 li {
    border-bottom: 1px solid #F1F1F1;
    }

    should all work

    @robkk

    Moderator

    #bbp_topics_widget-4 ul li {
    border-bottom: 1px solid #F1F1F1;
    }

    they work on my end

    do

    #bbp_topics_widget-4 ul li {
    border-bottom: 1px solid #F1F1F1!important;
    }

    or clear your cache

    @robkk

    Moderator

    #bbp_topics_widget-4 li {
    border-bottom: 1px solid #F1F1F1;
    }

    i think this is what your looking for?

    @robkk

    Moderator

    give me a site link and ill check it out

    @robkk

    Moderator

    read this on finding the widget class and id and customize it

    How to Customize a Specific WordPress Widget

    if you want to use a custom class and id for the widgets then get this plugin

    https://wordpress.org/plugins/widget-css-classes/

    @robkk

    Moderator

    i see this plugin will work when enable threaded replies is activated.

    plugin developer should have put that on the read me text file

    @robkk

    Moderator

    use css to make your changes

    Step by step guide to setting up a bbPress forum – part 2

    everything is pretty much in there

    @robkk

    Moderator

    this is very touching

    thanks for the information

    @robkk

    Moderator

    2. Below Each of the reply

    3. Interstilies add before opning forum.

    users are going to love adblock then

    i suggest that you dont bombard them with ads everywhere , show at least 2 – 4 on just one page

    use this plugin

    https://wordpress.org/plugins/bbpress-simple-advert-units/

    @robkk

    Moderator

    solved my own problem

    found this

    Add “Resolved” to Closed Topics in bbPress

    instead of using function.php

    i threw this into loop-single-topic ,
    the way i have my topics arranged it shows below the title

    for closed label

    <?php
       $topic_id = bbp_get_topic_id();
       if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_closed( $topic_id ) )
          echo '<span class="closed">[CLOSED]</span>';
    ?>

    for sticky label

    <?php
       $topic_id = bbp_get_topic_id();
       if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_sticky( $topic_id ) )
          echo '<span class="sticky">[STICKY]</span>';
    ?>

    @robkk

    Moderator

    nevermind i pretty much got it

    looked at https://bbpress.org/forums/topic/freshness-link/

    used <?php bbp_forum_last_topic_title(); ?> to get the title of the last recent topic

    and some code i had that robin gave me some time ago

    end function is this

    <div class="bbp-forum-last-topic-name"><a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><?php bbp_forum_last_topic_title(); ?></a></div>
    <span class="bbp-last-post-by-author"><?php printf( __( '%1$s', 'bbpress' ),bbp_get_forum_freshness_link( array() ) ); ?></span>
    <?php _e(' by ', 'bbp'); ?>
    <span class="bbp-forum-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>

    @robkk

    Moderator

    @robin-w Thank you very much!!!

    @robkk

    Moderator

    @robin-w its not anything additional

    im just trying to get the same function cyberchimps forums is using

    @robkk

    Moderator

    @robin-w if it works

    i dont know any other ways to make a function find out if the topic author and reply author have something in common , then in the end result display the label “topic author”

    @robkk

    Moderator

    after – i did find an example of a bbpress forum using exactly what i want though

    http://cyberchimps.com/forum-topic/full-width-bbpress-forum/page/2/

Viewing 25 replies - 3,751 through 3,775 (of 3,784 total)