I'm trying to add an additional field, I'm using this as an advanced form of bug reporting on my skin site.
I'm trying to add an input field for Skin Name, this is to appear directly below phpBB Version.
So, in posting.php I have added:
Code: Select all
$skinname = utf8_normalize_nfc(request_var('skinname', '', true ));
Code: Select all
$phpbbversion = utf8_normalize_nfc(request_var('phpbbversion', '', true ));
Code: Select all
$s1 = $user->lang['STS_SKINNAME'];
Code: Select all
$u1 = $user->lang['STS_PHPBBVERSION'];
Code: Select all
$messagetemp .= "[b]" . $s1 . "[/b] " . $skinname . "\n";
Code: Select all
$messagetemp .= "[b]" . $u1 . "[/b] " . $phpbbversion . "\n";
Code: Select all
'STS_SKINNAME' => ($preview || $submit) ? request_var('skinname', '', true) : 'I am using',
Code: Select all
'STS_PHPBBVERSION' => ($preview || $submit) ? request_var('phpbbversion', '', true) : '3.0.',
ADDED:
Code: Select all
<dl>
<dt><label for="skinname">{L_STS_SKINNAME}</label></dt>
<dd><input type="text" name="skiname" size="45" maxlength="40" value="{STS_SKINNAME}" class="inputbox autowidth" /></dd>
</dl>
Code: Select all
<dl>
<dt><label for="phpbbversion">{L_STS_PHPBBVERSION}</label></dt>
<dd><input type="text" name="phpbbversion" size="45" maxlength="10" value="{STS_PHPBBVERSION}" class="inputbox autowidth" /></dd>
</dl>
ADDED:
Code: Select all
'STS_SKINNAME' => 'Name Of Skin Used:',
Code: Select all
'STS_PHPBBVERSION' => 'Your phpBB Version:',
I have the input box with the title of:
Name Of Skin Used:
The input box has the pre-entered:
"I am using"
When I submit a test topic the value of 'Name Of Skin Used' is not being carried over to the topic, what have I missed?
I'm not overly confident with coding so it is likely I have made a fairly stupid mistake, I know something is wrong with this:
Code: Select all
$s1 = $user->lang['STS_SKINNAME'];
I hope you can help, this is a great mod.