Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Nubuilder 4.5
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Nubuilder 4.5
i have updated version to 4.5.
There are a lot of useful features. Great job! Tnx!
There are a lot of useful features. Great job! Tnx!
Wbr, miasoft.
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
@kev1n: Good Job.
Two non nudb files use the Null coalescing (??) operator not available in pre PHP 7 in nubuilder 4.5.
The minimum requirements are stated to be PHP 5.4.
Those using XAMPP v1.8.2.5 will have PHP 5.4.27.
These 2 files can be edited to work:
Change core/nucommon.php at line 249:
replacing it with:
Change nuform.php at line 1125:
replacing it with:
Wonder what replacing absence with null serves.
Replace the core/libs/nudb v5.0.4 with phpMyAdmin 4.0.10.17 and add in the attached config.inc.php in core/libs/nudb/ folder.
phpMyAdmin version is in the core/libs/nudb/ChangeLog file.
Please note that the default database name in nuconfig.php is still nubuilder4 with DBuser as nuadmin and DBPassword set as some text.
Two non nudb files use the Null coalescing (??) operator not available in pre PHP 7 in nubuilder 4.5.
The minimum requirements are stated to be PHP 5.4.
Those using XAMPP v1.8.2.5 will have PHP 5.4.27.
These 2 files can be edited to work:
Change core/nucommon.php at line 249:
Code: Select all
return $o[$k] ?? $d;
Code: Select all
return isset($o[$k]) ? $o[$k] : $d;
Code: Select all
$formAndSessionData->filter = $_POST['nuFilter'] ?? null;
Code: Select all
$formAndSessionData->filter = isset($_POST['nuFilter']) ? $_POST['nuFilter'] : null;
Replace the core/libs/nudb v5.0.4 with phpMyAdmin 4.0.10.17 and add in the attached config.inc.php in core/libs/nudb/ folder.
phpMyAdmin version is in the core/libs/nudb/ChangeLog file.
Please note that the default database name in nuconfig.php is still nubuilder4 with DBuser as nuadmin and DBPassword set as some text.
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Nubuilder 4.5
Thanks, I replaced the Null coalescing operator.apmuthu wrote:@kev1n: Good Job.
Two non nudb files use the Null coalescing (??) operator not available in pre PHP 7 in nubuilder 4.5.
The minimum requirements are stated to be PHP 5.4.
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
@kev1n: Thanks. Your commit does it.
Also use 1 INSERTstatement for each language in nubuilder4.sql.
Please re-release the v4.5.
Also use 1 INSERTstatement for each language in nubuilder4.sql.
Please re-release the v4.5.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Nubuilder 4.5
nubuilder4.sql is generated automatically. I don't have much control over its creation.apmuthu wrote: Also use 1 INSERTstatement for each language in nubuilder4.sql.
What would be the advantage of having separate insert statements? If you don't want to have all languages in your db, run some post-installation scripts to remove them
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
What is the process by which the nubuilder4.sql gets automatically created?
Having 1 insert per language can then allow for placing all language inserts in a separate lang folder and then selectively create the enduser nubuilder4.sql file with just the languages needed without any post install scripts. Mapping and managing translations would be easy for new language file creators.
Having 1 insert per language can then allow for placing all language inserts in a separate lang folder and then selectively create the enduser nubuilder4.sql file with just the languages needed without any post install scripts. Mapping and managing translations would be easy for new language file creators.
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
Attached are the changed files in dev v4.5 as of commit #267 replacing every leading 4 spaces with tab character
You do not have the required permissions to view the files attached to this post.
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
Duplicate German 3 Translations can be removed with:
Choosing to retain the later ones, committed by @kev1n as #268.
Identify duplicate strings with:
Code: Select all
DELETE FROM zzzzsys_translate WHERE zzzzsys_translate_id IN (
'nu5ec114f2585bf45',
'nu5ec114f2586fae8',
'nu5fe60f1c6b83a52'
);
Identify duplicate strings with:
Code: Select all
SELECT trl_language, trl_english, COUNT(*) AS records FROM `zzzzsys_translate`
GROUP BY trl_language, trl_english HAVING records > 1;
You do not have the required permissions to view the files attached to this post.
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Nubuilder 4.5
There is a Russian language string translation required for the English string "Font Weight". The current v4.5 sql has the following:
Насыщенность шрифта
Размер шрифта
Many translation engines come up with:
Вес шрифта
Any native Russians, please contribute the preferred translation.
Насыщенность шрифта
Размер шрифта
Many translation engines come up with:
Вес шрифта
Any native Russians, please contribute the preferred translation.
You do not have the required permissions to view the files attached to this post.