Tooltip Sharing

avatar
1 year, 4 months ago

To do the [item]Name[/item] you would have to actually have some software working with your forums to do the search and then insert the data. If anyone knows how to create phpBB plugins (or for that matter, any forum software plugins) we do have an XML search feed available.

avatar
1 year, 4 months ago

For those of you using phpbb 2.0.x

Open /includes/bbcode.php

FIND

	// [i] and [/i] for italicizing text.
	$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
	$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);

AFTER ADD

	// [item]Items[/item] code..
	$text = str_replace("[item:$uid]", $bbcode_tpl['item_open'], $text);
	$text = str_replace("[/item:$uid]", $bbcode_tpl['item_close'], $text);	

FIND

	// [i] and [/i] for italicizing text.
	$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);

AFTER ADD

	// [item]Item[/item] code..
	$text = preg_replace("#\[item\](.*?)\[/item\]#si", "[item:$uid]\\1[/item:$uid]", $text);	

In your templates folder.. open bbcode.tpl

FIND

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->

AFTER ADD

<!-- BEGIN item_open --><script type="text/javascript" src="http://www-en.curse-gaming.com/feeds/tooltips/7/<!-- END item_open -->
<!-- BEGIN item_close -->/tooltip.js"></script><!-- END item_close -->

In your templates folder.. open posting_bbcode.tpl

FIND

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');

Insert

,'[item]','[/item]'

in before the last bracket, so for example above would read:

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[item]','[/item]');

That should be all that's necessary on default phpbb installation, alhough if you are using any other MODS, in particular related to bbcode then the above may need to be altered.

Cheers

avatar
1 year, 4 months ago

heres the PNphpBB2 implementation of the bbcode for the Postnuke integrated version of phpBB2.

It requires the Multiple BBCode Buttons Organizer Mod which for the buttons to appear above the posting dialog (this mod is available freely from www.pnphpbbhacks.net)

Since the instructions are very detailed and ive found that most forums will destroy the scripting ill just link it to my download section of my guild forum. If any curse representivie feels like posting it in their download section i give them my permission.

This is the link (its a text file with instructions compressed in a zip file)

http://www.mimguild.com/index.php?name=Downloads&req=viewsdownload&sid=1

avatar
1 year, 4 months ago

Just a quick FYI to you guys, I've added your guides to our Item Tag HowTo: http://vg-en.curse-gaming.com/wiki/item-tag-how-to/...

If anyone else has one for their forum software they'd like to share, please do. Thanks a bunch for writing them up. :)

avatar
10 months, 2 weeks ago

Does anyone have the code to get this working with Media Wiki ? I'm actually looking to have something like this

http://www.ogn.org/index.php/Guild:Archive:WishList#Guidelines

thanks !

avatar
6 months, 2 weeks ago

Anyone know if this have been done yet? Running a multigame guildsite when they all want itemlinks is getting out of hand and single feed would be nice and clean since many of the members are already using curse for various reasons.

Page 2 of 2
Previous | 1 2 | Next

Quick Reply

You need to login or register to post comments.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.