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

by George, Thursday, May 27, 2010, 15:56 (5089 days ago)

Hi!

I would like to know if it is possible that doesn't appear "Homepage:[______________________]" and "Location:[_______________]" when someone are trying to post a new topic.

How can I hide those elements?

Thanks

Help about hidding elements in the New Topic form?

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

Help about hidding elements in the New Topic form?

by George, Friday, May 28, 2010, 08:46 (5088 days ago) @ Mathias

Thank you very much, it works :)

RSS Feed of thread