Board Magic

Mijn extensies
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Board Magic

Bericht door SpIdErPiGgY »

Extensienaam: Board Magic
Versie: 1.0.7
Auteur: SpIdErPiGgY

Beschrijving:
Met deze extensie kan je template events, css & taal strings toevoegen of aanpassen - With this extension you can add or edit template events, css & language strings

Vereisten:
phpBB 3.2.X / phpBB 3.3.X
PHP 7.X / 8.X

format-zip
boardmagic107.zip
175.04 KiB - 136 keer gedownload
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

Some files missing in the zip

Code: Selecteer alles

Fatal error: Uncaught phpbb\language\exception\language_file_not_found: Language file ./../ext/solidjeuh/boardmagic/language/en/common.php couldn't be opened. in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language_file_loader.php:186 Stack trace: #0 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language_file_loader.php(143): phpbb\language\language_file_loader->get_language_file_path('./../ext/solidj...', 'common.php', Array) #1 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language_file_loader.php(103): phpbb\language\language_file_loader->load_file('./../ext/solidj...', 'common', Array, Array) #2 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language.php(643): phpbb\language\language_file_loader->load_extension('solidjeuh/board...', 'common', Array, Array) #3 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language.php(180): phpbb\language\language->load_extension('solidjeuh/board...', 'common') #4 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/user.php(566): phpbb\language\language->add_lang('common', 'solidjeuh/board...') #5 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/user.php(536): phpbb\user->set_lang('common', false, 'solidjeuh/board...') #6 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/user.php(588): phpbb\user->add_lang('common', false, false, 'solidjeuh/board...') #7 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/user.php(237): phpbb\user->add_lang_ext('solidjeuh/board...', 'common') #8 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/adm/index.php(31): phpbb\user->setup(NULL) #9 {main} thrown in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/forum/phpbb/language/language_file_loader.php on line 186
Capture d’écran 2024-01-16 à 04.03.02.png
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Re: Board Magic

Bericht door SpIdErPiGgY »

PaulS schreef: 16 jan 2024, 04:05 Some files missing in the zip
Oops, sorry. Re-uploaded the files.
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

Great.
How does this extension work? what is she supposed to do?
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Re: Board Magic

Bericht door SpIdErPiGgY »

PaulS schreef: 16 jan 2024, 18:15 Great.
How does this extension work? what is she supposed to do?
With this extension you can add or modify template events, css & language strings.
All template events are already in the extension. All ACP template events are also present.
It is also possible to add custom language strings. These will replace the standard phpBB language strings.
This extension will only be updated when new phpBB events are added in the standard phpBB software.
I use it on my live forum, and everything works perfectly!

How to use?

You can add html code via the style folder
/ext/solidjeuh/boardmagic/styles/all.
Al events are present.

The same goes for CSS, you can add code in:
/ext/solidjeuh/boardmagic/styles/all/theme/forumedits.css.

And add language strings via:
/ext/solidjeuh/boardmagic/language
Empty your forum + browser cache after editing the .css. When you edit .html, you only need to empty the forum cache.

So basicly you can modify your forum without editing core files.
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

Allright, thanks

Please delete this

Code: Selecteer alles

<!--// board3 Portal by www.board3.de //-->
Powered by <a href="https://www.board3.de/">Board3 Portal</a> &copy; 2009 - 2023 Board3 Group
in solidjeuh/boardmagic/styles/all/template/event/overall_footer_copyright_prepend.html
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Re: Board Magic

Bericht door SpIdErPiGgY »

Oops again. I was to fast with the upload.
my personal edits were in it... 😊😊
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

Hi
How to use this extension to translate the sentences of DEBUG?
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Re: Board Magic

Bericht door SpIdErPiGgY »

PaulS schreef: 24 feb 2024, 09:48 Hi
How to use this extension to translate the sentences of DEBUG?
The SQL report?
Good question... That somewere in phpBB, or your server...
Gonna take a look this this evening.. Worked whole night, I go to bed 😁 10 am... 🫣
Gebruikersavatar
faroud
Sponsor
Sponsor
Shoplifter
Shoplifter
Berichten: 13
Geregistreerd sinds: 5 maanden

Re: Board Magic

Bericht door faroud »

You can use Google Translator for that
or
Install an extension in your browser
If you work with Firefox
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

SpIdErPiGgY schreef: 24 feb 2024, 09:54 Worked whole night, I go to bed 10 am...
Thanks to you, there's no rush
faroud schreef: 24 feb 2024, 09:54 You can use Google Translator for that
Thanks faroud but that has nothing to do with the question
Gebruikersavatar
faroud
Sponsor
Sponsor
Shoplifter
Shoplifter
Berichten: 13
Geregistreerd sinds: 5 maanden

Re: Board Magic

Bericht door faroud »

apologies a bit too quickly want to answer
indeed is about an extension
Board Magic?
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

no worry
Gebruikersavatar
SpIdErPiGgY
Beheerder
Beheerder
Thief
Thief
Berichten: 38
Geregistreerd sinds: 6 maanden
Locatie: Erpe-Mere, Aalst, BE

Re: Board Magic

Bericht door SpIdErPiGgY »

PaulS schreef: 24 feb 2024, 09:48 Hi
How to use this extension to translate the sentences of DEBUG?
It's hardcoded in the phpBB software.
There are no language strings that can be translated.

/includes/functions.php

Code: Selecteer alles

	// Output page creation time
	if ($phpbb_container->getParameter('debug.load_time'))
	{
		if (isset($GLOBALS['starttime']))
		{
			$totaltime = microtime(true) - $GLOBALS['starttime'];
			$debug_info[] = sprintf('<span title="SQL time: %.3fs / PHP time: %.3fs">Time: %.3fs</span>', $db->get_sql_time(), ($totaltime - $db->get_sql_time()), $totaltime);
		}
	}

	if ($phpbb_container->getParameter('debug.memory'))
	{
		$memory_usage = memory_get_peak_usage();
		if ($memory_usage)
		{
			$memory_usage = get_formatted_filesize($memory_usage);

			$debug_info[] = 'Peak Memory Usage: ' . $memory_usage;
		}

		$debug_info[] = 'GZIP: ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off');

		if ($user->load)
		{
			$debug_info[] = 'Load: ' . $user->load;
		}
	}

	if ($phpbb_container->getParameter('debug.sql_explain'))
	{
		$debug_info[] = sprintf('<span title="Cached: %d">Queries: %d</span>', $db->sql_num_queries(true), $db->sql_num_queries());

		if ($auth->acl_get('a_'))
		{
			$debug_info[] = '<a href="' . build_url() . '&amp;explain=1">SQL Explain</a>';
		}
	}
Gebruikersavatar
PaulS
Gebruiker
Gebruiker
Shoplifter
Shoplifter
Berichten: 11
Geregistreerd sinds: 2 maanden

Re: Board Magic

Bericht door PaulS »

Yes I know and that's what I do but with each update you have to make bad changes again.
I was wondering if this translation could not be done with this extension, hard coding but by this extension.