Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,476 through 8,500 (of 32,522 total)
  • Author
    Search Results
  • #163612

    In reply to: Losing Sidebars

    Robkk
    Moderator

    Try some troubleshooting first

    Troubleshooting

    Also I guess see if you set up the two themes the same.

    #163607
    Robkk
    Moderator

    I am still not able to understand it. First I dont know how to create a child theme and second I dont know how to do what you are suggesting. I am also facing some issues with buddy press. The buttons are not displaying properly.
    Can you suggest any other good community plugin?

    There is no plugin to just fix it. bbPress is inheriting a template from your theme that is causing this issue. Since all themes are different creating a plugin to fix them all would be really difficult.

    To create a child theme you can read this: https://codex.wordpress.org/Child_Themes

    If you need help with anything , please tell me exactly what you need help with or at least tell me what you understand.

    And what buttons are not displaying properly?? This is probably CSS so I could do this for you easily.

    Also since you are using a paid theme (Canvas) , you might want to consider contacting your theme author for help.

    I cant just do it for you for free, you can contact me through email if you want me to do it for you.

    Contact

    #163605
    Robkk
    Moderator

    use the topic form shortcode.

    [bbp-topic-form]

    Shortcodes

    It would be supper nice to be able to put a general “Start a Discussion” button on various pages

    Ive explained to users bunches of times how to do this kind of functionality. Search the forums and search “new topic button”

    Robkk
    Moderator

    I dont think it is an issue with Login , maybe cache??

    Try some troubleshooting first.

    Troubleshooting

    #163600

    In reply to: Width change

    Robkk
    Moderator

    The “css” directory contains style sheets that work with the default markup. Copy any you want to modify into a directory named “css” in your theme’s root. eg. /wp-content/themes/%your-theme%/css/

    https://codex.bbpress.org/theme-compatibility/

    #163599
    Robkk
    Moderator

    @drcath

    Did you try to do any troubleshooting first??

    Troubleshooting

    #163591
    peppecol
    Participant

    I have the same problem I can not put a file to download.
    The shordcode I should put it: [wpdm_package id = ‘12529’]
    How can I do?
    I also installed
    https://wordpress.org/plugins/bbpress-do-short-codes/ but nothing has changed I could explain what I do?
    Thanks!

    #163553

    In reply to: User ranking system?

    Stagger Lee
    Participant

    Forgot this, very important. Cannot test it now, dont have so huge forum. And dont want to touch database just to test.

    For Users with over 50.000 posts and up to infinite:

    elseif($post_count >= 50001) {
    echo '<div class="all-stars"><i class="svg-icon nine-star"></i></div>';
    }
    #163551

    In reply to: User ranking system?

    Stagger Lee
    Participant

    I did not ooked for User ranking/Voting system. I needed simple star systems for posts count. If User has so many posts/comments give him/her one additional star (under avatar).

    So here is my code. Maybe it could be reduced in lines, made better. I have brain blocade right now.

    // bbPress User post count
    function display_counts () 
    {
    		
    		$user_id=bbp_get_reply_author_id( $reply_id ) ;
    		$topics  = bbp_get_user_topic_count_raw( $user_id);
    		$replies = bbp_get_user_reply_count_raw( $user_id);
    		$post_count   = (int) $topics + $replies;
    		echo "<div class=\"user-comments-count\">" ;
    		echo "<strong>" . "Comments: " . "</strong>" ;
    		echo $post_count ;
    		echo "</div>" ;
    		// echo "</br>" ;
    		//if ($post_count > 1) {
    //	    echo '<i class="svg-icon all-stars"></i>'; 
    //	    }
    		
    		if ($post_count >= 1 && $post_count <= 20) {
    		echo '<div class="all-stars"><i class="svg-icon one-star"></i></div>'; 
    		}
    		elseif($post_count >= 21 && $post_count <= 50) {
    		echo '<div class="all-stars"><i class="svg-icon two-star"></i></div>';
    		}
    		elseif($post_count >= 51 && $post_count <= 100) {
    		echo '<div class="all-stars"><i class="svg-icon three-star"></i></div>';
    		}
    		elseif($post_count >= 101 && $post_count <= 500) {
    		echo '<div class="all-stars"><i class="svg-icon four-star"></i></div>';
    		}
    		elseif($post_count >= 501 && $post_count <= 1000) {
    		echo '<div class="all-stars"><i class="svg-icon five-star"></i></div>'; 
    		}
    		elseif($post_count >= 1001 && $post_count <= 2000) {
    		echo '<div class="all-stars"><i class="svg-icon six-star"></i></div>';
    		}
    		elseif($post_count >= 2001 && $post_count <= 5000) {
    		echo '<div class="all-stars"><i class="svg-icon seven-star"></i></div>';
    		}
    		elseif($post_count >= 5001 && $post_count <= 10000) {
    		echo '<div class="all-stars"><i class="svg-icon eight-star"></i></div>';
    		}
    		elseif($post_count >= 10001 && $post_count <= 50000) {
    		echo '<div class="all-stars"><i class="svg-icon nine-star"></i></div>';
    		}
    		echo "</br>" ;
    		}
    add_action ('bbp_theme_after_reply_author_details', 'display_counts');

    CSS, needed for this snippet:

    .svg-icon,
    .all-stars {
      font-family: 'Your SVG Web Font';
      font-style: normal;
      font-weight: normal;
      text-decoration: inherit;
      text-align: center;
      text-transform: none;
      width: 1em;
      }
      
    .one-star:before,
    .two-star:before,
    .three-star:before,
    .four-star:before,
    .five-star:before,
    .six-star:before,
    .seven-star:before,
    .eight-star:before,
    .nine-star:before,
    .all-stars:before {
      left: 12px;
      position: absolute;
    }
    
    .one-star:before {
      content: '\28b';
    }
    .two-star:before {
      content: '\28b''\28b';
    }
    .three-star:before {
      content: '\28b''\28b''\28b';
    }
    .four-star:before {
      content: '\28b''\28b''\28b''\28b';
    }
    .five-star:before {
      content: '\28b''\28b''\28b''\28b''\28b';
    }
    .six-star:before {
      content: '\28b''\28b''\28b''\28b''\28b''\28b';
    }
    .seven-star:before {
      content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b';
    }
    .eight-star:before {
      content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b';
    }
    .nine-star:before {
      content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b';
    }
    
    .all-stars:before {
      content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b';
      color:#ddd;
    }
    #163549
    Stagger Lee
    Participant

    I have this problem very often, plus some others. Very, very annoying. Specially when you prepare code to help other Users here.

    #163544

    In reply to: User ranking system?

    Pushkar Kathayat
    Participant

    I also want to use user rating system in one of my blog. Can Janseo please would you like to provide the final code for the same?

    #163536
    webappdesigner
    Participant

    answered my own question….

    For anyone that has the same problem, bbpress -> includes -> extend -> buddypress -> groups.php

    on line 151 change

    public function display() {
    to
    public function display($group_id = NULL) {

    #163532

    In reply to: User ranking system?

    Robin W
    Moderator

    something like

    function display_counts () {
    		
    		$user_id=bbp_get_reply_author_id( $reply_id ) ;
    		$topics  = bbp_get_user_topic_count_raw( $user_id);
    		$replies = bbp_get_user_reply_count_raw( $user_id);
    		$post_count   = (int) $topics + $replies;
    			if ($post_count >100) { 
    			echo '<br>Hero' ;
    			echo "</br>" ;
    			}
    			else {	
    			echo "<br>Total posts : " ;
    			echo $post_count ;
    			echo "</br>" ;
    			}
    		}
    add_action ('bbp_theme_after_reply_author_details', 'display_counts') ;
    #163528

    In reply to: User ranking system?

    Stagger Lee
    Participant

    @Robin, can you give some example for this, inside this code above:

    //add some if statements here eg if $post_count>100 echo ‘hero’ or a link to a picture

    No matter what I tried it doesnt work.

    #163522
    lilmisskatie
    Participant

    Hi Rob!

    Sorry I wasn’t able to get back to you sooner. I had a bunch of things going one later in the day and only now able to sit back down to my computer to take a look at this. The code works like a Charm! Thank you so much for doing this. I’ll be happy to send you something your way and plan to tomorrow for the time you took to solve this.

    I will also be passing this along to the template support team for them to be aware of this.

    Thanks again so much! Really appreciate this!

    Kind Regards,
    Katie

    #163517
    Robkk
    Moderator
    #bbpress-forums input#bbp_topic_title {
    	float: none;
    	padding: 0;
    }
    
    #bbpress-forums .bbp-form p {
    	float: none;
    	margin: 0;
    }

    sorry made a little mistake haha writing it here.

    #163516
    Robkk
    Moderator

    @lilmisskatie

    Its the themes CSS causing an issue with the input box for the topic title.

    This custom CSS should do it.

    #bbpress-forums input#bbp_topic_title {
    	float: none;
    	padding: none;
    }
    
    #bbpress-forums .bbp-form p {
    	float: none;
    	margin: 0;
    }

    Tell your themes support this too.

    If you feel like donating you can do so here

    About Me

    #163495
    Robkk
    Moderator

    It is just the quicktags api from WordPress. You see the same button when entering the html mode when creating a blog post.

    See if this post helps, it says tinymce but there is also quicktags code in there.

    Add TinyMCE and Quicktags visual editors to WordPress comments form

    you can also use the basic comment quicktags plugin

    #163480
    Robkk
    Moderator

    This could be from some security/spam plugin.

    Go through these troubleshooting steps

    Troubleshooting

    #163475
    Robkk
    Moderator

    @mrose74

    You also modify the main template that bbPress uses but this would also require FTP data.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    You should contact your host to find the FTP data you have.

    #163474

    In reply to: Plugin v. built-in

    Robkk
    Moderator

    Read this , This is a frequently asked question so I added it on to here.

    Frequently Asked Questions

    #163473
    Robkk
    Moderator

    search for unread/read posts plugins for bbPress.

    They are listed in here too.

    Feature Plugins Tracking

    #163470
    Robkk
    Moderator

    this might be coming from some other plugin you are using.

    Try the plugin troubleshooting steps here

    Troubleshooting

    you can also try theme too if you have some really advanced theme or something.

    #163468
    Robkk
    Moderator

    Is this what you are looking for??

    #bbpress-forums .entry {
      margin-bottom: 40px;
      padding: 50px 0px;
    }
    
    Robkk
    Moderator

    i have to create a new widget for own customization work and where i have to place that file

    If you know what you are doing , you can place it in a child themes functions.php , or just place it in a new file like says widgets.php to better organize your content then include the file using something like this in your functions.php

    require get_template_directory() . '/inc/widgets.php';

    You can also place the code in a custom plugin too.

    You shouldnt place any customizations in the bbPress plugins folder, because you will lose the changes next update.

    And You dont need to place the customized widget funcitons in the bbpress folder in your child theme either.

Viewing 25 results - 8,476 through 8,500 (of 32,522 total)
Skip to toolbar