WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
Front-End user page not working at all -- entire plugin not working (9 posts)

  1. Kyle.Belanger
    Member
    Posted 1 year ago #

    Hello,

    I'm having some serious issues trying to get this plugin to work. I've carefully followed and re-followed the installation instructions and still nothing.

    I'm using the latest version of the plugin and WordPress 3.5 (not the latest 3.5.1 because the plugin wasn't working with 3.5.1). I've created all of the pages as directed in the instructions and added the short codes. I've also specified the edit page in the 'other' section and updated permalinks.

    I've created a couple test accounts and set their WordPress privilege to 'Author'. When I log in with these accounts, I'm taken to the back-end WordPress dashboard. I have not seen any of the Front-End features of this plugin. Nothing is working.

    Could this be a possible compatibility issue with the WordPress theme I'm using? I have the page layouts set to default for the plugin.

    Someone please help!!!

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. professor99
    Member
    Posted 1 year ago #

    Not clear on what isn't exactly not working.

    To redirect to WPUF dashboard instead of the WordPress dashboard you need to set the "Admin area access" option in the "Others" tab to whoever you want to allow normal WordPress dashboard access

  3. Kyle.Belanger
    Member
    Posted 1 year ago #

    I want the back-end to be visible to admin's only.

    What should I set the "admin area access" option to achieve this?

  4. professor99
    Member
    Posted 1 year ago #

    Admin Only

  5. Kyle.Belanger
    Member
    Posted 1 year ago #

    Okay, I got it working now. Thank you, professor99.

    When I submit a post from the front-end with an attachment, the attachment (image) is then displayed below the article preview on the homepage. Is there any way to disable this via a specific plugin file in FTP?

    Thank you!

  6. professor99
    Member
    Posted 1 year ago #

    Hi Kyle,

    Frontend Version 1.1 as you are using either displays all attachments that are images or lists them otherwise.

    You have two options here.

    1. The development version only lists attachments added by the attachment field. However I'm considering adding an 'Display images' option due to the comments here(Rkarels comment).

    2. You can modify the code in wpuf-functions.php to do what you want.

    Simply change the code for wpuf_show_meta_front( $content ) to this

    function wpuf_show_meta_front( $content ) {
        global $wpdb, $post;
    
        //check, if custom field is enabled
        $enabled = wpuf_get_option( 'enable_custom_field' );
        $show_custom = wpuf_get_option( 'cf_show_front' );
        $show_attachment = wpuf_get_option( 'att_show_front' );
    
        if ( $enabled == 'on' && $show_custom == 'on' ) {
            $extra = '';
            $fields = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}wpuf_customfields ORDER BY <code>region</code> DESC", OBJECT );
            if ( $wpdb->num_rows > 0 ) {
                $extra .= '<ul class="wpuf_customs">';
                foreach ($fields as $field) {
                    $meta = get_post_meta( $post->ID, $field->field, true );
                    if ( $meta ) {
                        $extra .= sprintf( '<li><label>%s</label> : %s</li>', $field->label, make_clickable( $meta ) );
                    }
                }
                $extra .= '<ul>';
    
                $content .= $extra;
            }
        }
    
        if ( $show_attachment == 'on' ) {
            $attach = '';
            $attachments = wpfu_get_attachments( $post->ID );
    
            if ( $attachments ) {
                $attach = '<ul class="wpuf-attachments">';
    
                foreach ($attachments as $file) {
    
                    //if the attachment is image, show the image. else show the link
    //                if ( wpuf_is_file_image( $file['url'], $file['mime'] ) ) {
    //                    $thumb = wp_get_attachment_image_src( $file['id'] );
    //                    $attach .= sprintf( '<li><a href="%s"><img src="%s" alt="%s" /></a></li>', $file['url'], $thumb[0], esc_attr( $file['title'] ) );
    //                } else {
                        $attach .= sprintf( '<li><a href="%s" title="%s">%s</a></li>', $file['url'], esc_attr( $file['title'] ), $file['title'] );
    //                }
                }
    
                $attach .= '</ul>';
            }
    
            if ( $attach ) {
                $content .= $attach;
            }
        }
    
        return $content;
    }
  7. Kyle.Belanger
    Member
    Posted 1 year ago #

    Hi Professor,

    This only disabled all attached images. Now when I view a post with attachments, they are no longer visible in the actual post or post preview.

    Is there an option to take the user uploaded attachments and format them into the post as gallery images (see screenshots below).

    For example, from the admin dashboard, I can insert the image URLs with the gallery shortcode. However, from the user-frontend post submission form, I can only upload images as attachments.

    Thanks,

    Kyle

  8. professor99
    Member
    Posted 1 year ago #

    Hi Kyle,

    You forgot to add the links to the screenshots.

    Otherwise I'm not too sure what your after.

    As to the gallery I actually posed the question in the reply to Rkarels comment in the link in my post above to what users would like to see here.

    Also have you tried the Rich Editor option. This allows users to insert images in the post.

  9. Kyle.Belanger
    Member
    Posted 1 year ago #

    FIXED!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic