Sign in to follow this  
Followers 0

Autocheck use first tag as prefix


Description

A simple article to ensure the first tag used is always used as the topic prefix.
Here's a quick and very simple article on how to make the 'Use first tag as prefix' box checked by default to hopefully increase your members use of tags. :)

Members can uncheck it if they wish, I did consider hiding it but that negates it being there as this way they can opt out of using it if they still wish to use tags, it just serves as a helpful feature.

A tiny skin edit is needed.

ACP > Look / Feel > Skin Manager > (choose skin) > Manage Templates / CSS > Other Global Templates > TagTextEntryBox

Find...
[code]<if test="canPrefix:|:$options['prefixesEnabled']">
&nbsp;&nbsp;<span class="desc lighter"><input type="checkbox" value="1" name="{$options['fieldId']}_prefix" id="{$options['fieldId']}_prefix" <if test="prefixChecked:|:$tags['formatted']['prefix']">checked='checked'</if> /> {$this->lang->words['firsttagprefix']}</span>
</if>[/code]

Replace with...
[code]<if test="canPrefix:|:$options['prefixesEnabled']">
&nbsp;&nbsp;<span class="desc lighter"><input type="checkbox" checked="checked" value="1" name="{$options['fieldId']}_prefix" id="{$options['fieldId']}_prefix" <if test="prefixChecked:|:$tags['formatted']['prefix']">checked='checked'</if> /> {$this->lang->words['firsttagprefix']}</span>
</if>[/code]

Save the change. Repeat for other skins if required. :)

Here's a quick pic anyway:

[IMG]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/32_first_tag_default_1.png[/IMG]



0 Comments

There are no comments to display.