Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 14,026 through 14,050 (of 14,052 total)
  • @robin-w

    Moderator

    Same happens to me – when I enter the forums, I just hover over the anonymous, then select log in and log in again. It then tells me that I’m already logged in, but then lets me post.

    @robin-w

    Moderator

    Same happens to me – I just hover over the anonymous, then select log in and log in again. It then tells me that I’m already logged in, but then lets me post.

    @robin-w

    Moderator

    Great method Schmoo!

    You can also create a page called “forums”, put your text there, and then add the shortcode

    [bbp-forum-indexx]

    but with only one x – sorry but even with code ticks the forum interprets this code, so cannot put it in exactly!

    by the way the page doesn’t appear as an edit option in the toolbar, so you have to edit it via the dashboard, but that is how I achieved it.

    @robin-w

    Moderator

    I find most of this is straight forward ONCE you know the answer, but like you I can spend hours trying to get something to work !

    @robin-w

    Moderator

    Have had a bit of a play.

    Answer turns out to be very easy !

    In line 799 just change

    'type' => 'both'
    to

    'type' => 'avatar'

    Then just the avatar displays.

    By the by change it to

    'type' => 'name' and guess what, just the name displays!

    As said earlier make a note of what you have changed, as later upgrades will change this back.

    @robin-w

    Moderator

    Sorry was being thick and quoted the code for the login display.

    Having had a look at the widget, there is an option in the recent topics widget itself to hide author ie when you add the widget to a sidebar, you get options for no. posts to show, show author, show date etc. – does that not work?

    That links to line 798 in the widgets php, so there would be you next step.

    @robin-w

    Moderator

    https://bbpress.org/forums/topic/include-mention-in-bbp_get_reply_author_link-function-args/

    @robin-w

    Moderator

    This post may or may not help you

    @robin-w

    Moderator

    Think you just need to comment out line 143 of widgets.php
    <h4><?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>

    Then the avatar will show but not the name.

    Line 142 has the avatar code, so you can just use that where you need to put the avatar.

    @robin-w

    Moderator

    Many helpers on the forums only look for questions with no replies – they presume that ones with replies have been answered. I don’t know the answer to this one, but if you don’t get a response in a day or so, I’d re-post it afresh, and Chengdu just hold off adding to it !

    Hope you get help

    Robin

    @robin-w

    Moderator

    Yes

    Just set up the new area, and add the bbpress plugin

    Then export (dashboard>tools>export) from the old area – you’ll want post and forums as minimum, but you can take everything if you want.

    Then import into the new area. You will need to install the wordpress importer, but that is part of the process, so just say yes when prompted.

    Part of the import process will ask you who to assign imported posts to, and you can decide to allocate them to admin, an existing user in the new site or (if you exported everything) to the imported users.

    @robin-w

    Moderator

    Kate t

    Thanks for posting this, saved me hours of trying to work out which file I needed to change, and how to code it.

    For those that want to add fields to their users, as well as Kate’s Meta pro, the following link shows how to add and use custom field, and the combination of these two made it quick and simple

    Adding and using custom user profile fields

    I also added the ability within BBpress for the user to change their location within the built in profile amend by changing Form-user-edit.php (located in web/wp-content/plugins/bbpress/templates/default/bbpress

    The following was added after line 125
    <?php bbp_edit_user_display_name(); ?>
    BBpress version 2.3.1

    <div>
    			<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(); ?>" />
    		</div>
    In reply to: Forum sidebar

    @robin-w

    Moderator

    I used “Bbpress wp-tweaks” it creates a bbpress sidebar that is used on the forum pages.
    You could also use “Widget logic” – allows conditional statements on widgets to produce page or category specific sidebar content. Using the logic “is_bbpress()” allows sidebar specific content. “!is_bbpress()” excludes widgets from forum pages.

    @robin-w

    Moderator

    From the sticky on the upgrade put the following into your CSS

    `.bbp-search-form {
    display:none !important;
    }`

    @robin-w

    Moderator
    In reply to: Template Tags

    @robin-w

    Moderator

    code

    In reply to: Template Tags

    @robin-w

    Moderator

    `<a href="edit” >Amend Profile/Change password`

    ok think i worked it out

    In reply to: Template Tags

    @robin-w

    Moderator

    ok so how do you post code in this forum? it keeps swallowing it !

    In reply to: Template Tags

    @robin-w

    Moderator

    sorry lost the text through the forum interpreting it – try again

    a href=”edit” >Amend Profile/Change password
    Just wrap this in the usual <a and /a's

    @robin-w

    Moderator

    I have also added it in a page by creating a shortcode
    In functions.php in my child theme I added

    //edit profile
    function profileedit() {
    return ‘Amend Profile/Change password‘ ;
    }
    add_shortcode(‘profileedit’, ‘profileedit’);

    Then in any page type [profileedit] and up comes the href with the current user correctly filed in.

    In reply to: Template Tags

    @robin-w

    Moderator

    Not sure which bit of your site you plan to put this in, but the following php code will put up some text which they can click

    <a href="edit” >Amend Profile/Change password

    without the “edit”, it’ll take them to their profile page.

    @robin-w

    Moderator

    Lynq,

    Thnaks for your unput. I played with several ideas, but in the end just added a libe to bbpress’s widgets.php on line 140 as follows :

    <a href="edit” >Amend Profile/Change password

    That did the trick.

    @robin-w

    Moderator

    Can you point me to the newer example, and i’ll code that for snitz so that it looks consistent and has help prompts in it, then I’ll ticket it to you.

    @robin-w

    Moderator

    PS the example.php that downloads with the bbpress plugin doesn’t have a bit to bring the message accross, so initially I had a great forum with no topic content!

    I nicked the following from another converter and it seemed to work

    // Topic content.
    // Note: We join the posts table because topics do not have content.
    $this->field_map[] = array(
    ‘from_tablename’ => ‘FORUM_TOPICS’,
    ‘from_fieldname’ => ‘T_MESSAGE’,
    ‘join_tablename’ => ‘thread’,
    ‘join_type’ => ‘INNER’,
    ‘join_expression’ => ‘USING (threadid) WHERE post.parentid = 0′,
    ‘to_type’ => ‘topic’,
    ‘to_fieldname’ => ‘post_content’,
    ‘callback_method’ => ‘callback_html’

    @robin-w

    Moderator

    Stephen,

    Thanks, that got me going in the right direction and I have achieved it.

    I’ll try and post the full method for future users – I found your custom stuff useful https://codex.bbpress.org/import-forums/custom-import/

    Working out the mapping and date formats took a bit of effort, but once there the rest is easy !

    Thanks again

Viewing 25 replies - 14,026 through 14,050 (of 14,052 total)