Title: Mortus Eclipse's Replies | WordPress.org

---

# Mortus Eclipse

  [  ](https://wordpress.org/support/users/mortus-eclipse/)

 *   [Profile](https://wordpress.org/support/users/mortus-eclipse/)
 *   [Topics Started](https://wordpress.org/support/users/mortus-eclipse/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mortus-eclipse/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mortus-eclipse/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mortus-eclipse/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mortus-eclipse/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mortus-eclipse/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGEN Public Uploader] More on multiple image uploads](https://wordpress.org/support/topic/more-on-multiple-image-uploads/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/more-on-multiple-image-uploads/#post-4748419)
 * I would have to look into how to disable or hide the “Add picture” button this
   should be doable by adding some code to the jQuery function that adds the additional
   fields. What is needed I am not sure however.
 * As for changing the text on the “Add picture” button, this is on line 427 for
   the short code form and line 566 for the widget form. Simply edit the value “
   Add picture” to what is desired on those lines:
 * `$strOutput .= "\n</div><br/><input type=\"button\" value=\"Add picture\" id=\"
   addBtn\">";`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGEN Public Uploader] How to pass a new name for the uploaded image](https://wordpress.org/support/topic/how-to-pass-a-new-name-for-the-uploaded-image/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-pass-a-new-name-for-the-uploaded-image/#post-4717939)
 * The code to do this is actually already in place. All it needs is an appropriate
   input field, and a few tweaks.
 * First, open npu-upload.php in wp-contents -> plugins -> nextgen-public-uploader-
   > inc
 * Find the line similar to:
    `$strOutput .= "\n\t<input type=\"file\" name=\"imagefiles\"
   id=\"imagefiles\"{$disabled} />";`
 * This line may change slightly depending on the version you are using, the above
   line is from the latest version. In earlier lines you may have to replace it 
   in the “Shortcode Form” and “Widget Form” if you want the same function in both.
 * Below that line add:
 *     ```
       $strOutput .= "<br />";
       $strOutput .= "Image Title:";
       $strOutput .= "<br />";
       $strOutput .= "\n\t<input type=\"text\" name=\"alttext\" id=\"alttext\" />";
       ```
   
 * Then we need to modify update details function, currently if you do not have 
   the description field on, or it’s left blank this will not work. The portion 
   we are interesting in looks like the following:
 *     ```
       // Function: Update Details
       		public function update_details() {
       			global $wpdb;
       			$arrUpdateFields = array();
       			if ( isset( $_POST['imagedescription'] ) && !empty( $_POST['imagedescription'] ) ) {
       				$this->strDescription = esc_sql( $_POST['imagedescription'] );
       				$arrUpdateFields[] = "description = '$this->strDescription'";
       			} else {
       				return;
       			}
       			if ( isset( $_POST['alttext'] ) && !empty( $_POST['alttext'] ) ) {
       				$this->strTitle = esc_sql( $_POST['alttext'] );
       				$arrUpdateFields[] = "alttext = '$this->strTitle'";
       			}
       ```
   
 * Commenting out the following lines is the easiest but may not be the best way:
 *     ```
       } else {
       				return;
       			}
       ```
   
 * So they look like this:
 *     ```
       //} else {
       			//	return;
       			//}
       ```
   
 * Hope this helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGEN Public Uploader] Need to be able to upload multiple images](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/page/2/#post-3257714)
 * NM, I found it in the class file… Not sure how I want to handle it yet though.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGEN Public Uploader] Need to be able to upload multiple images](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/page/2/#post-3257713)
 * I do have a question though. All the files seem to have a hash attached to the
   end of the filenames when they are uploaded. What is causing this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGEN Public Uploader] Need to be able to upload multiple images](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/need-to-be-able-to-upload-multiple-images/#post-3257712)
 * [@dado_it](https://wordpress.org/support/users/dado_it/): Both methods seem to
   still work with the latest plugin and NextGen 2.X, however you will have to reapply
   the changes everytime you update the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextGen Public Image Uploader (PUP)] Please post feature requests and suggestions here.](https://wordpress.org/support/topic/please-post-feature-requests-and-suggestions-here/)
 *  [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/please-post-feature-requests-and-suggestions-here/#post-4131848)
 * It would be great if the uploaders could specify the Image Title/Alt Text and
   Description/Caption fields when they upload an image to the moderation cue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Nice Login Widget] Attempts to redirect to Home Page, redirects to wp-login instead.](https://wordpress.org/support/topic/attempts-to-redirect-to-home-page-redirects-to-wp-login-instead/)
 *  Thread Starter [Mortus Eclipse](https://wordpress.org/support/users/mortus-eclipse/)
 * (@mortus-eclipse)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/attempts-to-redirect-to-home-page-redirects-to-wp-login-instead/#post-4253073)
 * Finally replaced it propperly and all is good now! Grrr… Been doing alot more
   crawling through wordpress and plugin innards than I would like lately.

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