Changelog:
2.0.0- Fixed a bug where if you removed all settings from the title but had a font size on it would not remove the font size.
- Got rid of all the plugin files, now there is only one file to upload
- Got rid of most template modifications. Only need to do one now.
OPEN SHOWTHREAD
Find:
-------
Code:
<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
</td>
</tr>
Add Beneath:
-------------
* If you set the options to not try to automatically do the template modifications you will need to do them manually. To do this please read the install file included in the zip. This should only be used if you have done a lot of hacking to the templates to where its just not working right for you. Otherwise it should work on just about any forum no matter how many modifications you made to the template.
Changelog:
1.0.2- Added a font select box, you can add more fonts in settings
- Added a size select box, you can add more sizes in settings.
- Added bitfields for permissions. You must set these in the usergroup manager as all are set to no by default.
Re-upload the files in the upload folder.
OPEN SHOWTHREAD
Find:
------
Code:
<script language="javascript">
<!-- Hide from older browsers
function hideAll() {
document.getElementById('tte_all').style.display='none';
}
function showTTE() {
document.getElementById('tte_all').style.display='block';
document.getElementById('tte_all').style.visibility='visible';
}
function SetColor(val) {
document.getElementById('colorthread').value=val;
}
// -->
</script>
Replace with:
-------------
Code:
<!-- Thread Title Enhancment -->
<if condition="$permissions[ttepermissions] & $vbulletin->bf_ugp[ttepermissions][can_beautify]">
<script language="javascript">
<!-- Hide from older browsers
function hideAll() {
document.getElementById('tte_all').style.display='none';
}
function showTTE() {
document.getElementById('tte_all').style.display='block';
document.getElementById('tte_all').style.visibility='visible';
}
function SetColor(val) {
document.getElementById('colorthread').value=val;
document.getElementById('titlepreview').style.color=val;
}
function SetFontPreview(){
var fontselectval = document.getElementById('fonttype').options[document.getElementById('fonttype').selectedIndex].value;
document.getElementById('titlepreview').style.fontFamily=fontselectval;
}
function Preview() {
if(document.getElementById('bold').checked == 1){
document.getElementById('titlepreview').style.fontWeight="bold";
}
else{
document.getElementById('titlepreview').style.fontWeight="normal";
}
if(document.getElementById('italic').checked == 1){
document.getElementById('titlepreview').style.fontStyle="italic";
}
else{
document.getElementById('titlepreview').style.fontStyle="normal";
}
if(document.getElementById('underline').checked == 1){
document.getElementById('titlepreview').style.textDecoration="underline";
}
else{
document.getElementById('titlepreview').style.textDecoration="none";
}
}
// -->
</script>
</if>
<!-- / Thread Title Enhancment -->
Find:
-------
Code:
<body onload="$onload hideAll();">
Replace With:
--------------
Code:
<body onload="$onload; <if condition="$vbulletin->bf_ugp['ttepermissions']['can_beautify']">hideAll();</if>">
Find:
-------
Code:
<!-- Thread Title Enhancment -->
<if condition="$show['adminoptions']">
<tr>
<td class="thead">Thread Cosmetics<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="tte_do"><input type="radio" name="do" id="tte_do" value="beautifythread" onClick="showTTE();" />Beautify</label></div>
<div id="tte_all">
Color:
<div style="padding-left:20px">
<input type="text" name="colorthread" value="$thread[tte_titletextcolor]" size="10" style="height: 12px">$colortable
</div>
Style:
<div style="padding-left:20px">
<label for="bold">
<input type="checkbox" <if condition="$thread[tte_boldflag] == '1'"> checked="checked"</if> id="bold" name="bold" value="1">Bold</label>
<label for="italic">
<input type="checkbox" <if condition="$thread[tte_italicflag] == '1'"> checked="checked"</if> id="italic" name="italic" value="1">Italicize</label>
<label for="underline">
<input type="checkbox" <if condition="$thread[tte_underlineflag] == '1'"> checked="checked"</if> id="underline" name="underline" value="1">Underline</label>
</div>
Font:
<div style="padding-left:20px">
Type: <input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="8" style="height: 12px">
Size: <input type="text" name="fontsize" value="<if condition="$thread[tte_titlefontsize] <> '0'">$thread[tte_titlefontsize]</if>" size="1" style="height: 12px">
</div>
</div>
<div><label for="tte_removeall"><input type="radio" name="do" id="tte_removeall" value="removeall"" />Remove All</label></div>
</td>
</tr>
</if>
<!-- / Thread Title Enhancment -->
Replace With:
--------------
Code:
<!-- Thread Title Enhancment -->
<if condition="$permissions[ttepermissions] & $vbulletin->bf_ugp[ttepermissions][can_beautify]">
<tr>
<td class="thead">Thread Cosmetics<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="tte_do"><input type="radio" name="do" id="tte_do" value="beautifythread" onClick="showTTE();" />Beautify</label></div>
<div id="tte_all">
Preview:
<div class="alt1" style="margin-left:20px; padding:3px;">
<div id="titlepreview" style="display: inline;
<if condition="$thread[tte_titletextcolor] != ''">color: $thread[tte_titletextcolor];</if>
<if condition="$thread[tte_boldflag] == '1'"> font-weight:bold;</if>
<if condition="$thread[tte_italicflag] == '1'"> font-style:italic;</if>
<if condition="$thread[tte_tte_underlineflag] == '1'"> text-decoration:underline;</if>
<if condition="$thread[tte_titlefonttype] != ''">font-family: $thread[tte_titlefonttype];</if>
<if condition="$thread[tte_titlefontsize] != ''">font-size:: $thread[tte_titlefontsize];</if>
">Preview</div>
</div>
Color:
<div style="margin-left:20px">
<input type="text" id="colorthread" name="colorthread" value="$thread[tte_titletextcolor]" size="14" style="height: 12px">
$colortable
</div>
Style:
<div style="margin-left:20px">
<label for="bold">
<input type="checkbox" <if condition="$thread[tte_boldflag] == '1'"> checked="checked"</if> id="bold" name="bold" onclick="Preview();" value="1">Bold</label>
<label for="italic">
<input type="checkbox" <if condition="$thread[tte_italicflag] == '1'"> checked="checked"</if> id="italic" name="italic" onclick="Preview();" value="1">Italicize</label>
<label for="underline">
<input type="checkbox" <if condition="$thread[tte_underlineflag] == '1'"> checked="checked"</if> id="underline" name="underline" onclick="Preview();" value="1">Underline</label>
</div>
Font:
<div style="margin-left:20px">
Type: $fonttype
Size: $fontsize
</div>
</div>
<div><label for="tte_removeall"><input type="radio" name="do" id="tte_removeall" value="removeall"" />Remove All</label></div>
</td>
</tr>
</if>
<!-- / Thread Title Enhancment -->
1.0.1- Fixed the underline, so if you do underline it does underline now.
- Added a color table, you can add your own colors
- Added font size
- to upgrade install the product file again (overwrite).
Re-upload the files in the upload folder.
In SHOWTHREAD template
Find:
Code:
function showTTE() {
document.getElementById('tte_all').style.display='block';
document.getElementById('tte_all').style.visibility='visible';
}
Add below:
Code:
function SetColor(val) {
document.getElementById('colorthread').value=val;
}
Find:
Code:
<input type="text" name="colorthread" value="$thread[tte_titletextcolor]" size="10" style="height: 12px">
Add After:
Find:
Code:
Font:
<div style="padding-left:20px">
<input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="10" style="height: 12px">
</div>
Code:
Replace:
Font:
<div style="padding-left:20px">
Type: <input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="8" style="height: 12px">
Size: <input type="text" name="fontsize" value="<if condition="$thread[tte_titlefontsize] <> '0'">$thread[tte_titlefontsize]</if>" size="1" style="height: 12px">
</div>
1.0.0- Make thread title Bold, Italic, Underline, Colored and change font.