News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Looking for a little help

Started by Digital-Wraith, November 03, 2005, 07:19:05 AM

Previous topic - Next topic

Digital-Wraith

I have a mod for PHPBB and I want to use it in SMF

Here is the mod code

OPEN
{forum_root}/include/bbcode.php

FIND
define("BBCODE_UID_LEN", 10);

ADD-AFTER
include('./itemstats/phpbb_itemstats.php');

FIND
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;

ADD-AFTER
// Parse text for ItemStats mod
$text = itemstats_parse($text);

SAVE AND CLOSE
{forum_root}/include/bbcode.php

OPEN
{forum_root}/templates/subSilver/overall_header.tpl

FIND
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->

ADD-AFTER
<link rel="stylesheet" href="itemstats/templates/itemstats.css" type="text/css">
<script type="text/javascript" src="itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>

SAVE AND CLOSE
{forum_root}/templates/subSilver/overall_header.tpl


can anyone help?

Thanks

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Digital-Wraith

This is a mod that allows you to list World of Warcraft items in your forums and allow it to use the Allakhazam mouse over

- New [item][/item] bbcode which creates item colored links to Allakhazam with mouse over tooltip. (The bbcode won't appear as a button in the posting screen like other bbcodes, you'll need to manually type out the codes in your message, ex. [item]Uber Item of Dragon Killing[/item])

here is a link to the mod working on another protal system

hxxp:fc-guild.org/forum/index.php?action=vthread&forum=3&topic=92 [nonactive]

JayBachatero

In 1.1 its really easy to add bbc tags.  If you want you can send me the full mod with all the files included and i can take a shot at it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: