Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lennydelmar

    (@lennydelmar)

    I used this plugin with bbpress forum plugin. And as I said I tried all the settings on your plugin. And there were not options for any forum plugins including BuddyPress (maybe unless you download it)! Anyways my simple need was not satisfy, as I only wanted to be able to attach audio file to a topic reply with possibility to play it right on the page. That’s it!

    Thread Starter lennydelmar

    (@lennydelmar)

    Thanks a lot! Work perfectly for me by pasting code into phunctions.php theme file.

    Thread Starter lennydelmar

    (@lennydelmar)

    Great to hear! Sorry for the late reply.

    I currently use Tessera theme for bbpress forum support. That theme already has the avatar feature but doesn’t work properly. The theme overrides templates for bbpress plugin and the edit profile page looks as below..

    <?php
    
    /**
     * bbPress User Profile Edit Part
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    <div class="form-group">
    <ul class="nav nav-tabs" role="tablist">
        <li class="nav-item">
            <a class="nav-link active" id="tessera-profile-tab" data-toggle="tab" href="#tessera-profile" role="tab" aria-controls="tessera-profile" aria-selected="true"><?php esc_html_e( 'Profile', 'tessera' ) ?></a>
        </li>
        <li class="nav-item">
            <a class="nav-link" id="tessera-profile-image-tab" data-toggle="tab" href="#tessera-profile-image" role="tab" aria-controls="tessera-profile-image" aria-selected="false"><?php esc_html_e( 'Additional Fields', 'tessera' ) ?></a>
        </li>
    </ul>    
     <div class="tab-content">
      <div class="tab-pane fade show active" id="tessera-profile" role="tabpanel" aria-labelledby="tessera-profile-tab">
          <form id="bbp-your-profile" action="<?php bbp_user_profile_edit_url( bbp_get_displayed_user_id() ); ?>" method="post" enctype="multipart/form-data">
    
    	<h4><?php esc_html_e( 'Profile', 'tessera' ) ?></h4>
    
    	<?php do_action( 'bbp_user_edit_before' ); ?>
    
    	<fieldset class="bbp-form tessera-edit-profile-section">
    
    		<?php do_action( 'bbp_user_edit_before_name' ); ?>
    
    		<div class="form-row mb-4">
                <div class="col">
                    <label for="first_name"><?php esc_html_e( 'First Name', 'tessera' ) ?></label>
                    <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
                </div>
                <div class="col">
                    <label for="last_name"><?php esc_html_e( 'Last Name', 'tessera' ) ?></label>
                    <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
                </div>
    		</div>
    
    		<div class="form-row">
                <div class="col">
                    <label for="nickname"><?php esc_html_e( 'Nickname', 'tessera' ); ?></label>
                    <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
                </div>
                <div class="col">
                    <label for="display_name"><?php esc_html_e( 'Display Name', 'tessera' ) ?></label>
                    <?php bbp_edit_user_display_name(); ?>
                </div>
    		</div>
    
    		<?php do_action( 'bbp_user_edit_after_name' ); ?>
    
    	</fieldset>
    
    	<fieldset class="bbp-form tessera-edit-profile-section">
    
    		<?php do_action( 'bbp_user_edit_before_contact' ); ?>
    
    		<div class="form-group mb-1">
    			<label for="url"><?php esc_html_e( 'Website', 'tessera' ) ?></label>
    			<input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
    		</div>
    
    		<?php foreach ( bbp_edit_user_contact_methods() as $name => $desc ) : ?>
    
    			<div class="form-group mb-0">
    				<label for="<?php echo esc_attr( $name ); ?>"><?php echo apply_filters( 'user_' . $name . '_label', $desc ); ?></label>
    				<input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
    			</div>
    
    		<?php endforeach; ?>
            
            <div class="form-group mb-0">
    		<?php do_action( 'bbp_user_edit_after_contact' ); ?>
            </div>
    
    	</fieldset>
    
    	<fieldset class="bbp-form tessera-edit-profile-section">
    
    		<?php do_action( 'bbp_user_edit_before_about' ); ?>
    
    		<div class="form-group mb-3">
    			<label for="description"><?php esc_html_e( 'Biographical Info', 'tessera' ); ?></label>
    			<textarea name="description" class="form-control" id="description" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>
    		</div>
            
    		<?php do_action( 'bbp_user_edit_after_about' ); ?>
    
    	</fieldset>
    
    	<fieldset class="bbp-form tessera-edit-profile-section">
    		<h4><?php esc_html_e( 'Account', 'tessera' ) ?></h4>
    
    		<?php do_action( 'bbp_user_edit_before_account' ); ?>
            
            <div class="form-row mb-3">
                <div class="col">
                    <label for="url"><?php esc_html_e( 'Language', 'tessera' ) ?></label>
                    <?php tessera_edit_user_language(); ?>
                </div>
                <div class="col">
                    <label for="user_login"><?php esc_html_e( 'Username', 'tessera' ); ?></label>
                    <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="form-control" tabindex="<?php bbp_tab_index(); ?>" />
                </div>
            </div>
    
    		<div class="form-group">
    			<label for="email"><?php esc_html_e( 'Email', 'tessera' ); ?></label>
    
    			<input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="form-control" maxlength="100" tabindex="<?php bbp_tab_index(); ?>" autocomplete="off" />
    
    		</div>
    
    		<?php bbp_get_template_part( 'form', 'user-passwords' ); ?>
    
    		<?php do_action( 'bbp_user_edit_after_account' ); ?>
    
    	</fieldset>
    
    	<?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home_edit() ) : ?>
    
    		<fieldset class="bbp-form tessera-edit-profile-section">
    			<h4><?php esc_html_e( 'User Role', 'tessera' ); ?></h4>
    
    			<?php do_action( 'bbp_user_edit_before_role' ); ?>
    
    			<?php if ( is_multisite() && is_super_admin() && current_user_can( 'manage_network_options' ) ) : ?>
    
    				<div class="form-group">
    					<label for="super_admin"><?php esc_html_e( 'Network Role', 'tessera' ); ?></label>
                        <input class="checkbox" class="form-check-inline" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>" />
    						<?php esc_html_e( 'Grant this user super admin privileges for the Network.', 'tessera' ); ?>
    				</div>
    
    			<?php endif; ?>
    
    			<?php bbp_get_template_part( 'form', 'user-roles' ); ?>
    
    			<?php do_action( 'bbp_user_edit_after_role' ); ?>
    
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bbp_user_edit_after' ); ?>
    
    	<fieldset class="submit">
    		<div class="form-group">
    
    			<?php bbp_edit_user_form_fields(); ?>
    
    			<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? esc_html_e( 'Update Profile', 'tessera' ) : esc_html_e( 'Update User', 'tessera' ); ?></button>
    		</div>
    	</fieldset>
    
    </form>
         </div>
          <div class="tab-pane fade" id="tessera-profile-image" role="tabpanel" aria-labelledby="tessera-profile-image-tab">
              <?php if (function_exists('cmb2_metabox_form')) { ?>
              <?php cmb2_metabox_form( 'tessera_usercover', bbp_get_displayed_user_id(), array('save_button' => esc_html__( 'Save Changes', 'tessera' )) ); ?>
              <?php } ?>
         </div>
    </div>

    Please let me know what I can do further. Thank you so much!

    Thread Starter lennydelmar

    (@lennydelmar)

    Thank you so much!

    It was a bit difficult to find Directory Builder file, but finally I got it (‘class-multi-directory-manager.php‘). Then overriding listing-title.php and thumb-card.php as well I achieved the custom link option for listings.

    Big thanks guys! I will highly recommend Directorist for all of my friends developers as a no 1 directory plugin! Looking forward to seeing updates with advanced and live tag filter option!

    Thread Starter lennydelmar

    (@lennydelmar)

    Thanks for your reply. I’ve read about overriding the template files and already use this feature. But keep asking for a code. Need to know how exactly I can pick up the link of website (from a custom field of listing card) and replace the permalink of listing. You guys do not have the option for a custom link for listings inside your plugin. But seriously should have! Thanks for any solutions in advance!

    Thread Starter lennydelmar

    (@lennydelmar)

    Thank you for your reply. I was really waiting for that. But unfortunately the code has many syntax error. I already working on it but still cannot find them all. It doesn’t return any listings at all. Could you please provide me with the working one.

    As I understood, the important part is to add to the top of the loop-grid.php the following code

    $id = get_the_ID();
    $tags=get_the_terms( $id, ‘at_biz_dir-tags’);

    And I need to place further code in directorist-listing-single__meta area replacing the content. But seems the code you suggested has some syntax error.

Viewing 6 replies - 1 through 6 (of 6 total)