Forum Activity for @nate

nate
@nate
02/16/15 06:37:47PM
917 posts

Admin Tools Image Upload


Jamroom Developers

In the admin tools section of my module there is an option to create an image. This image is optional. When I try to skip it, I get a validation error. I have it set to required false.

// Avert Image
$_tmp = array(
   'name'     => 'advert_image',
   'label'    => 28,
   'help'     => 29,
   'text'     => 28,
   'type'     => 'image',
   'required' => false
);
jrCore_form_field_create($_tmp);

Quote:{"notices":[{"type":"error","text":"You must upload an image file."}]}


updated by @nate: 04/03/15 02:35:09PM
nate
@nate
02/16/15 02:45:38PM
917 posts

Module Change Log


Suggestions

I'm only a year behind you now. lol
nate
@nate
02/16/15 02:01:09PM
917 posts

Module Change Log


Suggestions

I think a module change log file with version number tags might be helpful. It could include a text description and changed files.

You're probably doing this and I just haven't seen it yet. lol
updated by @nate: 03/18/15 08:28:50PM
nate
@nate
02/16/15 01:19:23PM
917 posts

Module Uploading Error


Jamroom Developers

I live, I learn. I'll rename the directory.
nate
@nate
02/16/15 12:56:03PM
917 posts

Module Uploading Error


Jamroom Developers

I never edited any of those files aside from removing the comments today. Also, I just switched to PhpStorm last Friday.
nate
@nate
02/16/15 12:06:05PM
917 posts

Module Uploading Error


Jamroom Developers

Removing the comments from every file in the Stripe class got it to pass inspection. That can't be the way it's suppose to work.




updated by @nate: 02/16/15 12:06:24PM
nate
@nate
02/16/15 11:02:22AM
917 posts

Module Uploading Error


Jamroom Developers

Also if these errors were also caught when creating the zip like they arwhen uploading it, could speed things up a bit.
nate
@nate
02/16/15 10:49:17AM
917 posts

PhpStorm


Off Topic

Some of that stuff is over my head but I need to finally learn it.

Thanks.
nate
@nate
02/16/15 10:00:58AM
917 posts

Module Uploading Error


Jamroom Developers

When trying to upload a new marketplace module I get the follwing error from the included Stripe library.

Quote:Errors were found in your upload:
PHP Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/jamroom/sites/www.jamroom.net/public_html/data/cache/jrNetworkMarket/TH1KTPfk/modules/n8MSOne/lib/Stripe/InvoiceItem.php on line 47 Errors parsing /home/jamroom/sites/www.jamroom.net/public_html/data/cache/jrNetworkMarket/TH1KTPfk/modules/n8MSOne/lib/Stripe/InvoiceItem.php

I see no errors in this file.

<?php

class Stripe_InvoiceItem extends Stripe_ApiResource
{
  /**
   * @param string $id The ID of the invoice item to retrieve.
   * @param string|null $apiKey
   *
   * @return Stripe_InvoiceItem
   */
  public static function retrieve($id, $apiKey=null)
  {
    $class = get_class();
    return self::_scopedRetrieve($class, $id, $apiKey);
  }

  /**
   * @param array|null $params
   * @param string|null $apiKey
   *
   * @return array An array of Stripe_InvoiceItems.
   */
  public static function all($params=null, $apiKey=null)
  {
    $class = get_class();
    return self::_scopedAll($class, $params, $apiKey);
  }

  /**
   * @param array|null $params
   * @param string|null $apiKey
   *
   * @return Stripe_InvoiceItem The created invoice item.
   */
  public static function create($params=null, $apiKey=null)
  {
    $class = get_class();
    return self::_scopedCreate($class, $params, $apiKey);
  }

  /**
   * @return Stripe_InvoiceItem The saved invoice item.
   */
  public function save()
  {
    $class = get_class();
    return self::_scopedSave($class);
  }

  /**
   * @return Stripe_InvoiceItem The deleted invoice item.
   */
  public function delete($params=null)
  {
    $class = get_class();
    return self::_scopedDelete($class, $params);
  }
}

updated by @nate: 03/23/15 12:51:30AM
nate
@nate
02/14/15 10:58:29PM
917 posts

PhpStorm


Off Topic

I set up a jamroom project to develop my modules. Now I get code hinting for all jamroom built in functions. Life is completely different now.
  64