Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,251 through 14,275 (of 32,503 total)
  • Author
    Search Results
  • jhai
    Participant

    I came across your post while searching for a solution to the same issue. Also found this suggestion from a year ago and gave it a try: https://bbpress.org/forums/topic/how-to-remove-avatar-from-do_action-bbp_template_notices-in-bbpress-2-0/#post-110255

    It worked! Here’s what I added to the BBPress stylesheet:

    .avatar-14 {
    	display: none;
    }

    Hope this helps.

    Robin W
    Moderator

    I have added a new input line to the form-user-edit.php I plan to add more and have these either via functions.php or a plugin when I have got it working, but for the moment am changing the .php itself.

    So for now I have put in new line, copying the syntax of another one :`<label for=”town”><?php _e( 'Town', 'bbpress' ); ?></label>
    <input type=”text” name=”town” id=”town” value=”<?php echo esc_attr( bbp_get_displayed_user_field( 'town' ) ); ?>” class=”regular-text” tabindex=”<?php bbp_tab_index(); ?>” />`

    This works fine, except how do I get this to save the info? It lets me change it, but doesn’t let me save it.

    However if I set a row in phpmyadmin, then this code displays it, but again doesn’t not save a change.

    What bit of logic am I missing?

    tharsheblows
    Participant

    I don’t think people need access to /wp-admin to browse the site.

    I keep everyone except logged-in admins from accessing wp-admin (popping them back to the homepage) by using the following in my functions.php

    //don't allow users to go wp-admin
    add_action( 'init', 'blockusers_init' );
    function blockusers_init() {
        if ( is_admin() && ! current_user_can( 'administrator' ) &&
           ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
            wp_redirect( home_url() );
            exit;
        }
    }
    #134223
    tharsheblows
    Participant

    Hi! I think this should work – if it doesn’t, just delete the page and you’ll be back where you started.

    1- make a Page with the permalink “forums” – it can have whatever title you’d like, but if it’s something different than Forums, change the permalink to “forums”.

    2- write your welcome text just like you would on a normal page

    3- after your welcome text, put the shortcode [bbp-forum-index] – so your page will look like this:
    ===
    Hi! Welcome to the forums. Grab yourself a cup of tea, pull up a chair and have a chat with us.

    [bbp-forum-index]
    ===

    So that should work – I have pretty heavily modified templates, so if it looks weird, let me know and I’ll try to figure out what I did! It’s one of those times where I know I did *something* to this page but can’t quite remember what.

    #134220
    tharsheblows
    Participant

    Do you mean an anchor to the form on the bottom of the page, like this one (I mean, the one I’m typing in right now to reply to you and that you will use if you reply to me 🙂 ).

    If that’s it, then add in an anchor to form-reply.php* after the new reply div, like so:

    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
    	
    	<a id="the-reply-form"></a>

    If that’s not it, then if you post a link, I’ll tell you which template it’s on – there’s form-topic.php as well – that one’s for topics.

    *this should be in a child bbpress theme – instructions are here: https://codex.bbpress.org/theme-compatibility/ — apols if you already know this, am adding for completeness!

    #134209
    sixf00t4
    Participant

    ok, i fixed mine in a different way. Since I was using the default bbpress template, there was no folder for it in the directory listed in the bbpress codex page you linked to.

    What i did, was open the CSS editor under theme editor and pasted your line into the pretty much empty box.

    #134207

    In reply to: Permalinks?

    Links to your forums are not relative to where you use the forum shortcode. When you think about it, how could they be? You’re free to use the shortcodes anywhere you wish, even on multiple pages.

    If you want to change the permalinks for your forums, visit Dashboard > Settings > Forums > Permalinks and change them there. 🙂

    Juanfrito
    Participant

    Hi, I know this post is quite old, but just in case you didn’t find it, heres the solution:

    change bbp_dashboard_right_now and write bbp-dashboard-right-now

    #134199
    Robin W
    Moderator

    Ok, so I have writen and got working my first plugin, I am adding some user info to the reply display

    BBpress has the following lines in loop-single-reply

    <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?>
    [...other lines of code here]
    				
    <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>

    I worked out how to get a plugin to put the other stuff I need before ‘bbp_theme_before_reply_author_admin_details’ so it’s working fine

    BUT I want to change the line

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?>
    to
    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false) ); ?>

    I think I do this with a “remove action” in my plugin, and then add the code line as I want it back into my plugin – in effect deleting all the code between the two “do actions” and replacing this with what I want.

    But I cannot fathom from the codex and other googles quite how you do this

    1) is my understanding correct?
    2) what would the code line be in my plugin?

    #134196

    Topic: Permalinks?

    in forum Troubleshooting
    redkite
    Participant

    I’m not sure if this is a problem or a setting I need to change – I’m using a shortcode to display the forums here:

    http://www.redkitecreative.com/dev/ivas/member-news/forum/

    But if I click through to any forum or topic, the URL changes to:

    http://www.redkitecreative.com/dev/ivas/forums/forum/members/

    What happened to my member-news page in the URL? I think this may be confusing for users – it’s confusing to me…

    Tbermudas
    Participant

    I have read here: https://codex.buddypress.org/user/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/ how to do the first step.

    But I don’t know if its possible to convert the group forums into “normal” forums (site wide).

    THANKS for your response!

    Tbermudas
    Participant

    Anyone please? In the codex there is no info about this…

    #134159

    In reply to: Create new topic

    Nate
    Participant

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.

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

    #134158

    In reply to: Private messages

    Nate
    Participant

    Add me to this list of bbPress needing the messaging functionality. We have over a thousand users and just moved from forum software built 9 years ago to bbPress, and messaging was considered a fundamental feature. Every other piece of competing forum software out there includes messaging.

    I’ve been running this successful forum for close to 15 years and I’m a digital marketing manager for a living. It could be argued that I know what I’m talking about.

    I fully understand that bbPress wants to keep it lean & mean, yet we have odd, little-used features built into core like Twitter & YouTube embedding. But really obvious items, like quoting, signature files and private messaging, require separate plug-ins? There’s some logical missteps in there. What’s up with Yahoo, Jabber and AIM still having fields? NO ONE USES THOSE SERVICES ANY MORE. Even dropping the Visual editor (in 2013?) in the latest release is a step back.

    (A note on Avatars: Listen guys, this expectation of users to register an account with another service like Gravatr, and then return to their account with our site, is clumsy and far-fetched at best. Again, a separate plugin for Avatar? C’mon)

    With that said, I switched to bbPress because I think the code is more pure and I think it has better longevity due to its affiliation with WP. It isn’t clunky and bloated. The SEO options for WP sites in general are more impressive, and there’s a wide support community – and I knew it would be intuitive and relatively painless for myself and my team.

    Would love to get JJJ’s take and that of others.

    #134148
    athalas
    Participant

    I’m attempting to convert a phpBB2 forum to bbPress version 2.3.2.

    I’ve selected the option to convert users, but it’s failing with the following error:

    WordPress database error: [Unknown column 'users.user_form_salt' in 'field list']
    SELECT convert(users.user_id USING "utf8") AS user_id,convert(users.user_password USING "utf8") AS user_password,convert(users.user_form_salt USING "utf8") AS user_form_salt,convert(users.username USING "utf8") AS username,convert(users.user_email USING "utf8") AS user_email,convert(users.user_website USING "utf8") AS user_website,convert(users.user_regdate USING "utf8") AS user_regdate,convert(users.user_aim USING "utf8") AS user_aim,convert(users.user_yim USING "utf8") AS user_yim,convert(users.user_icq USING "utf8") AS user_icq,convert(users.user_msnm USING "utf8") AS user_msnm,convert(users.user_jabber USING "utf8") AS user_jabber,convert(users.user_occ USING "utf8") AS user_occ,convert(users.user_interests USING "utf8") AS user_interests,convert(users.user_sig USING "utf8") AS user_sig,convert(users.user_from USING "utf8") AS user_from,convert(users.user_avatar USING "utf8") AS user_avatar FROM users AS users LIMIT 0, 100

    Is there anything I can do the resolve the issue?

    Thank you

    #134141
    tharsheblows
    Participant

    Oh no, poor you! Jack should be able to re-set them via the database as here – https://codex.wordpress.org/Resetting_Your_Password . I’m guessing your WordPress admin password and username are different to those for the control panel for account with the hosting company.

    He can’t log in either, can he? I realise that’s a pretty obvious question but thought I’d ask. Good luck and congrats on the wedding! 🙂

    tharsheblows
    Participant

    Hi – I’d like the same tags allowed in my WordPress comments – <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> – to be allowed in my bbPress posts. In particular, I’d like people to be unable to link to images in their posts. I think the allowed tags in WordPress comments are determined by the wp_filter_kses so was trying to use that.

    I’ve tried many many different things and have the img tinymce (which I’ve enabled) button disabled and the html editor disappeared, so the only way to get an image is to type in <img src="whatever" /> to the visual editor, but I’d still like it to just not be possible.

    I thought this would work but it hasn’t (I’ve also tried making a custom filter function which, of course, didn’t work, so I think it’s something here):

    remove_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 );
    add_filter( 'bp_get_the_topic_post_content', 'wp_filter_kses', 1 );
    

    Anyone know? Or just stripping the img tags somehow would be great.

    I have bbPress 2.3.2 installed and WordPress 3.5.1. Thanks. The site’s not live so I don’t have a link, apols.
    (have edited so I can tick “follow up replies via email”)

    #134125

    Copy

    wp-content/plugins/bbpress/templates/default/content-archive-forum.php

    to

    wp-content/themes/[your-theme]/bbpress/content-archive-forum.php.

    Edit as you see fit. You’ll likely want to place whatever before <div id="bbpress-forums">.

    You can copy any template elements that you want/need to change to a bbpress folder inside your theme and bbPress will automagically use those template files instead of the default ones.

    #134104
    drobato
    Participant

    The [bbp-topic-tags] shortcode works fine in my custom theme…but all the tags come out with the same font size. How do I get it so the tags display with different font sizes like on this forum?

    Sorry for such a basic question…I’ve looked but can’t find an answer that applies to bbpress 2.0+.

    I’m using wordpress 3.5.1 and bbpress 2.3.2

    Thanks.

    #134102

    Is something wrong with the code tags here that you’re unable to use them? I’m having a hard time following exactly what to do to duplicate the issue you’re having.

    I’ve tried each permutation of posting code and swapping between editors, and it appears to work correctly for me in what is now bbPress 2.3.2. I’ve also synced up dev trunk with deploy trunk, so the beta tester plugin should have the most recent changes in it too.

    (Keep in mind that the beta-tester plugin doesn’t grab the latest version directly from trunk; it gets what I merge into WordPress.org Extend’s trunk. This helps me keep what the beta-tester plugin gets stable, even though bbPress.org’s trunk might not me.)

    #134098
    nickzee
    Participant

    buddypress roles:http://codex.buddypress.org/user/setting-up-a-new-installation/group-settings-and-roles/
    bbpress roles: http://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    I have an understanding of the roles within each plugin, but when running both, how do they mingle? Since you can only assign someone to one role, what roles take precedent over the other?

    For example if someone is an admin of buddypress, does that also make them a Keymaster? Or vise-versa?

    Just need to know what role to assign a new user when they purchase a membership to my help forums. They would be either “members” (buddypress) or “participants” (bbpress).

    It would be great if there was a tree structure diagram.

    Current Setup:
    Bbpress: Version 2.3.1
    Buddypress: Version 1.7.1
    WP: Version 3.5.1

    Thank you!

    #134093

    What you want to do is tweak the bbPress CSS. However you don’t want to tweak the copy in the plugin because when you update it will get overriden. Here’s what you’ll want to do.

    Copy:

    wp-content/plugins/bbpress/templates/default/css/bbpress.css

    to:

    wp-content/themes/[YOUR-THEME]/css/bbpress.css

    Then edit and make tweaks to the bbpress.css as needed to match your theme.

    #134085
    klantomo
    Participant

    I would like to display bbpress topic tags on top of each forum. I tried several template tags:

    bb_tag_heat_map()
    bb_get_topic_tags()
    bb_list_tags()

    None of the tags worked no matter where I inserted them (sidebar, bbpress templates, wordpress templates). Usually the rest of the code in the template won’t be executed anymore if I insert one of these tags.

    The short code [bbp-topic-tags] works and everything else about tags works too.

    Can someone tell me how to display topic tags? Is there a documentation for this template tags?

    karloy
    Participant

    After recent upgrades (not sure if 2.3 or 2.3.1) all my “participant” users can’t reply to or post new topics. I tried many things based on user role post, but I’m still stuck.

    – Ran the repair tool to ensure all subscribers are mapped as forum “participants”
    – Used the “Members” plugins to enable subscribers to post/reply to forums
    – Re-installed bbpress
    – When through the code, and it appears participant don’t get granted to the proper rights.

    Even though it was not independent from the “blog” privileges before, it was way easier to use a visual permission editor.

    Any idea what to do?

    #134073
    NewSha
    Participant

    Thank you for your reply!
    I’ve added

    function invert_subscribe( $is_subscribed ) {
    return ! $is_subscribed;
    }
    add_filter( ‘bbp_is_user_subscribed’, ‘invert_subscribe’ );
    

    to my functions.php file, but it doesn’t seem to work…
    My users still don’t get email notifications for some reason.
    Any suggestions?

Viewing 25 results - 14,251 through 14,275 (of 32,503 total)
Skip to toolbar