vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   World of Warcraft Profile Mod (https://vborg.vbsupport.ru/showthread.php?t=120182)

gmrstudios 07-02-2006 10:00 PM

World of Warcraft Profile Mod
 
Begin by adding the appropriate profile fields:

Admincp > User Profile Fields > Add New User Profile Field > Single-Selection Menu

Character Gender: - Single-Selection Menu

Male
Female

Character Race: - Single-Selection Menu

Dwarf
Gnome
Human
Night Elf
Orc
Tauren
Troll
Undead

Character Class: - Single-Selection Menu

Druid
Hunter
Mage
Paladin
Priest
Rogue
Shaman
Warlock
Warrior

Character Faction: - Single-Selection Menu

Alliance
Horde

Profession 1: - Single-Selection Menu

Alchemy
Blacksmithing
Enchanting
Engineering
Herbalism
Leatherworking
Mining
Skinning
Tailoring

Profession 2: - Single-Selection Menu

Alchemy
Blacksmithing
Enchanting
Engineering
Herbalism
Leatherworking
Mining
Skinning
Tailoring

When thats complete find your postbit_legacy template by going to Admincp > Styles & Templates > Postbit Templates > postbit_legacy

Find:
Code:

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Place the following code after it:
Code:

<if condition="$post[field#]"><img src="images/$post[field#].gif" alt="$post[field10]"></if>
<if condition="$post[field#race] && $post[field#gender]"><img src="images/$post[field#race]_$post[field#gender].gif" alt="$post[field#race] $post[field#gender]"></if>
<if condition="$post[field#]"><img src="images/$post[field#].gif" alt="$post[field9]"></if>
<if condition="$post[field#]"><img src="images/$post[field#].gif" alt="$post[field11]"></if>
<if condition="$post[field#]"><img src="images/$post[field#].gif" alt="$post[field12]"></if>

When your done just edit the [field#] to match those in your User Profiles Manager and edit the img src location to the folder of your choice.

Special Thanks to peterska2 for bringing this mod into prime time.

I have included the images I used on my forums for your convenience.

http://www.ilterendi.net/example.jpg

SMO 07-03-2006 12:07 AM

hey...that is very cool.. i like the work in it. I dont play WoW but dang..that is a avery ncie mod for those that do

Injektilo 07-03-2006 12:35 AM

thats not good for big boards... 30 + conditional statements is way too many... ermmm, there is another way to do this

Bad Bunny 07-03-2006 01:19 AM

Well, that looks really cool. lol Maybe it would be kinda bad with so many conditionals...but it's hard to measure what strain conditionals put on the server.

Great work though.

gmrstudios 07-03-2006 01:54 AM

Great! I am a vbb noob and if there is a better way I am all ears :)

Cole2026 07-03-2006 02:19 AM

You could reduce the amount of ifs by naming the selection as the name of the image, example:
PHP Code:

    <if condition="$post['field10']"><img src="images/$post[field10].gif" alt="$post[field10]"></if> 

As you can see, if you would set the name of the image to the selection, you could save yourself ALOT of different ifs. :)

Tork64 07-03-2006 03:57 AM

holy this is getting installed for sure :)

Edit: nevermind i figured it out on my own :)

DoKoK 07-03-2006 08:47 PM

I did everything as you stated, but for some reason nothing shows up....

my site: http://en-raptured.com/main/

Stifler 07-04-2006 04:41 AM

Quote:

Originally Posted by DoKoK
I did everything as you stated, but for some reason nothing shows up....

my site: http://en-raptured.com/main/

your in "postbit" mode, chang your site to "postbit legacy" because thats where you made the modifications.

Daniel 07-04-2006 06:23 AM

Installed, thanks.


All times are GMT. The time now is 05:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01222 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete