Forum Activity for @blindmime

blindmime
@blindmime
03/06/15 12:48:54AM
776 posts

multiple image uploads on image form field


Using Jamroom

With 'value' => false no images are displayed. If I take that line out, only one image is displayed. If I don't reference this field at all in the update section, then it does display multiple photos, but I can't upload multiple photos.
updated by @blindmime: 03/06/15 01:07:21AM
blindmime
@blindmime
03/06/15 12:41:07AM
776 posts

Date drop down showing date when not entered


Design and Skin Customization

I looked at the source and there is a javascript affecting display of the date field:

<script type="text/javascript">
$(document).ready(function(){
try { $('#task_completed_date').glDatePicker({ onChange: function(target,newDate) { var yy = newDate.getUTCFullYear().toString(); var mm = (newDate.getMonth() + 1).toString(); var dd = newDate.getDate().toString(); target.val((mm[1] ? mm : "0" + mm[0]) +"/"+ (dd[1] ? dd : "0" + dd[0]) +"/"+ yy.substring(2)); } }); } catch(e) {};
try { $('#task_week').glDatePicker({ onChange: function(target,newDate) { var yy = newDate.getUTCFullYear().toString(); var mm = (newDate.getMonth() + 1).toString(); var dd = newDate.getDate().toString(); target.val((mm[1] ? mm : "0" + mm[0]) +"/"+ (dd[1] ? dd : "0" + dd[0]) +"/"+ yy.substring(2)); } }); } catch(e) {};

    try {
    var active_e0f3fd85_uploads = {};
    var active_e0f3fd85_ulcount = 0;
    var pm_task_photo = new qq.FileUploader({
        element: document.getElementById('pm_task_photo'),
        action: 'http://lfdgcare.com/core/upload_file/',
        inputName: 'pm_task_photo',
        acceptFiles: 'png,gif,jpg,jpeg',
        sizeLimit: 10485760,
        multiple: false,
        debug: true,
        params: { upload_name: 'task_photo', field_name: 'pm_task_photo', token: 'cb5a864b8c8aa5f44e8f6c8339e9c593', upload_token: '127487e5c8f66809a8d4c0ce66652051', extensions: 'png,gif,jpg,jpeg', multiple: 'false' },
        uploadButtonText: 'Upload a new Image',
        cancelButtonText: 'cancel',
        failUploadText: 'upload failed',
        onSubmit: function(id,fileName) {
            active_e0f3fd85_ulcount++;
            if (0 > 0 && active_e0f3fd85_ulcount > 0) { return false; }
        },
        onUpload: function(id,fileName) {
            active_e0f3fd85_uploads[fileName] = 1;
            $('.form_submit_section input').attr("disabled","disabled").addClass('form_button_disabled');
        },
        onComplete: function(id,fileName,response) {
            delete active_e0f3fd85_uploads[fileName]; var count = 0;
            for (i in active_e0f3fd85_uploads) { if (active_e0f3fd85_uploads.hasOwnProperty(i)) { count++; } }
            if (count === 0) { $('.form_submit_section input').removeAttr("disabled","disabled").removeClass('form_button_disabled'); }
        }
    });
    } catch(e) {}
return true;
});
</script>

updated by @blindmime: 03/06/15 12:45:49AM
blindmime
@blindmime
03/06/15 12:25:19AM
776 posts

Date drop down showing date when not entered


Design and Skin Customization

I put this in the update section of index.php:
 // Task Completed Date
    $_tmp = array(
        'name'      => 'task_completed_date',
	 'label'     => 'test label',
        'value' => ''
    );
    jrCore_form_field_create($_tmp);
But it's not changing anything about this item in the form. Even the label remains how I configured it in the form designer. I'm in developer mode, but I also ran an integrity check just in case.

Also, in form designer, I have ordered the items so a chained select field should appear at the 1st position, yet the Title field and another field, THEN the chained select field appear.
blindmime
@blindmime
03/05/15 02:09:27PM
776 posts

Date drop down showing date when not entered


Design and Skin Customization

How do I set the value to an empty string?
blindmime
@blindmime
03/04/15 11:04:46AM
776 posts

moving data from one module to another


Design and Skin Customization

I have a custom aparna-generated module which consists of a long bid form. My customer fills this in when bidding a project. When the project is approved, each approved item in the form then becomes a task in another custom module.

Currently they are filling the tasks in manually week to week. I would like to automate this by moving the data from the fields in the bid module over to task module, keeping the bid form. There are additional things to set up to facilitate this for the client, such as they want the bid module data displayed in tab or cascading menus together with the task data. Each bid item is organized into categories (tabs) with a button to click to enter it as a task.

This is beyond my jamroom comfort zone, but maybe if I had something similar to look at, at least in terms of moving data from one module to the other, I could possibly figure it out. Barring that I could pay someone to at least get me started or even do the smart work depending on the cost.

Let me know your thoughts, please.

updated by @blindmime: 04/12/15 05:30:26AM
blindmime
@blindmime
03/04/15 10:44:30AM
776 posts

Date drop down showing date when not entered


Design and Skin Customization

Is there a way to have date dropdown menu fields NOT show a date when there hasn't been a date entered?
updated by @blindmime: 04/23/15 05:20:24PM
blindmime
@blindmime
03/01/15 08:32:00PM
776 posts

multiple image uploads on image form field


Using Jamroom

No photos are displayed if I change it 'value'.
blindmime
@blindmime
02/28/15 04:23:43PM
776 posts

multiple image uploads on image form field


Using Jamroom

This is in the update section:
    // Form init
    $_tmp = array(
        'submit_value' => 9,
        'cancel'       => jrCore_is_profile_referrer(),
        'values'       => $_rt
    );
    jrCore_form_create($_tmp);

If I add this to the update section, one photo is displayed:
// Task Photo
    $_tmp = array(
        'name'     => 'task_photo',
        'label'    => 1,
        'help'     => 5,
        'text'     => 'select photos to upload',
        'type'     => 'image',
        'multiple' => true,
        'required' => false,
	 'value'    => true
       
    );
    jrCore_form_field_create($_tmp);

If I don't add that at all, multiple photos are displayed (but I don't get the multiple upload function). Apparently, the form designer image field can already display multiple images. Evidently my module code above is missing something it needs to do that?
updated by @blindmime: 02/28/15 04:24:29PM
blindmime
@blindmime
02/28/15 09:46:35AM
776 posts

multiple image uploads on image form field


Using Jamroom

I have a custom aparna-generated module with an image field create in form designer. I've added the code above to its index.php file and it's allowing multiple images in my custom module, but it doesn't display any images in the update form. In testing, I uploaded multiple images and it works as expected, but no images are displayed upon viewing the update form. I know they uploaded and are in the datastore successfully, because if I go back to original index.php file, the multiple images show in the update form. How do I get the images to display in the update form with the multiple image upload enabled?
blindmime
@blindmime
02/11/15 10:51:09AM
776 posts

Share your Performance Check Results


Announcements

My Arvixe shared sites are around 325. Bluehost is around 650. I have bluehost sites on both regular shared and "pro" shared and the scores are roughly the same for both. I can't get video to process on either of these hosts, by the way. It's not a big issue for me; just mentioning it.

I got 1246 on a shared host jbservers website which seems really odd to me. I've actually considered this host to be much slower than all my other sites. Today it was acting OK, though I wouldn't say any speedier than the other shared hosts. Maybe they've made some changes in the last month or so?
  41