vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Does this Mod Exsist? (https://vborg.vbsupport.ru/showthread.php?t=179441)

vrokar 05-16-2008 01:43 PM

Does this Mod Exsist?
 
Ill try and keep this short. I run a World of Warcraft Guild site and Im looking for a mod that will automatically change the color of certain words found in the forums.

So for example. Theres 9 classes in WoW. Id like any character name mentioned in the site that is a hunter to show up in the hunter Green.

So lets say I have 10 members.

Vrokar - Warrior
Hagzrags - Priest
Chatoo - Priest
Hurgon - Shaman
Chubsy - Hunter
Nekroga - Hunter
Melchom - Warlock
Nasuk - Mage
Skevil - Mage
Jimmyjohn - Mage

Anytime the name Skevil, Jimmyjohn or Nasuk is mentioned they names would automatically show up mage blue. Id want to be able to add key words or names to these "Class" groups as well. Any way to do this? Or any mod you know of able to do this?

GameWizard 05-16-2008 01:51 PM

You can use Replacement Variables which are built into VB.

Style & Templates > Replacement Variable Manager

Simply search for the words desired and replace them with the same word, but wrapped in a color tag.

vrokar 05-16-2008 04:58 PM

Quote:

Originally Posted by GameWizard (Post 1521615)
You can use Replacement Variables which are built into VB.

Style & Templates > Replacement Variable Manager

Simply search for the words desired and replace them with the same word, but wrapped in a color tag.

Ahh ive tried that. When I do it rather then using the code and changing the color of the text it tosses it all in as text. So instead of Getting Druid I end up with (color="FF7C0A")Druid(/color)

DarkGizmo 05-16-2008 05:23 PM

Quote:

Originally Posted by vrokar (Post 1521795)
Ahh ive tried that. When I do it rather then using the code and changing the color of the text it tosses it all in as text. So instead of Getting Druid I end up with (color="FF7C0A")Druid(/color)

That is your problem right there....it should be: <font color="FF7C0A">Druid</font>

vrokar 05-16-2008 07:16 PM

Quote:

Originally Posted by NegativeSmoke (Post 1521818)
That is your problem right there....it should be: <font color="FF7C0A">Druid</font>

the ( ) were only used for an example. But ya adding "font" to it worked. Although ive never had to do that before. Odd. Next step... Need to add multiple listings of each and would rather not have a replacement variable for every single guild member. Any ideas?

GameWizard 05-17-2008 07:51 AM

I'm rather confused what you mean? What exactly are you trying to achieve?

I might be misinterpreting, but couldn't you achieve that by moving the users you wish to a secondary group which will override their current user title or what not to the one you wish?

vrokar 05-19-2008 11:58 AM

Quote:

Originally Posted by GameWizard (Post 1522389)
I'm rather confused what you mean? What exactly are you trying to achieve?

I might be misinterpreting, but couldn't you achieve that by moving the users you wish to a secondary group which will override their current user title or what not to the one you wish?

For the Forum Username yes. And that has already been done. But when their name is typed in a post or thread I want it to display the color based on the class of their in game character.

Now that I think of it. Couldnt I create a BB code? [class=priest]name here[/priest]

and have the bb code set to change the color to the standar class color?

GameWizard 05-19-2008 12:46 PM

Add a new BB Code:

1.1 -- Title: WoW Class Names
1.2 -- Tag: class
1.3 -- Replacement: <span class='{option}'>{param}</span>
1.4 -- Example: [class=priest]Priest[/class]
1.6 -- Use {option}: Yes

Add this to your Additional CSS:

.priest { color:#000000; }

Replace the color with the one you'd like. And then add the rest of the classes. I would suggest you also make buttons for each class from a dropdown, making it easier to select the class you are refering to.

[class=priest]Priest[/class]

The text in green refers to the actual style class which you are defining in your Additional CSS. Whilst the text in Red is the actual text that appears in your threads.

I hope this helps.

vrokar 05-19-2008 02:37 PM

Quote:

Originally Posted by GameWizard (Post 1524703)
Add a new BB Code:

1.1 -- Title: WoW Class Names
1.2 -- Tag: class
1.3 -- Replacement: <span class='{option}'>{param}</span>
1.4 -- Example: [class=priest]Priest[/class]
1.6 -- Use {option}: Yes

Add this to your Additional CSS:

.priest { color:#000000; }

Replace the color with the one you'd like. And then add the rest of the classes. I would suggest you also make buttons for each class from a dropdown, making it easier to select the class you are refering to.

[class=priest]Priest[/class]

The text in green refers to the actual style class which you are defining in your Additional CSS. Whilst the text in Red is the actual text that appears in your threads.

I hope this helps.

Is there a guide somehwere on how to add a dropdown to mesage editing/posting?


All times are GMT. The time now is 02:26 PM.

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.01075 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete