Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,501 through 13,525 (of 32,503 total)
  • Author
    Search Results
  • Stephen Edgar
    Keymaster

    Onto the ‘other’ bits of your last post.

    For the most part the standard /wp-admin/users.php user admin dashboard panel is ‘enough’ to get day to day tasks done for ‘most’ situations as it does have search (top right) to make this usable.

    The delete users wp-admin/users.php?action=delete&user=123 is all WordPress and bbPress does not alter this behaviour though as you state it would be nice if this could be improved for sites with large user bases. To resolve this we will have to wait until WordPress implements some changes here.

    None of the bbPress widgets do this Widgets – the list of users is loaded under one or more widgets

    So yes, these things are not just under consideration they are actively thought about constantly and we have tried to keep from implementing this pain in bbPress, but for now until we can get some changes upstream in WordPress core some of this pain will remain.

    As I mentioned above on the ‘clobber-spam-users’ plugin I mentioned this plugin as it is not very complex and could be modified to ‘help’ with your cleaning up of 17,000 users topics & replies.

    #138539
    Martyn_
    Participant

    After upgrading to 2.4.1 I seem to have lost the “edit” post link in forums.

    admins still see the links, “participants” don’t (for their own posts). I think its falling foul of


    // User cannot edit or it is past the lock time
    if ( empty( $reply ) || !current_user_can( 'edit_reply', $reply->ID ) || bbp_p\
    ast_edit_lock( $reply->post_date_gmt ) ) {
    return;
    }

    in particular the current_user_can check. A bit confusing because that doesn’t seem to have changed…

    #138535
    FreeWPress
    Participant

    Hi, add this code in your css;

    .avatar-14 {
        width: 14px;
    }

    refresh your page one, or two or more time to cancel browser cache…

    I hope help you… 🙂

    #138521
    RealitiesCrossed
    Participant

    I’ve got the bbPress post toolbar plugin installed to bbPress on my WordPress site, which is a private roleplay site for myself and a couple of friends…but two out of the current three of us are feeling a bit OCD about the arrangement of the smilies.

    We have emotes I have created and/or some I have gotten permission to use that represent each character we play with, a full range of emotions, hug emotes etc. for each character, which right now is probably 60 odd smilies, all characters combined.

    I have worked out how to arrange the names of the smilies in the package-config file to keep the characters relatively organized, but I’ve tried adding line breaks between each of the character sets and all that does is break the entire website down until I remove them, I can’t seem to edit package-config outside adding new smilie codes without crashing the site…but what I would love to know is this:

    Is there a way that I can insert line breaks or separate the smilies into tabs somehow by character rather than having them all smushed into one big group?

    edit: WordPress 3.6 and bbPress 2.3.2 are running on my site, I haven’t gotten around to the WP update and refused to upgrade bbPress because a plugin I was using was incompatible with the new version and I didn’t wish to break it.

    #138519
    koendb
    Participant

    Hey.

    If you haven’t created a child theme, start with doing that.

    Create the file bbpress.php in your child theme.
    Copy the content of your page.php file into this new file.
    Remove the line

    <?php get_sidebar(); ?>

    You’ve removed the sidebar 🙂

    Now you only need to change / add some classes / ID’s and adjust your CSS file to give the forum a 100% width.

    Keep me updated 🙂

    #138507
    baylock
    Participant

    Hello,

    I read a lot of questions around here related to the change of the freshness to a simple date.
    But each one of the answers are related to a forum posts lists.
    What I want is to display the last post date in the freshness column of the forums lists.

    How would i do that?

    I believes this has something to do with this line:
    $time_since = bbp_get_forum_last_active_time( $forum_id );

    Or maybe this one:
    apply_filters( 'bbp_get_post_time', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );

    But how to get the normal date from that (d-m-Y), it’s a mystery to me.

    Thank you for your help.

    BBPress: 2.4
    WP: 3.7

    #138504

    Topic: Theme issues

    in forum Themes
    tansu
    Participant

    Hello,
    I am very new to bbpress.
    I have successfully convert my 54000 user vbulletin forum in to bbpress. Also converted more than 1 gigabyte contents database without issues. There were some problematic turkish characters but i solved that issue too.
    But, i am sure it was a very well written document about how to modify and adding new themes to bbpress, I understand completely nothing from them. I also read forum topics about the issue, but most of them pointing the links where the docs are.
    I also tried copying folders and files in to wordpress themes directory or my theme’s directory, nothing is happening. Most probably i did not understand anything from the docs here:
    http://codex.bbpress.org/theme-compatibility/
    Can someone please explain to me what to do like explaining to an idiot.Assume my wordpress theme’s name is “wptheme” and please direct me into it by real examples like: Put your wp-content/plugins/bbpress/templates/bbpress folder to wp-content/themes/wordpresstheme folder. or whatever is true 🙂
    Best regards

    #138485
    Stephen Edgar
    Keymaster

    via https://wordpress.org/support/topic/how-to-remove-protected-from-pw-protected-page-titles?replies=7#post-1658659

    For ‘protected’

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }

    And for ‘private’

    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    #138484
    Stephen Edgar
    Keymaster

    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID
    https://codex.bbpress.org/shortcodes/

    So if the forum you want has an ID of 341 use [bbp-topic-form forum_id=341]

    #138475
    Robin W
    Moderator

    you’ll need to disable the bbpress plugin

    https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F

    Just deactivate the bbpress plugin for starters.

    then you’ll need to figure out why it isn’t working for you.

    I’d start by uninstalling bbpress, and reinstalling it in case there was a corruption as it downloaded

    Then if it still doesn’t work, I’d disable all the other plugins and if it then works add them back one at a time to see which is causing the issue.

    If not plugins, then I’d try switching to a default theme to prove that you WP installation is ok.

    if all that fails, come back

    AntonyC
    Participant

    Thanks @mercime

    #138465
    Stephen Edgar
    Keymaster

    Apologies, snow & under are a couple of terms that come to mind.

    I just imported your data into a clean MySQL database and everything imported correctly.

    (The one side note is a couple of BBCodes, [align & [flash weren’t converted to WordPress ‘safe’ HTML, but that is another issue.)

    Where to from here I am not sure as ‘your’ content appears fine at my end and isn’t causing the importer to miss/fail etc.

    I think the next step would be for you to try this on a local install:
    MAMP if you use Mac http://www.mamp.info/en/mamp-pro/index.html
    XAMPP if you use PC http://www.apachefriends.org/en/xampp.html

    Setup and install WordPress & bbPress in this install.

    Export your entire phpBB database and import it into your local setup and give that a go.
    https://www.phpbb.com/kb/article/transferring-your-board-to-a-new-host-or-domain/

    My theory here is there could be ‘something’ going on with your web hosts configuration and if the local import works we can then export this data from WordPress on your local host and then import this into your remote host.

    @mercime
    Moderator

    antonyc resolved this issue by updating a theme’s forum template pages (archive-forum.php and forum.php) with a theme update per https://buddypress.org/support/topic/forum-root-returns-my-wp-archive-page/ FYI

    #138418
    koendb
    Participant

    This might help you.

    #138412
    Robin Beveridge
    Participant

    Hi, I have created a private forum for members of my Board and staff to share news and views. I’ve also created user accounts for the people I want to have access. My (stupid) question is this: how do those users get to the Forum? Where do they login and how?
    No code please, I won’t understand it!
    Using BBPress Version 2.4.1, WordPress 3.6.1, Theme is Graphene Version 1.9.2, website is http://www.yourbackyard.org.uk.

    #138401

    In reply to: bbp_rel_nofollow

    Schaum
    Participant

    Thank you, these work for the _blank:

    add_filter( 'bbp_get_reply_content','links_blank_follow', 90 );
    add_filter( 'bbp_get_topic_content','links_blank_follow', 90 );
    
    function links_blank_follow($text) {
     if( strpos( $text, $_SERVER['HTTP_HOST'] ) === false )
          return str_replace('<a', '<a target="_blank"', $text);
      return $text;
    }

    But I don´t know really: how I can use no nofollow, if the link is set to your own site.

    Robin W
    Moderator

    had a look

    You login works fine. If you fail then you will be taken to the default wordpress login page. If you want to change this page see

    https://codex.wordpress.org/Customizing_the_Login_Form

    For the lost password, try resetting your permalinks dashboard>settings>permalinks and just click save.

    #138392
    Stephen Edgar
    Keymaster

    I appreciate the reply, the reason I suggested that my settings were correct were that I used the settings out of that domain’s wp-config file.

    Hmmmmm…. Probably need to ensure you have the correct table prefix…

    However, let me ask you, how long does the converter script run before it starts feeding back responses on its activity? For example, if it is succeeding does it start listing the tables or posts successfully migrated?

    Seconds…

    My point is that I want to know whether I should walk away from it, if say, it hasn’t reported anything other than “started” within 5 minutes or so.

    Your import ~200 posts should be done in under 2 minutes give or take.

    Open up phpMyAdmin and check your table names for the Mingle forum


    In my case above the table prefix I would use is wp_

    The Mingle Forums Datbase Tables are: wp_forum_forums, wp_forum_group,s, wp_forum_posts, wp_forum_threads, wp_forum_usergroup2user & wp_forum_usergroups

    #138390
    palmdoc
    Participant

    OK there was a similar question in the Buddyboss forums and if you are using the Buddyboss theme, it should be put in the bbpress subfolder (copy to child theme if not there) in the oop-single-reply.php file after the
    <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>

    Now a further question – if I want to replace the Real Name displayed with only the @username, what should I do?
    Thanks!

    Hart
    Participant

    I am running WP 3.6.1 with BBPress 2.4.1, BuddyPress 1.8.1, and WooThemes Canvas 5.4.0.

    I noticed some JQuery code in the header of the homepage (and every other page on the site) for changing the code button to display backticks and for processing a few keybinds. This code originated from bbpress\templates\default\bbpress-functions.php and, according to the if statement that encapsulates the code, should only fire if bbp_use_wp_editor() is true. This if statement seems to be working incorrectly since the code shows up on the header of every page.

    Now, this doesn’t cause issues for my site as far as I can see, but it does cause the site to run slightly slower because of the time it takes to load the code in the header. Anyone else have this issue?

    #138381
    koendb
    Participant

    I haven’t got a clue what that problem might be, I’m sorry. Did you upload a valid functions.php in between your different tries (with/without <?php ?>) ?

    (and yes, I see my code could be a little shorter, feel free to optimize this :))

    #138369
    FreeWPress
    Participant

    Copy and paste in your php function code below:

    <?php
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(","), $author_link);
    return $author_link;
    }
    ?>
    #138368
    Button9
    Participant

    Thank you for your answer Koendb!

    Looks like I’m doing something wrong. After having copied your code into my functions.php under themes and customizr, both just as you wrote it and with the <?php and ?> as below, my webpage disappears and goes completely blank until I remove everything again. Why might that be?

    <?php add_filter( ‘bbp_get_author_link’, ‘remove_author_links’, 10, 2); ?>
    <?php add_filter( ‘bbp_get_reply_author_link’, ‘remove_author_links’, 10, 2); ?>
    <?php add_filter( ‘bbp_get_topic_author_link’, ‘remove_author_links’, 10, 2); ?>

    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array(‘{<a[^>]*>}’,'{}’), array(”,”), $author_link);
    return $author_link;
    }

    #138360
    koendb
    Participant

    Add a filter that removes the links.

    Copy the code below into your function.php file: (you might need to add <?php at the start and ?> at the end)

    add_filter( ‘bbp_get_author_link’, ‘remove_author_links’, 10, 2);
    add_filter( ‘bbp_get_reply_author_link’, ‘remove_author_links’, 10, 2);
    add_filter( ‘bbp_get_topic_author_link’, ‘remove_author_links’, 10, 2);

    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array(‘{<a[^>]*>}’,'{}’), array(”,”), $author_link);
    return $author_link;
    }

    #138354
    bassjobsen
    Participant

    BBPress adds some jQuery dependent javascript to the header which breaks the defer loading (cause a javascript error).
    Javascript will be insert by setup_actions in bbpress/templates/default/bbpress-functions.php

    add_action( 'bbp_head', array( $this, 'head_scripts' ) );

    Would it be possible to make this script independent of jQuery or otherwise insert it with wp_enqueue_script and set its dependency of jQuery?

    I also want to know how to remove this action. I tried:

    global $BBP_Default;
    remove_action( ‘bbp_head’, array( $BBP_Default, ‘head_scripts’ ) );

    Thanks for your attention. I will need this fixes to get WP Defer Loading work with BuddyPress, see: https://github.com/bassjobsen/wp-defer-loading/issues/5

Viewing 25 results - 13,501 through 13,525 (of 32,503 total)
Skip to toolbar