This is posted as a modification on vbulletin.org. Check it here:
http://www.vbulletin.org/forum/showthread.php?p=1811237
What id does:
If you own a World of Warcraft forum, this mod will look great in your forums. It shows a 3D Model of any world of warcraft toon provided that the user enteres it's information (zone,realm and name) in profile fields.
Demo:
Click Here
Installation:
Go to:
Admin CP > Styles and Templates > Style Manager > « » > Navigation / Breadcrumb Templates > Postbit Templates > postbit
Find:
PHP Code:
<div>
<!-- message, attachments, sig -->
Change it to:
PHP Code:
<div class="post_message_class">
<!-- message, attachments, sig -->
Find:
PHP Code:
<!-- message, attachments, sig -->
</td>
Change it to:
PHP Code:
<!-- message, attachments, sig -->
</div>
<div class="threedarmory_toon_info">
<if condition="$post[field5] AND $post[field6] AND $post[field7]">
<script type="text/javascript" src="http://www.3darmory.com/api/toon_detailed/<if condition="$post[field5] == 1">eu<else /><if condition="$post[field5] == 2">us</if></if>/$post[field6]/$post[field7]/150/150"></script>
</if>
</div>
</td>
Goto Admin CP > Styles and Templates > Style Manager > Main CSS > Additional CSS Definitions
Add this to additional css definitions field:
PHP Code:
.post_message_class
{
float:left;
width: 90%;
}
.threedarmory_toon_info
{
width: 10%;
float:right;
font-size: 0.7em;
}
Goto User Profile Fields > Add New User Profile Field > Add These:
- Multiple-Selection Menu: Zone
Options:- EU
- US
- Singe Line Text Box: Realm
- Singe Line Text Box: Toon Name
Notes:
In order to modification work;
- zone must be field6
- realm must be field7
- toon name must be field 8
if they do not match, update the fields accordingly in the modification's code.
Also don't forget to make CSS customizations and make it fit to your forum template.
API Documentation:
Check
http://www.3darmory.com/blog/api-documentation/
Updates:
0.2: API updated & changed the positioning
0.1: Initial version