Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Chen Zhen

Releases & Version Updates / Re: Arcade
April 24, 2019, 09:01:54 pm
The latest stable version of the arcade is at this link:;area=stable_smf_arcade

You will see updated versions there.
If a new version is available it will show a notification in your Arcade admin main page.

The support board is here:
There are skin and list settings in the arcade admin and within the user profile.
In the admin you set the default skin and list settings (these are optional templates/styles).
A user with permission can set the skin and list to what they want which is saved to the database.

If you don't want a user to be able to adjust those settings then you go into your forum permissions and disable "Edit Arcade Settings" for that membergroup.
If you do that then the membergroup will only see the default setup.

You do not need to fool with any files via FTP or CPanel concerning installing games.
Tar compression (and its PEAR requirement if necessary) is provided by the arcade.
However, gzip compression will require the zlib extension within PHP.

Try changing the save type being provided by the arcade.
Go to the arcade & click on the "ARCHIVE" button, after which you can select another file type.
Try TAR or ZIP (not tar.gz).
The arcade will save the preference for your user id.

The function requires 3 arguments but it is being called using two arguments.
This shouldn't matter because the function's 3rd argument has a default of false.

Anyhow, you can do this edit to that file..
$_SESSION['qaction_data'] = installGames($install, $setCategory);

replace with:
$_SESSION['qaction_data'] = installGames($install, $setCategory, false);

I tested installing those games on a local site and they work fine for me.
Please download & use the attached file instead since there was a problem with the last file.

The problem is not with the arcade but with the gamepack format.
The author of the gamepack compressed a folder filled with other compressed archives.
This gamepack is likely made for IBP arcade installation and not really geared for SMF Arcade.

Since those gamepacks include some games not available in gamepacks here in the download section,
I will set them up properly and make them available.

Other gamepacks are available for the time being:;area=stable_smf_arcade_gamepacks

This was for a much older version of the arcade and was lost long ago.
What we can do is possible add the feature to a future version of the arcade.
However at this time other fixes and changes take precedence.
SMF Arcade Support + Plugins / Re: Auto Score Reset
April 12, 2019, 10:34:02 pm

A while back we lost a lot of the old mods/files including backups.
I could make it again but perhaps it would be better to add this option as an admin feature to the arcade.
Which gamepacks?
I will need to see an example for testing.

The undefined errors were due to me neglecting to define an array prior to using it.
This will be fixed in the next version release (already done to the beta).

I attached the admin file.
It is actually for the upcoming version but it should work for the version you are using.

Delete the concerned gamepacks from your Games directory.
Else try these 2 arcade maintenance options:
Quote from: undefinedPurge /home/napalmz0/public_html/Games Directory Of Compressed Archives
Purge /home/napalmz0/public_html/Games Directory Of Unused Game Folders

Try it again and let me know if you still have the same problem.

Zhen Mailer

Version 1.23

This version concerns changes for PHP 7.3 compatibility.

This installation process will add the following:

-> STARTTLS-SMTP compatibility for use of 3rd party email providers (SMF 2.0.X branch)
-> Database dumps that are forwarded to the webmaster email
-> Attachment backups to the webmaster email as they are posted
-> Options to encrypt any email attachments as compressed zip archives (requires PHP 7.2+ & ZipArchive)

Compatibility notes:
- PHP version 5.5 with the openssl PHP extension enabled is the minimum requirement for STARTTLS-SMTP compatibility
- ZipArchive extension is required for compression of any attachment backups
- PHP version 7.2+ with the ZipArchive extension is required for any archive encryption
- cURL extension is required for the scheduled database dumps option

This will allow your forum to use SMTP email using gmail, hotmail or yahoo mail.
PHP version 7.2+, ZipArchive & cURL extensions are recommended to make full use of this modification.

Updated CA certificates are required for your forum to communicate with email providers using the STARTTLS SMTP extension.
Example settings for your php.ini file may be:
openssl.cafile = /etc/ssl/cacert.pem
curl.cainfo = /etc/ssl/cacert.pem

You can download the latest cacert.pem file here:

Although it is not mandatory, a mail user named "members" should be created for BCC bulk emails.
SMTP port 587 is recommended.

Zhen Mailer for Simple Machines Forum
c/o Chen Zhen @
@license GNU Lesser General Public License
@copyright 2018 Chen Zhen

3rd Party Usage:
PHPMailer - PHP email creation and transport class.
@license GNU Lesser General Public License
@author    Marcus Bointon (Synchro/coolbru) <>
@copyright 2012 - 2017 Marcus Bointon

Shuttle-Export c/o 2createStudio
PHP based MySQL dump library
@license GNU Lesser General Public License
@copyright 2015 - 2017 2createStudio

Distributed under the GNU Lesser General Public License ->


I had forgotten that long ago I created a custom mb_substr function where PHP found it did not exist.
That custom function requires the length parameter which I neglected to include in some circumstances.

The problem for you is that the arcade has evolved and now relies on various multibyte functions.
This should not be a problem though as most host/server control panels allow enabling that extension.

Are you using Cpanel?

If so, try this...

How to Enable mbstring in cPanel

1) Login to cPanel.

2) Go to the section 'Software'.

3) Click the icon 'Select PHP Version'

4) Select the php extension 'mbstring'.

5) Click the button 'Save'.

If you do not see the option and have support for your website, I suggest writing them a ticket & ask for the mbstring extension to be enabled.

Either way, let me know if the problem is resolved or if you need further assistance.

If I remember correctly, substr was swapped out with mb_substr a while back but the length parameter was not added.
Odd thing is that I do not get this error.

The PHP manual shows that length and char encoding have defaults if not included.

I attached your file with that function edited to include the length parameter.

What PHP version are you using?
Spamblocker / Re: Spam Blocker Errors
March 22, 2019, 12:13:45 am

At the moment it says it is a valid key meaning it seems to be connecting.
Are you still having this issue or has it resolved on its own?
Spamblocker / Re: Spam Blocker Errors
March 22, 2019, 12:11:40 am

This happens when it fails to connect to the stop forum spam website.
Check your admin page to see if it says the p/w is valid for SFS.
If it says it is then it is connecting but I think it might not be.

Sometimes the issue is on their end.
Unless they recently changed something.
EhPortal Support / Re: Conversion from http to https
March 01, 2019, 11:50:58 pm

There are arcade settings for paths.
You need to adjust the arcade admin setting to use the https url path for games.

Are you still having a problem with this?