Back to vBulletin 3.0 Template Modifications

[SMF feature imitation] Personal text hack
Mod Version: 1.00, by Lea Verou

This modification is in the archives.
vB Version: 3.0.7 Rating: (1 vote - 5.00 average) Installs: 1
Released: 29 Aug 2005 Last Update: Never Downloads: 0
Not Supported Template Edits  

Hello, this is an easy and quick modification I made when I switched to vBbulletin from SMF cause I missed the personal text thing that SMF has.

What does it do?

It allows the user to type a small personal text in his options page and the text to be displayed under the avatar if he has one (if he doesn't have one then nothing is displayed) in both the postbit and the profile page.
Note that this is made only for the "classic" thread view and won't work with others as only the postbit_legacy template is modified.

How many file/template changes should I do? Is it difficult?


You won't have to edit any php file. Only 2 template modifications should be done and you will have to add a custom profile field via the vBulletin admin cp. normally i don't think it will take more than 5 minutes
The templates that will be edited are "postbit_legacy" and "MEMBERINFO".

Ok, tell me how to do it!


Lets start then!

Postbit_legacy:
Add
HTML Code:
<if condition="$post['field6']">
				 <div><font size="1">$post[field6] </font></div>
				</if>
under
HTML Code:
			<if condition="$show['avatar']">
				<div class="smallfont">
		 		&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
				</div>
MEMBERINFO:
Add
HTML Code:
<if condition="$post['field6']">
		 	 <font size="1"><br />$post[field6] </font>
				  </if>
under
HTML Code:
<tr valign="top">
			<if condition="$show['avatar']">
		 	<td><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
Before or after these changes create a single line textbox in the custom profile fields with name "field6" or if it gets another name change filed6 in the code to the field's name and in Which page displays this option? choose "Options: other" so that it's displayed in the options page and also not in the profile page like eg "Biography" Also set the maximum characters to a relatively small amount (I have it equal to 100 in my forum) so that the postbit doesn't get too large as there will always be somebody to post his whole life story in it! :P

I hope you like it cause it's my first mod. Any suggestions, bug report and questions are welcome!

Below I attach 2 screenshots so that you can see how it looks!

Sorry if such a mod has been posted before, I haven't come across any! However if you see a similar one I would appreciate it if you informed me!

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024