Jump to content


Welcome to DevFuse Forums


Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
 
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Jul 24 2011 07:36 AM
  • Date Updated: Jul 24 2011 07:45 AM
  • Views: 1650
 


Autocheck use first tag as prefix

A simple article to ensure the first tag used is always used as the topic prefix.

Posted by AndyF on Jul 24 2011 07:36 AM
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...
<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>

Replace with...
<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>

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

Here's a quick pic anyway:

Posted Image

Powered by Tutorials 1.5.1 © 2016, by Michael McCune