Go Back   3D Armory Word Of Warcraft Forums > The Armory > API & Tool Discussion

API & Tool Discussion Want to ask about our API & Tools?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2009, 11:26 AM
nution's Avatar
nution nution is offline
Administrator
 
Join Date: May 2009
Posts: 32
Default Using 3DArmory API on your Vbulletin Forums

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>
    <!-- 
messageattachmentssig --> 
Change it to:
PHP Code:
<div class="post_message_class">
    <!-- 
messageattachmentssig --> 
Find:
PHP Code:
<!-- messageattachmentssig -->
    </
td
Change it to:
PHP Code:
<!-- messageattachmentssig -->
</
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;
width90%;
}

.
threedarmory_toon_info
{
width10%;
float:right;
font-size0.7em;

Goto User Profile Fields > Add New User Profile Field > Add These:
  • Multiple-Selection Menu: Zone
    Options:
    1. EU
    2. 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
__________________
3DArmory.com Developer

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by nution; 07-31-2009 at 09:58 PM.
Reply With Quote
View nution's Profile   View nution's Photo Album   Add nution's to Your Contacts

Alt Today
Advertising
Google Adsense
 
This advertising will not be shown
in this way to registered members.
Register your free account today
and become a member on
3D Armory Word Of Warcraft Forums
Standard Sponsored Links

Reply

Thread Tools
Display Modes

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 03:40 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
3DArmory, 2009