MyBB Community Forums

Full Version: Developer Tools 0.2 BETA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2018-08-11, 05:49 PM)Wildcard Wrote: [ -> ]Ah, I see the confusion now.

[Image: dvK2v9o.png]

I update the version number in the OP when it changes.

I did see that part, but often users make changes to their posts for minor things like misspellings.
MyBB Developer Tools 0.0.3 ALPHA Released

Fixes:
  • incompatibilities with PostgreSQL
  • a bug where the lorem ipsum generator was incorrectly referenced
  • a bug where the RAND() MySQL function was used on PostgreSQL systems even thought it doesn't exist.
  • a bug where MySQL database systems gave an error due to a misplaced semicolon
  • a bug where line numbers in the code window didn't match error messages
To upgrade: Uninstall and re-install. There will be no upgrade script during the alpha stage
Developer Tools 0.0.4 ALPHA Released

Changes:
  • added AJAX w/ modal input to the PHiddle interface
  • added the option to assign a referrer for users created using the module (for testing purposes)
  • sandbox now assigns folders for each admin to keep everything separate
  • upgraded installer class
Fixes:
  • an issue where installation where server permissions may prevent image and style sheet installation
  • a bug where some simply named functions could cause conflicts
To upgrade: Uninstall in ACP and install. There will be no upgrade during the alpha stage.
Developer Tools 0.1 BETA Released

Changes:
  • now uses the language system
  • code cleanup/efficiency checks/code comments
  • added an option to the create threads module to allow images to posted in created threads
  • added an option to the create users module to control whether the module includes banned users to be used as thread/post authors
  • added title to PHiddle page to make it easier to see which project is currently being edited
  • now the toolbar is visible in both the PHP and output tabs
Fixes:
  • a bug where the create user name avatars module was broken due to improperly set user avatar fields
  • a bug where the load button caused broken features when there are no projects to load
  • a bug where the delete button caused broken features when there are no projects to delete
  • a bug where the save as button was broken due to changes in the XMLHTTP routing

To upgrade: Uninstall and re-install. There will be no upgrade script during the beta stage.
Developer Tools 0.2 BETA Released

[Image: uoXd0Pp.png]


Changes:
  • improve user name avatar module aesthetics (allow initials or full name, solid or gradient background, etc.)
  • now focuses on code window when PHiddle is loaded
  • now double-click on a PHiddle to load it
  • normalized change state
  • now PHiddles are sorted alphabetically
  • upgrade ExternalModule class stack
  • upgrade StorableObject class stack
Fixes:
  • a bug where when saving PHiddles, duplicate entries with blank titles were created


To upgrade: uninstall, overwrite the existing files, and reinstall. There will be no upgrade script in this phase.
Not sure if this plugin is still being developed but I've got an error being thrown when trying to use some tools.

Create Threads:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in C:\xampp\htdocs\mybbrpg\inc\datahandler.php:207 Stack trace: #0 C:\xampp\htdocs\mybbrpg\inc\datahandlers\post.php(355): DataHandler->verify_yesno_option(NULL, 'signature', 0) #1 C:\xampp\htdocs\mybbrpg\inc\datahandlers\post.php(1436): PostDataHandler->verify_options() #2 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_threads.php(170): PostDataHandler->validate_thread() #3 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_threads.php(108): developer_tools_create_threads_my_create_thread(11, 'Lorem Ipsum Dol...', 1673980325, Array) #4 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\ExternalModule020000.php(115): developer_tools_create_threads_execute(Array) #5 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\DeveloperToolsAcpModule.php(34): ExternalModule020000->run('execute', Array) #6 C:\xampp\htdocs\mybbrpg\admin\modules\developer_tools\index.php(56): DeveloperToolsAcpModule->execute(Array) #7 C:\xampp\htdocs\mybbrpg\admin\index.php(830): require('C:\\xampp\\htdocs...') #8 {main} thrown in C:\xampp\htdocs\mybbrpg\inc\datahandler.php on line 207

Create User Name Avatars
Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php:263 Stack trace: #0 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php(118): dtGetBackgroundImage(Array) #1 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\ExternalModule020000.php(115): developer_tools_create_username_avatars_execute(Array) #2 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\DeveloperToolsAcpModule.php(34): ExternalModule020000->run('execute', Array) #3 C:\xampp\htdocs\mybbrpg\admin\modules\developer_tools\index.php(56): DeveloperToolsAcpModule->execute(Array) #4 C:\xampp\htdocs\mybbrpg\admin\index.php(830): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php on line 263

MyBB Version: 1.8.33
PHP Version: 8.1.12
SQL Engine: MySQLi 10.4.27
(2023-01-17, 06:34 PM)Taylor M Wrote: [ -> ]Create Threads:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in C:\xampp\htdocs\mybbrpg\inc\datahandler.php:207 Stack trace: #0 C:\xampp\htdocs\mybbrpg\inc\datahandlers\post.php(355): DataHandler->verify_yesno_option(NULL, 'signature', 0) #1 C:\xampp\htdocs\mybbrpg\inc\datahandlers\post.php(1436): PostDataHandler->verify_options() #2 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_threads.php(170): PostDataHandler->validate_thread() #3 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_threads.php(108): developer_tools_create_threads_my_create_thread(11, 'Lorem Ipsum Dol...', 1673980325, Array) #4 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\ExternalModule020000.php(115): developer_tools_create_threads_execute(Array) #5 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\DeveloperToolsAcpModule.php(34): ExternalModule020000->run('execute', Array) #6 C:\xampp\htdocs\mybbrpg\admin\modules\developer_tools\index.php(56): DeveloperToolsAcpModule->execute(Array) #7 C:\xampp\htdocs\mybbrpg\admin\index.php(830): require('C:\\xampp\\htdocs...') #8 {main} thrown in C:\xampp\htdocs\mybbrpg\inc\datahandler.php on line 207
Replace "C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_threads.php" with the attached one.
[attachment=45726]

(2023-01-17, 06:34 PM)Taylor M Wrote: [ -> ]Create User Name Avatars
Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php:263 Stack trace: #0 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php(118): dtGetBackgroundImage(Array) #1 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\ExternalModule020000.php(115): developer_tools_create_username_avatars_execute(Array) #2 C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\classes\DeveloperToolsAcpModule.php(34): ExternalModule020000->run('execute', Array) #3 C:\xampp\htdocs\mybbrpg\admin\modules\developer_tools\index.php(56): DeveloperToolsAcpModule->execute(Array) #4 C:\xampp\htdocs\mybbrpg\admin\index.php(830): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\mybbrpg\inc\plugins\developer_tools\modules\create_username_avatars.php on line 263

Enable GD on your xampp installation => https://www.geeksforgeeks.org/how-to-ins...-in-xampp/
That worked like a charm for create threads, thank you!

However, the avatars one still throws the error with GD on.
Could you check your php info gd is enabled??
=> /admin/index.php?module=tools-php_info

[attachment=45727]
looks to be enabled?

[attachment=45728]
Pages: 1 2