Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,851 through 3,875 (of 14,247 total)
  • @robin-w

    Moderator

    you can then apply the same technique to the reply form

    @robin-w

    Moderator

    ok, so create a new topic form template

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    change around line 199

    <?php if ( ! bbp_is_single_forum() ) : ?>

    to

    <?php if (isset($_REQUEST['bbp_forum_id'])) : ?>
    <input type="hidden" name="bbp_forum_id" value="<?php echo $_REQUEST['bbp_forum_id']; ?>" />
    <?php elseif ( ! bbp_is_single_forum() ) : ?>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    then put this in your child theme functions file

    add_action ( 'bbp_template_before_single_forum', 'reww_new_topic_button' ) ;
    
    function reww_new_topic_button () {
    	$url = $url = get_home_url(); 
    	$forum_id = bbp_get_forum_id() ;
    	$url.='/topic-form/?bbp_forum_id='.$forum_id ;
    	$text = 'create new topicc' ;
    	echo '<a class="hello" href ="'.$url.'">'.$text.'</a>' ;
    }
    

    where ‘/topic-form/’ is the page you have the topic form on

    that sends a query string to the topic form page, which is then picked up by the amended template above

    In reply to: Settings for my forum

    @robin-w

    Moderator

    Probably not with that plugin, but probably another plugin and/or your theme

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    you can also check out this plugin which does user ranking

    bbp user ranking

    @robin-w

    Moderator

    I’d suggest you crack open this plugin which does topic and reply counts

    bbp topic count

    In reply to: Settings for my forum

    @robin-w

    Moderator

    suspect dashboard>settings>forums>subscriptions

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    the topic and reply forms are at the bottom of the forum and topic pages, so there is no need to visit a separate page.

    I agree that this is far from obvious.

    my style pack plugin adds a button which takes you there

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Buttons

    I’m looking at creating a pop-up topic and reply form at the moment, but this is very much work in progress. If I succeed I’ll try and remember to post back here

    @robin-w

    Moderator

    šŸ™‚

    @robin-w

    Moderator

    sorry, I’m confused on what the issue is – when I click on the login link above, I get taken to the expected login.

    @robin-w

    Moderator

    dashboard>appearance>widgets and choose the sidebar and add a custom html widget

    @robin-w

    Moderator

    anything can be done if you can find someone with the technical skills and time and are willing to pay the money for them to do the work !!

    The plugin does not generate WordPress ‘pages’ as such, it uses a theme’s template and renders data within that.

    I’m just a bbpress user who helps out on this forum, but if we ignore login, register and password reset which users may or may not want as pages (many use sidebar widgets and a multitude of membership plugins and methods to handle registration etc.) then I’m not clear what you want to happen with topic and reply forms – what is missing that you want that needs multiple forms?

    @robin-w

    Moderator

    The solution I’m looking for is for BBP to dynamically generate them as required. Is that possible?

    not within the current product.

    I’m not quite sure what you have against creating 5 pages yourself šŸ™‚ šŸ™‚

    @robin-w

    Moderator

    ok, so your topic and reply forms will have pages with urls, so you just need to put the buttons where you want

    <input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />

    @robin-w

    Moderator

    not sure what that means – render a screen with the form? or create a worpdress page ?

    perhaps you could describe what you want to achieve from what and to what.

    @robin-w

    Moderator

    @robin-w

    Moderator

    suspect it might have been another plugin that was dependant on it, but anyway glad you are fixed.

    @robin-w

    Moderator

    oops semi colon missing from $image = line

    <?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>
    <?php 
    $image_id = get_user_meta (bbp_get_reply_author_id(),  'profile-picture' , true) ;
    $image = get_post_meta ($image_id, _wp_attached_file, true) ;
    echo '<li>herestart'.$image.'hereend</li>' ;
    ?>

    @robin-w

    Moderator

    ok, so we are making progress.

    I don’t expect this to work, just to return the next stage

    so amend that to

    <?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>
    <?php 
    $image_id = get_user_meta (bbp_get_reply_author_id(),  'profile-picture' , true) ;
    $image = get_post_meta ($image_id, _wp_attached_file, true)
    echo '<li>herestart'.$image.'hereend</li>' ;
    ?>

    @robin-w

    Moderator

    that’s fine, I wanted to see what was in the database ie in this case 1345, I suspect it is a reference to a media image

    @robin-w

    Moderator

    ok, can you change the other one to

    <?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>
    <?php 
    $avatar = get_user_meta (bbp_get_reply_author_id(),  'profile-picture' , true) ;
    echo '<li>herestart'.$avatar.'hereend</li>' ;
    ?>

    @robin-w

    Moderator

    try

    <?php 
    $neighborhood = get_user_meta (bbp_get_reply_author_id(),  'user-subdivision' , true) ;
    echo '<li>'.$neighborhood.'</li>' ;
    ?>

    come back if that doesn’t work

    @robin-w

    Moderator

    oops sorry, I’ll correct that

    @robin-w

    Moderator

    hmm…just loaded Asgaros to my test site, and it has it’s own tables

    wp_forum_forums
    wp_forum_topics
    wp_forum_posts

    as well as several others dealing with subscriptions, polls and ads.

    the issue with importing would be hooking forum_topics which holds header stuff with forum posts which holds the content, but also the replies.

    What size is your current Asgaros forum – eg forums, topics replies?

    @robin-w

    Moderator

    for the avatar, I need to know what is stored in the usermeta, so can you try adding this after line 44

    <?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>

    to get

    <?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>
    <?php 
    $avatar = get_user_meta (get_current_user_id(),  'profile-picture' , true) ;
    echo '<li>'.$avatar.'</li>' ;
    ?>

    I need to see if this produces a url or link to media item etc.

Viewing 25 replies - 3,851 through 3,875 (of 14,247 total)