DELETE FROM
command instead of TRUNCATE
so it should work in SQLite too/ext/mot/hangman
directorySorry not, your change is wrong.Mike-on-Tour wrote: ↑Tue Mar 09, 2021 1:03 pm ...
- ACP contains a button (and a warning notice since this is irreversible) to clear the highscore table (Thanks to RMcGirr83 for the PR). Following 3Di's hint on GitHub this is done with a
DELETE FROM
command instead ofTRUNCATE
so it should work in SQLite too
DELETE FROM
is correct for sqlite3
but not for all the other DMBS which use TRUNCATE TABLE
Code: Select all
switch ($db->get_sql_layer())
{
case 'sqlite3':
$db->sql_query('DELETE FROM ' . HANGMAN_SCORE_TABLE);
break;
default:
$db->sql_query('TRUNCATE TABLE ' . HANGMAN_SCORE_TABLE);
break;
}
class="inputbox autowidth"
<dd><input id="start_button" class="button" type="button" value="{{ lang('HANGMAN_NEW_QUOTE') }}" onclick="hangman_start();"></dd>
xxxx.de/ext/mot/hangman/styles/all/theme/images/hm4.svg
xxx.de/yyyyy/ext/mot/hangman/styles/all/theme/images/hm4.svg
bg2
to the input fields - in case you would like to see his changes.ROOT_PATH
variable in the hangman_game.js
file:
Code: Select all
var imagePath = '<img src="' + jsRootPath + 'ext/mot/hangman/styles/all/theme/images/hm';
hangman_game.html
file somewhere in the trailing script section:
Code: Select all
var jsRootPath = '{{ ROOT_PATH }}';
controller/main.php
file:
Code: Select all
trigger_error($this->language->lang('HANGMAN_WORD_EXISTS') . $this->back_link($this->u_action, $this->language->lang('BACK_TO_PREV')), E_USER_WARNING);
trigger_error
is a PHP function also used by phpBB core files and it uses some phpBB style stuff because with prosilver it looks like this (the wording is in German):
A wild guess would be that yours does come from inside one of phpBB's image folders, perhaps you've already found an easter egg? Code: Select all
var imagePath = '<img src="./ext/mot/hangman/styles/all/theme/images/hm';
Code: Select all
row1.innerHTML = row1.innerHTML + '<td><input type="button" class="post" id="' + letters[i] + '" value=" ' + letters[i] + ' " onclick="seek(\'' + letters[i] + '\');" class="alpha-butt"></td>';
}
for (i = letterRow; i < letterCount; i++) {
row2.innerHTML = row2.innerHTML + '<td><input type="button" class="post" id="' + letters[i] + '" value=" ' + letters[i] + ' " onclick="seek(\'' + letters[i] + '\');" class="alpha-butt"></td>';
}
Code: Select all
<dd><input id="start_button" class="button" type="button" value="{{ lang('HANGMAN_NEW_QUOTE') }}" onclick="hangman_start();"></dd>
Code: Select all
<textarea class="post" onfocus="word.blur();" name="word" cols="100" rows="2"> {L_HANGMAN_NEW_QUOTE_START}</textarea>
class="page_body",
don't know how it looks on prosilver but normal this does no file need.Code: Select all
<div id="page-body" class="page-body">
background: white;
thumbsUP!Mike-on-Tour wrote: ↑Sun Apr 04, 2021 5:23 pm but not now since I'm deep into developing the Usermap.