Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread title enhancement Details »»
Thread title enhancement
Version: 2.0.0, by Kungfu Kungfu is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 02-07-2007 Last Update: 05-29-2007 Installs: 52
DB Changes Template Edits
Additional Files  
No support by the author.

Thread title enhancement
To use this i recommend uninstalling Thread cosmetics if you have it installed already. Im not really sure what this might do to have them both. Also disable vbplaza if you have not already. It should work ok with vbplaza, but its not a good idea to have it enabled.

To use this you will see under the thread drop down menu Thread Cosmetics, just like the hack below had. You must click Beautify and then update to update the values.

Install takes about 5 minutes


Description:

Thread title enhancement will let you Italicize, Bold, Underline, Color or set a Font to a thread title.

Inspiration / Thanks:

Well i liked how you could do this in vbplaza. Then there was another hack to do this without having to use points. https://vborg.vbsupport.ru/showthread.php?t=131913 , i actually modified that hack and took the portion from vbplaza to make this. Its a little bit better as it will work in any browser that i know of. I thank paul41598 and vbplaza. Only reason i made this was so i could have the colored stuff again without having vbplaza installed due to the exploits. Im not sure if it will ever come back.


Support:

I wont be supporting this hack that much, its basically going to be as is. I may add more features later on.
Version 1.0.2 is probably my last update, if anyone wants to expand on this hack they may.

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.
  • If you want to upgrade you will basically need to start all over, reverse all template changes. Reinstall the product. Delete all files in the plugins folder. Only file that needs to be uploaded is includes\xml\bitfield_tte.xml. All template modifications have changed as well. You can leave them there if you like but make sure to shut off the auto template modification in the TTE options.
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.
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
1.0.0
  • Make thread title Bold, Italic, Underline, Colored and change font.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-08-2007, 03:21 AM
Kungfu Kungfu is offline
 
Join Date: Dec 2005
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
-------------
Code:
$beautifyoptions

* 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:
    Code:
    $colortable

    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.
Reply With Quote
  #3  
Old 02-08-2007, 06:06 AM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Very Nice
Reply With Quote
  #4  
Old 02-08-2007, 07:50 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. Installed


Reply With Quote
  #5  
Old 02-08-2007, 04:26 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I first I thought this was like some of the others, but this is far better. Excellent idea.
Reply With Quote
  #6  
Old 02-08-2007, 11:58 PM
parrot5 parrot5 is offline
 
Join Date: Dec 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it working either. Do I need to rebuild forum cache (or similar) after installation? I see the Beautify enhancements in the Thread Tool. All the messages are fine too. But I don't see the effects added.
Reply With Quote
  #7  
Old 02-09-2007, 01:04 AM
Kungfu Kungfu is offline
 
Join Date: Dec 2005
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by parrot5 View Post
I can't get it working either. Do I need to rebuild forum cache (or similar) after installation? I see the Beautify enhancements in the Thread Tool. All the messages are fine too. But I don't see the effects added.
im sorry i left out 1 template mod. The one that makes it like that. Ill add it to the product and re-upload it as well. Thats what happens when you upload it before you get any sleep.

In Threadbit
Find:
Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
Replace with:
Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
Reply With Quote
  #8  
Old 02-09-2007, 01:10 AM
Kungfu Kungfu is offline
 
Join Date: Dec 2005
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FunaGuy View Post
Its not working

Help me in this
<body onload="$onload; vbImageResize(); hideAll();">

I am also using image resize mod
All this should do is hide the options. This is basically do to how the plugin is setup so you have to click the beautify radio button and then update to save the settings. So if the options are hidden you should be ok.

Just do the last template mod i forgot to add and it should work.
Reply With Quote
  #9  
Old 02-09-2007, 01:41 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Creative idea!
Ill bookmark could look nice in some ways
Reply With Quote
  #10  
Old 02-09-2007, 01:53 AM
parrot5 parrot5 is offline
 
Join Date: Dec 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kungfu View Post
im sorry i left out 1 template mod. The one that makes it like that. Ill add it to the product and re-upload it as well. Thats what happens when you upload it before you get any sleep.
After that bit of modifying, your mod works perfectly. I have been searching for months for a mod like this! Thanks a bunch!!

For the ease of use for my crew though, I might modify it so that the colours can be chosen instead of typed in... but I understand that your method gives the most flexibility.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04974 seconds
  • Memory Usage 2,330KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (16)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete