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

Reply
 
Thread Tools
Everquest 2 Postbit Mod Details »»
Everquest 2 Postbit Mod
Version: 1.00, by turnipofdoom turnipofdoom is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 02-12-2007 Last Update: Never Installs: 9
 
No support by the author.

This Modification will walk you through creating user profile fields that will output Everquest 2 icons in your users' postbit with the addition of the postbit_legacy template. The coding is very similar to a great WoW mod by gmrstudios, found here. This template modification will generate a total of five (5) icons for your users. I have provided the icons from Everquest 2 as well as personally created 1-100 icons for the Adventure and AA levels. The post

To begin, you'll need to add some new single selection menu fields. Make sure you note the assigned ID for each field added, you'll need it for coding input purposes. Also please make sure you remove the asterisks if you cut and paste or the input will not work. ^.^

First field:

Title: EQ2 Character Gender

Options:
  • Male
  • Female
---
Second field:

Title: EQ2 Character Race

Options:
  • Barbarian
  • Dark Elf
  • Dwarf
  • Erudite
  • Fae
  • Froglok
  • Gnome
  • Half Elf
  • Halfling
  • High Elf
  • Human
  • Iksar
  • Kerra
  • Ogre
  • Ratonga
  • Troll
  • Wood Elf
---
Third field:

Title: EQ2 Character Class

Options:
  • Assassin
  • Berserker
  • Brigand
  • Bruiser
  • Coercer
  • Conjuror
  • Defiler
  • Dirge
  • Fury
  • Guardian
  • Illusionist
  • Inquisitor
  • Monk
  • Mystic
  • Necromancer
  • Paladin
  • Ranger
  • Shadow Knight
  • Swashbuckler
  • Templar
  • Troubador
  • Warden
  • Warlock
  • Wizard
---
Fourth Field:

Title: EQ2 Tradeskill

Options:
  • Alchemist
  • Armorer
  • Carpenter
  • Jeweler
  • Provisioner
  • Sage
  • Tailor
  • Weaponsmith
  • Woodworker
---

Fifth Field:

Title: EQ2 Adventure Level

Options: (List numbers 1 through 70; see post below for cut and paste)

---
Sixth Field:

Title: EQ2 AA Level

Options: (List numbers 1AA through 100AA; see post below for cut and paste)

---

Now that you've created the fields, cut and pasted the information into the options box, and made note of the fieldID for each new userfield, we need to modify the postbit_legacy template in your current style:

Find:
Code:
<if condition="$show['avatar']"><div class="smallfont">&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></div></if>
Underneath, add:
Code:
<!-- EQ2 Postbit -->		
<if condition="$post[fieldA] && $post[fieldB]"><img src="images/$post[fieldA]_$post[fieldB].gif" alt="$post[fieldA] $post[fieldB]"></if>
<if condition="$post[fieldC]"><img src="images/$post[fieldC].gif" alt="$post[fieldC]"></if>
<if condition="$post[fieldD]"><img src="images/$post[fieldD].gif" alt="$post[fieldD]"></if>
<if condition="$post[fieldE]"><img src="images/$post[fieldE].gif" alt="$post[fieldE]"></if>
<if condition="$post[fieldF]"><img src="images/$post[fieldF].gif" alt="$post[fieldF]"></if>
<!-- / End EQ2 Postbit -->
Where fieldA = Race, fieldB = Gender, fieldC = Class, fieldD = Profession, fieldE = Adventure Level, and FieldF = AA Level (replace those with the ID given to you when creating the profile field.)

Now upload the attached icons to an appropriate image folder and change the img src coding to match the location. You should be set!

Demo

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 01-22-2008, 12:59 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found that I've lost my originals and expecting #4 I just don't have the time to create 140 new icons, so I've created a workaround that the users on my forums like:

Code:
<!-- EQ2 Postbit -->		
<if condition="$post[fieldA] && $post[fieldB]"><img src="images/$post[fieldA]_$post[fieldB].gif" alt="$post[fieldA] $post[fieldB]"></if>
<if condition="$post[fieldC]"><img src="images/$post[fieldC].gif" alt="$post[fieldC]"></if>
<if condition="$post[fieldD]"><img src="images/$post[fieldD].gif" alt="$post[fieldD]"></if>
<if condition="$post[fieldE]"><img src="images/$post[fieldE].gif" alt="$post[fieldE]"></if>
<if condition="$post[fieldF]"><img src="images/star.png" alt="$post[fieldF]" height="18" width="20"></if></div>
<!-- /End EQ2 Postbit -->

Simply put, it outputs a star icon for the AA level, upon mouseover you will still be able to view the actual number (just like you can for any of the icons.) You can use any image you like in that spot provided it looks good and scales correctly. At this point it's a huge improvement over the plain text above 100AA.

If anyone has created new icons and would like to contribute since I'm lacking in time, it would be appreciated. Sorry for the delay.
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 01:21 PM.


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.03662 seconds
  • Memory Usage 2,216KB
  • Queries Executed 17 (?)
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
  • (3)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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