Help about hidding elements in the New Topic form? (General)

by Mathias, Friday, May 28, 2010, 06:15 (5088 days ago) @ George

Hi!

You could edit the subtemplate-file for postings.

In version 2.2.1:
/themes/default/subtempletes/posting.inc.tpl.
Remove these lines:

<p>
<label for="hp" class="input">{#hp_marking#}</label>
<input id="hp" type="text" size="40" name="hp" value="{if $hp}{$hp}{/if}" maxlength="{$settings.hp_maxlength}" tabindex="3" />&nbsp;<span class="xsmall">{#optional#}</span>
</p>

<p>
<label for="location" class="input">{#location_marking#}</label>
<input id="location" type="text" size="40" name="location" value="{if $location}{$location}{/if}" maxlength="{$settings.location_maxlength}" tabindex="4" />&nbsp;<span class="xsmall">{#optional#}</span>
</p>

or (ver. 2.1.1)
/themes/default/subtempletes/posting.tpl.inc.

<tr>
<td><label for="hp" class="main">{#hp_marking#}</label></td><td><input id="hp" type="text" size="40" name="hp" value="{if $hp}{$hp}{/if}" maxlength="{$settings.hp_maxlength}" tabindex="3" />&nbsp;<span class="xsmall">{#optional#}</span></td>
</tr>
<tr>
<td><label for="location" class="main">{#location_marking#}</label></td><td><input id="location" type="text" size="40" name="location" value="{if $location}{$location}{/if}" maxlength="{$settings.location_maxlength}" tabindex="4" />&nbsp;<span class="xsmall">{#optional#}</span></td>
</tr>

Greeting, Mathias


Complete thread:

 RSS Feed of thread