Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,701 through 8,725 (of 32,519 total)
  • Author
    Search Results
  • #162492
    Kharis Sulistiyono
    Participant

    Yes, possible.

    You can insert the massage via hook do_action( 'bbp_theme_before_reply_form' );. To make limitation, you can use post ID get_the_ID() detection.

    I hope it helps.

    #162491
    Robkk
    Moderator
    #bbpress-forums .bbp-author-avatar .avatar-14 {
      width: 24px;
      height: 24px;
      padding: 0;
      border: none;
    }

    if that does not work try this

    #bbpress-forums .bbp-author-avatar .avatar-14 {
      width: 24px !important;
      height: 24px !important;
      padding: 0 !important;
      border: none !important;
    }
    #162489
    Robkk
    Moderator

    try this CSS code and hopefully this fixes your issue.

    it looks too small at 14px so i bumped it up to 24px , you can change that back to 14 if you want.

    #bbpress-forums img .avatar-14 {
      height: 24px;
      width: 24px;
      padding: 0;
      border: none;
    }
    #162488
    Hunniemaid
    Participant

    Here are the results from placing the code in my functions.php file:
    You will see that I now have an avatar picture showing up next to the topic title, still no change to the other small avatars.

    #162482
    aaronos
    Participant

    I have a very similar problem and I must admit I have posted it as a seperate topic, but you guys seem so close to the problem (and solving it) that I trust it’s ok to post here as well.

    I am using the Listify Theme and there does not fundamentally seem to be a default template that will work with bbpress. No matter what template I choose and copy as the plugin-bbpress.php template for example – it won’t work. Here’s an example of the page not working – http://tattsamistake.com/forums/

    So….I built a custom page and put the shortcode in it – and the page works. BUT when I click thru to a forum, I get my navigation path which links to the forums page that doesnt work – ie the path shown is … Tattoo Removal Australia › Forums › Tattoo Removal

    and if i click on ‘forums’ it goes to the non-working page – http://tattsamistake.com/forums/

    BUT if i go and change the slug from ‘forums’ to ‘Tattoo-forum’ (the customised page that does work) it goes and applies a non-working template to that page, so in effect killing the page.

    I guess to solve it I need the following…

    1. A way to tell it where the forum short-code is without over-writing the page template
    2. This may sound very silly but is there such a think as a generic bbpress.php template that I can use and upload to my site? Sure it won’t look like my site, but it would be a starting block.
    3. Can I just get rid of ‘forums’ in that path, or at a pinch just get rid of that path from displaying completely?

    Any help much appreciated!

    Robkk
    Moderator
    aaronos
    Participant

    I am using the Listify theme at http://tattsamistake.com

    For some reason none of the page themes will work with bbpress (if I am wrong would love to know!)

    So I followed the instructions on building a new page and adding the forums short-code to it. Even then it isn’t ideal but it will just about do – you can see it at http://tattsamistake.com/tattoo-forum/

    If I click on any forum I then get presented with a directory ‘path’ to go back one page ie – Tattoo Removal Australia › Forums › Caring for Tattoos

    The problem is – if I click on ‘Forums’ I go to the ‘default’ forums page that doesn’t work, rather than the new forums page that I built (that mostly works)

    If I go to settings and change the name ‘forums’ to the same name as my custom-made forums page, it then overwrites my page template choice with the template that doesn’t work for forums – so it breaks the page

    So in short – how can I get that ‘path’ Tattoo Removal Australia › Forums › Caring for Tattoos

    to point to my working forums page, rather than a non-working forums page?

    Hope this makes sense!

    Robkk
    Moderator

    How do your users register through your site?? Do they use the normal WordPress login forms, or do you use the bbPress shortcodes , or something different??

    Also do you have multi-site??

    Prabin
    Participant

    this is still a issue for me, because i have to update the role of new users everytime from the database when new user register to my site.

    I found the the table inside database where it user role was coming, we need to change wp_capabilities value inside wp_usermeta table. This was the final solution to my issue.
    Keymaster value : a:3:{s:13:"administrator";b:1;s:13:"bbp_keymaster";b:1;s:9:"translate";b:1;}
    Participant value: a:2:{s:10:"subscriber";b:1;s:15:"bbp_participant";b:1;}

    however, the value differs from site to site.

    #162466

    In reply to: Search forum widget?

    Robkk
    Moderator

    Thats custom code to this site.

    caniwigirl
    Participant

    Nice to see that other people would like to see this as part of the standard set-up as @roberts-1 says… I am running the same versions using Momizat’s ‘Goodnews’ theme

    I’ve just tried @undergroundnetwork ‘s code and it works great for me as an admin… but for some reason, the other users with lower levels of access, don’t get the same result – they only get WordPress results, none from bbPress.

    Any ideas why? I’d really like to just have one search that does it all instead of one for forums and another for blogs etc.

    Cheers

    #162458
    Robkk
    Moderator

    @hunniemaid

    you place the code in your child themes functions.php or you can use a plugin like this

    https://wordpress.org/plugins/functionality/

    with that plugin you go to plugins> edit functions then place the code i gave you.

    #162456
    Hunniemaid
    Participant

    Where should I place this code? single-post-reply.php? Sorry, new to bbPress. Thank you for the response.

    #162447

    In reply to: Searching by user

    van24
    Participant

    Thanks for that. Unfortunately when I make those changes i end up with a blank, white screen instead of a forum! If I use the form-search.php alone and don’t add the code to functions.php, about half the page renders but the sidebar etc are missing.

    Is there anyone who could do a little custom work to get this figured out for me? I’m happy to pay, of course.

    #162446

    In reply to: Searching by user

    Robkk
    Moderator

    @van24

    yeah i tested it and it seems to work good.

    and yes the PHP code snippets you can add to a child themes functions.php file.

    Robkk
    Moderator

    WAIT: I think I found it here:
    http://www.theworshipcommunity.com/members/admin/forums/subscriptions/

    There you go!

    Also, if you’re good w/ design/style, etc — can you tell me why my right sidebar gets pushed down to the bottom of the page on certain forum pages?

    i tired it last night but i couldn’t find what was causing the problem easily through CSS, i would have to dig in your code more.

    #162436
    Robkk
    Moderator
    #bbpress-forums .bbp-body .reply {
      background: #f5f5f5;
    }
    #162434
    Robkk
    Moderator

    @juggledad

    @robkk: Just to clarify something, the OR function_exists(‘is_bbpress’) was added (with some other code, to get around a bug that bbpress doesn’t seem to want to acknowledge or fix. see https://bbpress.trac.wordpress.org/ticket/2723

    Thanks for pointing that out, i did not know about that bug.

    Okay with this bug in bbPress you cannot use the WP conditional is_single() to affect all of the bbPress pages, since for some reason there is a bug for single user pages.Thanks for creating the trac ticket, I tested out and see that yes it does not work on user pages. Over the next few days/week i will check it out and see I can come up with a fix.

    But this bug is easily avoidable by creating a bbpress.php for your theme and just using the_content() instead of bfa_post_bodycopy() and removing OR function_exists('is_bbpress') from the bfa_post_bodycopy() function. The bbpress.php file also helps remove other post meta that might not be useful for bbPress forums instead of using CSS to hide them.

    The OR function_exists('is_bbpress') you can keep in bfa_get_options.php though as i do not see any problems with that.

    If there is something you can find on your end to fix the issue with your theme and bbPress then please drop an answer on this topic, because i haven’t looked and learned your theme 100% yet. Removing the function exists and creating a bbpress.php is the quickest solution to the problem that I could find.


    @kitfreeman

    This excerpt issue that you are seeing affects all of these areas

    category pages
    tag pages
    author pages
    archive pages
    search result pages
    and the home page

    which is where all the excerpt theme settings modify.

    Robkk
    Moderator

    @fmckinnon

    you do not have to be subscribed to the topic for it to be unread and show if i remember correctly, and its just the area the plugin developer put it.

    that plugin should display a list of topics that are unread in the subscriptions area.

    it should kind of similar to these screenshots here, it looks really different because the developer was using a custom theme.

    https://wordpress.org/plugins/bbpress-mark-as-read/screenshots/

    if there is a way to use custom user meta in wp-query then i could just give you a snippet to add a custom view for bbPress that would list all the unread topics in one place , and you just place a shortcode in a page and all.

    viewing unead forums is not part of both of these two plugins i think but you could mark a forum read in both to clear any unread topics in it.

    unread replies go to first unread post shows which topics that are unread replies using that little [>] icon.

    #162430

    In reply to: Replies cutting off

    Robkk
    Moderator

    bbPress is inheriting .hentry and .reply styles from your theme.

    you can add this custom css to fix it.

    #bbpress-forums .reply {
      margin-left: 0;
      text-align: inherit;
    }
    
    #bbpress-forums .hentry {
      margin: 0;
    }
    #162422
    kylestubbins
    Participant

    I am a little confused on how and when updates are included in the released versions.

    Specifically, I am working on converting / importing a forum, but have run into errors, such as the sync table not being created. I do a Google search and find this –> https://bbpress.trac.wordpress.org/ticket/2650 which states that the problem has been corrected. Great!

    The problem is, the code shown here –> https://bbpress.trac.wordpress.org/changeset/5525 is not included with bbPress version 2.5.7, which is the latest release as of this writing. Lines 1023 through 1038 do not exist (just as an example as they are only comments… I picked this as it was easy to spot and just for reference).

    In fact, there are a bunch of things that are said to be fixed in the Trac (Thanks, Stephen), but they do not appear to be included with the official release of bbPress.

    Am I missing something?

    (Just a comment, but it would be nice to have version info in the headers of files as I cannot tell which version of converter.php is included with 2.5.7 without doing a diff on them and figuring it out from GIT.)

    #162419
    Shaktimaan
    Participant

    You must edit the file activity.php that is located at /wp-content/plugins/bbpress/includes/extend/buddypress/activity.php

    find // Get the activity stream item, bail if it doesn't exist

    and apply the patch manually that i have given in post # https://bbpress.org/forums/topic/bbpress-post-edit-causes-multiple-activity-entries/#post-160330

    #162417
    Robin W
    Moderator

    No, do you have any idea why i can’t see topics below Forum names?

    What you are seeing is the list of forums, you then click a forum to see the topics for that forum.

    if you want each forum to have then topics below it, then use shortcodes within a page

    [bbp-single-forum id=$forum_id]
    [bbp-single-forum id=$forum_id]
    [bbp-single-forum id=$forum_id]

    see

    https://codex.bbpress.org/shortcodes/

    or use the shortcodes from

    https://wordpress.org/plugins/bbp-style-pack/ in a page

    Also i was wondering how i can order Forums by some hierarchy?

    If not using the shortcodes above, then use dashboard>forums>all forums and edit a forum. On the right hand side you’ll see ‘parent’ and ‘order’ boxes that let you build a hierarchy

    #162411
    Chad R. Schulz
    Participant

    I know this is an old post. However, I’ve been screwing around with various javascript suggestions from other forums and came up with a solution that works (no problems yet discovered). I’m not exactly a code ninja, so if anyone can help to streamline the code let me know.

    Just insert the following lines into a custom javascript for your theme (if you need guidance on this there’s a lot of help available all over wordpress.org and other forums).

    jQuery(function($) {
    	var forum_input = $( '#bbpress-forums textarea' );
    	var forum_button = $( '#bbpress-forums .submit' );
    	var forum_limit = 50;
    	var forum_class = $( '<div class="forum_limit_info"><span>' + forum_limit + 
    	    '</span> characters needed</div>' ).insertAfter( forum_input );
    	forum_button.hide();
    	forum_class.show();
    	
    	forum_input.bind( 'keyup', function() {
    		var forum_length = $(this).val().length;
    		var chars_left = forum_limit - forum_length;
    
    		$( '.forum_limit_info span' ).html( chars_left );
    
    		if (forum_input)
    			( chars_left > 0 ) ? forum_class.show() : forum_class.hide();
    		
    		if (forum_button)
    			( chars_left > 0 ) ? forum_button.hide() : forum_button.show();
    	});
    });

    Basically this function hides the submit button and displays a countdown text counter until the minimum length is reached and then the button appears and the counter disappears.

    There are ways of hard-coding a minimum into php but I believe you have to edit core files and then insert these modified php files into a child theme. I couldn’t figured out how to insert a simple php function that would do what I wanted in a clean and simple way. So javascript it is.

    The forum_limit setting can be anything you want it to be, just change it. And you can customize your topics and replies minimums separately, if needed, with separate javascript functions using textarea#bbp_reply_content, textarea#bbp_topic_content instead of #bbpress-forums textarea.

    For my CSS stylings I chose to put a :before message on the left and the character count on the right using these:

    .forum_limit_info {
      text-align: right;
      font-size: 13px;
      color: red;
      line-height: 1.2;
      margin: 5px 5px 0px;
    }
    
    .forum_limit_info:before {
      float: left;
      content: '(Minimum Length: 50)';
      color: blue;
    }

    CSS Styling is theme dependent and can basically be however you want/need it to be–very flexible.

    I also created a similar javascript function for my site’s commenting system. Here’s that code as well:

    jQuery(function($) {
    	var comment_input = $( '#commentform textarea' );
    	var comment_button = $( '#entry-comment-submit' );
    	var comment_limit = 25;
    	var comment_class = $( '<div class="comment_limit_info"><span>' + comment_limit + 
    	    '</span> characters needed</div>' ).insertAfter( comment_input );
    	comment_button.hide();
    	comment_class.show();
    	
    	comment_input.bind( 'keyup', function() {
    		var comment_length = $(this).val().length;
    		var chars_left = comment_limit - comment_length;
    
    		$( '.comment_limit_info span' ).html( chars_left );
    
    		if (comment_input)
    			( chars_left > 0 ) ? comment_class.show() : comment_class.hide();
    		
    		if (comment_button)
    			( chars_left > 0 ) ? comment_button.hide() : comment_button.show();
    	});
    });

    Good luck to all,

    Chad

    #162407
    juggledad
    Participant

    @robkk: Just to clarify something, the OR function_exists('is_bbpress') was added (with some other code, to get around a bug that bbpress doesn’t seem to want to acknowledge or fix. see https://bbpress.trac.wordpress.org/ticket/2723

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