Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • ^ bump

    Conspried Minds

    (@conspriedminds)

    Any updates on this? having the same problem.

    Thread Starter Conspried Minds

    (@conspriedminds)

    Modifying line 136 in wpuf.php and 862 of wpuf-functions.php got the job done!

    And you’re right — We cant know what other effects these changes might have but i’ll be sure to post an update for anyone else that might be experiencing this issue.

    Thank you so much Bangbay

    Thread Starter Conspried Minds

    (@conspriedminds)

    Still trying to narrow down the source of the issue.

    wpuf.js line 14 — When this is removed your plugin works fine. (but again the featured image uploader on the add post page is broken)

    That calls for the function on line 88 ” featImgUploader”

    I’m still pretty clueless but this might be the function that is causing the conflict.

    Again, thanks for your help on this.

    Thread Starter Conspried Minds

    (@conspriedminds)

    Thanks again for your help. It’s truly appreciated.

    Attachments were disabled since i first started using the plugin.

    I also tried the fix stated above on line 862 and still no luck — the problem still remains.

    I wrote a detailed description of the issue on the WPUF support forum. — Maybe the info there can help out a bit.

    *wpuseravatar has been granted admin rights.

    Am i the only one experiencing this issue?
    Are there instances where WPUF and WPUA work seamlessly?
    Maybe it’s just not playing well with the Remal theme?

    Thread Starter Conspried Minds

    (@conspriedminds)

    Hey, thanks for getting back to me.
    Your help is greatly appreciated.

    The website: clutchpop.com
    Theme: Remal Theme
    Active Plugins:
    WP User Avatar (Disabled now since it’s not working well with the theme)
    WP User Frontend
    Stop Spammer Registrations Plugin
    Instagrate to WordPress

    Thanks again for your help, please let me know if you need anything else.

    Thread Starter Conspried Minds

    (@conspriedminds)

    This was not a solution // since deleting this bit of coding also disabled the “upload featured image” from the WPUF.

    Still looking for a solution.

    Thread Starter Conspried Minds

    (@conspriedminds)

    @susansalleh deleting it from the file will work but it’d be best to leave it there just in case you need to revert back to the original in the future.

    You can disable it by “commenting it out”

    /* ANY CODE BETWEEN THESE TWO SLASHES WILL BE REGISTERED AS A COMMENT, NOT A CODE */

    So simply place /* Before the code and */ after the code.

    In this case before “function” and after the final bracket.

    You can just copy and paste the code below in place of what’s currently there.

    *NOTE: It removes the styles from the pages that use shortcodes. You’ll have to edit your theme css to style the elements how you want them.

    /**
         * Enqueues Styles and Scripts when the shortcodes are used only
         *
         * @uses has_shortcode()
         * @since 0.2
         */
       /*  function enqueue_scripts() {
            $path = plugins_url('', __FILE__ );
    
            //for multisite upload limit filter
            if ( is_multisite() ) {
                require_once ABSPATH . '/wp-admin/includes/ms.php';
            }
    
            require_once ABSPATH . '/wp-admin/includes/template.php';
    
            wp_enqueue_style( 'wpuf', $path . '/css/wpuf.css' );
    
            if ( wpuf_has_shortcode( 'wpuf_addpost' ) || wpuf_has_shortcode( 'wpuf_edit' ) ) {
                wp_enqueue_script( 'plupload-handlers' );
            }
    
            wp_enqueue_script( 'wpuf', $path . '/js/wpuf.js', array('jquery') );
    
            $posting_msg = wpuf_get_option( 'updating_label', 'wpuf_labels' );
            $feat_img_enabled = ( wpuf_get_option( 'enable_featured_image', 'wpuf_frontend_posting' ) == 'yes') ? true : false;
            wp_localize_script( 'wpuf', 'wpuf', array(
                'ajaxurl' => admin_url( 'admin-ajax.php' ),
                'postingMsg' => $posting_msg,
                'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
                'nonce' => wp_create_nonce( 'wpuf_nonce' ),
                'featEnabled' => $feat_img_enabled,
                'plupload' => array(
                    'runtimes' => 'html5,silverlight,flash,html4',
                    'browse_button' => 'wpuf-ft-upload-pickfiles',
                    'container' => 'wpuf-ft-upload-container',
                    'file_data_name' => 'wpuf_featured_img',
                    'max_file_size' => wp_max_upload_size() . 'b',
                    'url' => admin_url( 'admin-ajax.php' ) . '?action=wpuf_featured_img&nonce=' . wp_create_nonce( 'wpuf_featured_img' ),
                    'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
                    'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ),
                    'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')),
                    'multipart' => true,
                    'urlstream_upload' => true,
                )
            ) );
        } */

    Hope this helps,
    Best,
    Chris

    Thread Starter Conspried Minds

    (@conspriedminds)

    Resolved.
    Only appears if user is logged out.

    Awesome plugin.
    Thanks guys.

    Thread Starter Conspried Minds

    (@conspriedminds)

    SOLVED.

    If anyone else is experiencing this issue this is how i solved it:

    WP User Frontend calls for some specific styles and and scripts whenever shortcodes are used.

    I disabled the entire script and the plugin works fine now.

    I’ve attached the code block below that causes the issue. It can be found within the wpuf.php file (/wp-content/plugins/wp-user-frontend/wpuf.php).

    /**
         * Enqueues Styles and Scripts when the shortcodes are used only
         *
         * @uses has_shortcode()
         * @since 0.2
         */
        function enqueue_scripts() {
            $path = plugins_url('', __FILE__ );
    
            //for multisite upload limit filter
            if ( is_multisite() ) {
                require_once ABSPATH . '/wp-admin/includes/ms.php';
            }
    
            require_once ABSPATH . '/wp-admin/includes/template.php';
    
            wp_enqueue_style( 'wpuf', $path . '/css/wpuf.css' );
    
            if ( wpuf_has_shortcode( 'wpuf_addpost' ) || wpuf_has_shortcode( 'wpuf_edit' ) ) {
                wp_enqueue_script( 'plupload-handlers' );
            }
    
            wp_enqueue_script( 'wpuf', $path . '/js/wpuf.js', array('jquery') );
    
            $posting_msg = wpuf_get_option( 'updating_label', 'wpuf_labels' );
            $feat_img_enabled = ( wpuf_get_option( 'enable_featured_image', 'wpuf_frontend_posting' ) == 'yes') ? true : false;
            wp_localize_script( 'wpuf', 'wpuf', array(
                'ajaxurl' => admin_url( 'admin-ajax.php' ),
                'postingMsg' => $posting_msg,
                'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
                'nonce' => wp_create_nonce( 'wpuf_nonce' ),
                'featEnabled' => $feat_img_enabled,
                'plupload' => array(
                    'runtimes' => 'html5,silverlight,flash,html4',
                    'browse_button' => 'wpuf-ft-upload-pickfiles',
                    'container' => 'wpuf-ft-upload-container',
                    'file_data_name' => 'wpuf_featured_img',
                    'max_file_size' => wp_max_upload_size() . 'b',
                    'url' => admin_url( 'admin-ajax.php' ) . '?action=wpuf_featured_img&nonce=' . wp_create_nonce( 'wpuf_featured_img' ),
                    'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
                    'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ),
                    'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')),
                    'multipart' => true,
                    'urlstream_upload' => true,
                )
            ) );
        }

    The downside to this is that i have to now style the page content for the pages that use WPUF shortcodes.

    Perhaps this was an isolated issue that occured when using WPUF with my current theme (remal, by tie labs).

    Nevertheless i hope this helps others that might face a similar issue.

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