Forum Activity for @softdesigns

SoftDesigns
@softdesigns
01/10/17 10:40:49AM
242 posts

Beginner - Simple Module


Jamroom Developers

It seems had to remove both: @ sign, as well as the © - Now the error is gone.
Thanks...
-----
The sample code in this help article may need to be updated, for others to avoid this bug:
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/26/creating-a-module
-----
Simple Code Below Working Now:
-----
<?php
/**
* 2017 SoftDesigns
*/

//Ensure this module not called directly:
defined('APP_DIR') or exit();

/**
 * meta
 */
function sdContestMWUser_meta(){
	$_tmp = array(
			'name'        => 'ContestMWUser',
			'url'         => 'ContestMWUser',
			'version'     => '1.0.0',
			'developer'   => 'SoftDesigns',
			'description' => 'Verify Contest User',
			'category'    => 'contest'
	);
	return $_tmp;
}

/**
 * init
 */
function sdContestMWUser_init(){	
	$_args = array(
			'sdKey1' => 'sdValue1',
			'sdKey2' => 'sdValue2'
	);	
	//jrCore_logger('sdContestMWUser', 
	//'This is the activity log message', $_array);	
	fdebug("sdContestMWUser_init", $_args);
	return true;
}

updated by @softdesigns: 01/10/17 10:42:49AM
SoftDesigns
@softdesigns
01/10/17 10:11:54AM
242 posts

Beginner - Simple Module


Jamroom Developers

We upload extremely simple module into our "modules" folder, but it crashes the ACP with this error:
-----
Error: Query Error: Incorrect string value: '\xA92017' for column 'module_developer' at row 1
-----
CODE: Most Simple Module - Just send test message to Debug log:
-----
1 FOLDER: sdContestMWUser
-----
1 FILE: INCLUDE.PHP:
-----
<?php
/**
* @copyright 2017 SoftDesigns, Inc.
*/

//Ensure this module not called directly:
defined('APP_DIR') or exit();

/**
 * meta
 */
function sdContestMWUser_meta(){
	$_tmp = array(
			'name'        => 'ContestMWUser',
			'url'         => 'ContestMWUser',
			'version'     => '1.0.0',
			'developer'   => 'SoftDesigns,Inc. ©' . strftime('%Y'),
			'description' => 'Verify Contest User',
			'category'    => 'contest'
	);
	return $_tmp;
}

/**
 * init
 */
function sdContestMWUser_init(){	
	$_args = array(
			'sdKey1' => 'sdValue1',
			'sdKey2' => 'sdValue2'
	);	
	fdebug("sdContestMWUser_init", $_args);
	return true;
}


Please Advise...
updated by @softdesigns: 04/13/17 08:13:19AM
  25