The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto Formatting of Text.
My question is regarding automatic formatting of text when users post on the forum using vBulletin 3.0.3.
A lot of people like to format their text every time they post. But they have to enter in the tags everytime >.< . So I was wondering if there is a way to let them have the ability to enter in somewhere the tags they would like applied to their post everytime. i.e - Put boxes in their profile or options page that are like the Username options found when Editing a Usergroups options, seen here : http://img20.echo.cx/img20/2031/autoformat2hn.gif Any help would be greatly appreciated Thank you edit realized I posted this in wrong forum. Sorry. |
#2
|
||||
|
||||
Alright, this is how I did it with version 3.0.3, so I don't know if it'll work on later releases.
First, you'll need to make four custom profile fields. Quote:
Quote:
Quote:
Quote:
Now, go to the postbit or postbit_legacy template and find "$post[message]" Replace that with: Code:
<!-- message --> <div id="intelliTxt"> <if condition="!empty($post['fieldW'])"> <font face="$post[fieldW]"> </if> <if condition="!empty($post['fieldX'])"> <font color="$post[fieldX]"> </if> <if condition="!empty($post['fieldY'])"> <font size="$post[fieldY]"> </if> <if condition="$post['fieldZ'] == 1"> <b> </if> <if condition="$post['fieldZ'] == 2"> <i> </if> <if condition="$post['fieldZ'] == 3"> <b><i> </if> $post[message] <if condition="$post['fieldZ'] == 3"> </b></i> </if> <if condition="$post['fieldZ'] == 2"> </i> </if> <if condition="$post['fieldZ'] == 1"> </b> </if> <if condition="!empty($post['fieldY'])"> </font> </if> <if condition="!empty($post['fieldX'])"> </font> </if> <if condition="!empty($post['fieldW'])"> </font> </if> </div> <!-- / message --> |
#3
|
|||
|
|||
sorry so late, just finding this.
Thank you very much for you help. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|