Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,851 through 13,875 (of 32,519 total)
  • Author
    Search Results
  • #136689
    Anand
    Participant

    This might be quite simple when you have custom template or have child themes. You will just need to place a jump link or button.

    e.g. Click Me

    #136676
    Martyn_
    Participant

    Agree it could do with an overhaul. A single widget that can be flexibly configured to show and link exactly what you want would be a real bonus. Similarly for the shortcodes. Even better if it could cover WP posts and replies using an identical structure/layout.

    an ideal widget would have

    – number of things
    – sort by: topic creation, freshness, popularity/views, popularity/replies in last X days
    – show/link OP author
    + include date [x]
    + include avatar [x]
    – show link most recent
    + include date [x]
    + include avatar [x]
    – present as table or list
    – extract OP
    – extract latest
    – [shrtcodeable]

    I don’t see the need for a list that has replies (with dups per topic) as thats better handled as an activity stream.

    #136673
    Nick Galgay
    Participant

    Hello I am running the latest version of wordpress and bbpress, I am new to both of the aforementioned products. I have added a header link to my site that looks like

    <?php if (is_page(‘Forums’)) { echo ” class=\”current_page_item\””; } ?>

    That code works everywhere on my site except for bbpress. Can someone please tell me how to set my header link, and keep it, in the active state when on the forums? I’ve looked on this site and searched google to no avail.

    Thanks alot.

    #136666
    dot
    Participant

    Coming back to answer my own post, in case it helps someone else down the line: the shortcode (for the individual forum ONLY) was distorted in Visual mode. Switching to Text mode and correcting the shortcode seems to have fixed the issue.

    #136660
    MediaSVI
    Participant

    Where do you put the code?

    #136658
    dot
    Participant

    Wordpress 3.6, using theme Twenty Eleven
    BbPress 2.4 (Just updated this morning, though I had the problem with the previous version as well)
    Only other active plugin: Error Log Dashboard Widget 1.0.2 (showing no PHP errors)
    Several other plugins are installed, but deactivated while trying to debug this issue.

    I have the following text on a single page:

    
    Here is the shortcode for the single forum: [ bbp-single-forum id=39 ]
    
    [bbp-single-forum id=39]
    
    Here is the shortcode for all forums: [ bbp-forum-index ]
    
    [bbp-forum-index]

    The single forum does not display. The forum index does display. I have confirmed that the index is the correct number via the admin forum view. Here is a link to a screenshot. Here is the link from the forum page, showing the forum id: http://[domainremoved].org/wordpress/wp-admin/post.php?post=39&action=edit (Obviously, clicking it won’t work, because it requires a log-in, but this is to confirm that I’m finding the forum index correctly.)

    Here is the forum: http://[domainremoved].org/forums/forum/pta-board/
    Here is the page it is linked from, showing where the shortcodes do not work: http://[domainremoved].org/pta-board-2/
    (Note: I have added spaces between the shortcodes so you can see the text that I used, then repeated the shortcodes without the spaces to display the forums.)

    I feel like this should be some really simple user error, but given that I have double-checked the shortcode syntax and the forum id, deactivated all other plugins, and chosen the Twenty Eleven theme, I can’t figure out what it could be.

    ETA: Wow, that was fast— my page got slammed with spam comments within minutes of posting the links here. I have removed them for now. If a support person needs them to diagnose the issue, I can give them out then.

    #136656
    Xevo
    Participant
    @media (max-width:767px){
      .bbp-reply-author { float: none; }
      .bbp-reply-content { margin-left: 0; padding: 12px; }
    }

    Something like that.

    #136655
    MediaSVI
    Participant

    Is there a way to edit the code to make this happen?

    #136652
    Guru
    Participant

    Anyone out here knows what to put in the navigation bar to re direct the user to his bbpress profile?

    #136645
    kriskl
    Participant

    yhmm something strange happened to that code.. 🙁

    #136644
    kriskl
    Participant

    After weeks trying to find something that would work, I found the code on wordpress forums to remove completely gravatars (and redirects it was causing.. )

    here is it:

    
    function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" />';
    	} else {
    		return $image;
    	}
    }
    add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
    
    function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	return "<img alt='{$alt}' src='{$default}' height='{$size}' width='{$size}' />";
    }
    
    add_filter('get_avatar', 'remove_gravatar', 1, 5);
    
    function bp_remove_signup_gravatar ($image) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" width="60" height="60" />';
    	} else {
    		return $image;
    	}
    
    }
    add_filter('bp_get_signup_avatar', 'bp_remove_signup_gravatar', 1, 1 );
    
    

    As I am now planning to disable buddypress completely. I am looking for an easy way to let users upload their avatars in bbpress, anyone tried it already?

    #136640
    janhoos
    Participant

    Agreed! Missing this functionality 2. I have it set to your setting as well, but a perfect widget would be a combination of the 2! Not a coder myself as well unfortunately.

    #136639
    Stephen Edgar
    Keymaster

    I cannot reproduce the issue of missing bbPress wp-admin panels with any of these plugins: GD bbPress Attachments, GD bbPress Tools, GD bbPress Widgets, that’s not to say it isn’t happening. I will keep an eye on Milan Petrovic’s Twitter feed to see if he comes across any issues himself.

    Permissions and caps with bbPress is a hard (for me anyway) to grasp at a code level, I do know that essentially bbPress is ahead of WordPress in some ways in this aspect and the fact that bbPress is built on top of WordPress this is going to constantly evolve. The ‘other’ forum packages that are available do have finer granular permissions but none of them integrate with WordPress the way bbPress does (I am up to my 27th forum converter now BTW).

    These bits will come, hopefully sooner rather than later and the dev’s that contribute code for bbPress are acutely aware of this type of feature request and I am quite sure it is kept in their mind as code is written for anything for example as mentioned above ‘Per-forum moderation’ & ‘Forum subscriptions’ slated for bbPress 2.5, these two features alone make for a great start in getting more of the types of features you are referring to.

    “bbPress is forum software with a twist, from the creators WordPress”

    #136634
    Stephen Edgar
    Keymaster

    The file is located in /wp-content/plugins/bbpress/templates/default

    If you edit this file manually when you update bbPress your changes will be lost.

    The link above in my post shows the steps needed to copy this template to your own theme so you can use your own custom templates without bbPress overriding it during updates.

    #136623

    Topic: bbPress

    in forum Troubleshooting
    n4ce
    Participant

    The newest version of bbPress has caused a couple of my sites plugins/short-codes to display incorrectly. The plugin in question is Cookie Law Info, it appears to remove it format i.e. no button image and text not centred etc. Also the short-codes for my elegant themes, theme do not appear to be displaying correctly either.

    #136621
    Stephen Edgar
    Keymaster

    It is in the feedback-no-forums.php template \templates\default\bbpress

    If you want to modify this template for your theme here check out the docs on theme compat.

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

    PureLoneWolf
    Participant

    Hi there

    I used the code in my themes function.php file, as detailed above and it worked perfectly. That is, until I upgraded to 2.4 a few minutes ago, now the open forums changed position with the private ones (no problem) but the subforums are back listed on one line again.

    The function.php file still contains the code, so I guess something has changed with bbpress.

    Would someone know what I should do now?

    Many thanks

    #136610
    MediaSVI
    Participant

    Ok thanks for the 2.4 update, I installed it but it does not fix this issue. Maybe this is something I could just edit myself if I had the code and knew the place to add it. Also it would be cool to add an option in bbPress to have the User info to the “left” or “across the top”.

    With it to the left there is a lot of wasted page real-estate and it is not responsive friendly.

    Forums have always had the user info to the left but I think it’s time to change this or at least have the choice.

    Thank you for your time.

    #136609

    In reply to: A bi-language site

    Anonymous User 5853594
    Inactive

    First of all, did you copy the extra Dutch language files for bbPress and BuddyPress? You need those in addition to the Dutch language files for WordPress itself.

    https://codex.bbpress.org/bbpress-in-your-language/ will point you in the right direction for making things work with bbPress. (I suggest that you take the “dev branch” for the files, as the other link is outdated.)
    https://translate.wordpress.org/projects/buddypress/dev points to the BuddyPress version of the language files.

    If you’ve got those up and working, you should be able to use the Dutch settings… Although I don’t know if the plugin will enable you to switch languages for the bb’s, as I can’t find that they support them.

    In ieder geval veel succes!

    #136608
    Guru
    Participant

    Hi,

    I would like to put in my WP menu a customized navigation button that leads the logged in current user to his/her bbpress profile.

    Basically, I want the WP menu bar to have a button that enables the user to navigate to his/her bbpress profile. What is the CCS function code to put in the menu bar?

    Currently it’s too complicated for a user to find his/her bbpress profile and navigate to the forum area. Any information would be appreciated.

    #136597
    lwyndham
    Participant

    I have just managed to solve this issue by using:
    bbp_get_user_profile_url( get_current_user_id() )

    Those looking to create a simple link to the profile could use:
    <?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>

    #136591
    zerocoolflo
    Participant

    Hell everyone,

    First I want to thank the developers for doing such a great job with this plugin (I just discovered it) and I hope I’ll get it working.

    I installed bbPress on my website and observed it ruined the forum’s sidebar (practically, the old sidebar was still active but pushed down and looked weird and at the top of the forum’s sidebar I had a message “comments are closed on this page”).

    Nonetheless I discovered the problem:

    Well, I am using the thesis theme on my website and I customized all my posts to show related posts by inserting this code in custom.css file:

    function my_related_posts() {
    if (is_single()) {
    global $post;
    $current_post = $post->ID;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>
    <div class=”my-recent-posts”><h4>Additional Reading…</h4>

      <?php
      $posts = get_posts(‘numberposts=5&category=’. $category->term_id . ‘&exclude=’ . $current_post);
      foreach($posts as $post) :
      ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?><?php endforeach; ?>

    </div>
    <?php
    }
    wp_reset_query();
    }
    add_action(‘thesis_hook_after_post’,’my_related_posts’);

    I absolutely want to keep related posts on my posts.

    When I delete this “related posts code”, the sidebar works as it should.

    Any workaround/Suggestions?

    #136590

    In reply to: MyBB Import to bbPress

    Stephen Edgar
    Keymaster

    Thanks for reporting this 🙂

    I’ll try to update the importer as soon as I can to import any username that includes white space eg. Member Name to member_name or member-name.

    This needs a bit of thought on a patch as it will affect all of the bbPress importers 😉

    #136565
    Stephen Edgar
    Keymaster

    Categories are currently only imported as a forum type and each of these can be changed in WP-admin forums panel.

    Sub-forums in phpBB and bbPress are all just forums with a parent forum for the forum hierarchy, these can be changed re-ordered etc also in WP-admin forums panel.

    Your forum title ‘Obutto’ is just a title name for the site, you can set the title of your WordPress site title in WP-admin.

    https://codex.bbpress.org/getting-started-with-bbpress/

    https://codex.bbpress.org/import-forums/phpbb/

    #136562
    robkhoo
    Participant

    Hi guys,
    Have a problem working out how to use the archive page and shortcode to create a forum index.

    Currently, the default archive page created for forums gives me an unstyled archive page without a H1. My archive page slug is “forum”

    So, Instead of this I have decided to make a regular page, name it forum and stick the shortcode for the forum index in. Perfect!! I thought…..

    2 The issues remain. Although the index page looks good as a regular page, the breadcrumbs when in a single forum / topic take users back to the archive page, not the new forum index page.

    The second is that the archive page actually still exists…. I would like if possible to be able to overwrite access o the old forum archives when creating the forum index.

    Basically, I don’t want 2 archive or forum index pages to exist for the site.

Viewing 25 results - 13,851 through 13,875 (of 32,519 total)
Skip to toolbar