vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Torhead Tooltips and BBCode (https://vborg.vbsupport.ru/showthread.php?t=275732)

Dan 12-20-2011 11:00 PM

Torhead Tooltips and BBCode
 
1 Attachment(s)
Want to add BBCode to your forums so users can display abilities, items, missions, npcs, and schematics from Star Wars: The Old Republic?

http://tor.zamimg.com/torhead/images/logos/home.png

Torhead has you covered!

One template edit is required:
In headinclude add the following to the very bottom.
HTML Code:

<script>var framehead_tooltips = { "colorlinks": true, "iconizelinks": true }</script><script src="http://tor.zamimg.com/tooltips.js"></script>
There are 5 different BBCodes you can add to make it easier to link to the respective pages on Torhead, this also allows tooltips to be displayed where appropriate.

Title: Torhead Ability Links
BB Code Tag Name: ability
Replacement:
HTML Code:

<a href="http://www.torhead.com/ability/{param}">{param}</a>
Example: [ability]XS Freighter Flyby[/ability]
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Title: Torhead Item Links
BB Code Tag Name: item
Replacement:
HTML Code:

<a href="http://www.torhead.com/item/{param}">{param}</a>
Example: [item]Ace in the Hole[/item]
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Title: Torhead Mission Links
BB Code Tag Name: mission
Replacement:
HTML Code:

<a href="http://www.torhead.com/mission/{param}">{param}</a>
Example: [mission]You Can't Spend Infamy[/mission]
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Title: Torhead Schematic Links
BB Code Tag Name: schematic
Replacement:
HTML Code:

<a href="http://www.torhead.com/schematic/{param}">{param}</a>
Example: [schematic]Zez-Kai Ell's Double-Bladed Lightsaber[/schematic]
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Title: Torhead NPC Links
BB Code Tag Name: npc
Replacement:
HTML Code:

<a href="http://www.torhead.com/npc/{param}">{param}</a>
Example: [npc]Annihilation Droid XRR-3[/npc]
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes


Want more from Torhead? Check out our Embeddable Skill Calculator BBCode.

RiosJoe 12-22-2011 08:35 AM

Yay finally out :D! I installed it but the tool-tips are not working and everything looks right.

But then I noticed that it said vB Version: 4.1.9, so I might have to upgrade in that case to get it to work?

Chri5123 12-22-2011 12:51 PM

Looks awesome!

You say:

"In headinclude add the following to the very bottom."

Where do I find the headinclude file?

Chris

Gleedo 12-22-2011 12:55 PM

Quote:

Originally Posted by Chri5123 (Post 2280064)
Looks awesome!

You say:

"In headinclude add the following to the very bottom."

Where do I find the headinclude file?

Chris

Its the template 'headinclude'

goto admincp > style manager > then style you want to edit > Edit Templates

Then look for headinclude in the list.

HTH

thomrrsw 12-23-2011 09:01 AM

great work again :) Installed and in use on www.sithinquisitors.com

CnB 02-12-2012 02:43 PM

Not sure if its intended, i am assuming not.

But all i get is links to the site using those tags.

I am on latest Vb, not sure if its because of that.


All times are GMT. The time now is 07:21 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.01066 seconds
  • Memory Usage 1,732KB
  • 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
  • (6)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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