smurfy/mwo-api-sample — pull request #3 by DarkDeLaaurel (2014-04-29 15:10:36+00:00)
Title: Create xenForo

Admin CP -> Home -> BB Code Media Sites -> Add BB Code Media Site

Media Site ID: smurfy

Site Title: Smurfy

Site URL: http://mwo.smurfy-net.de/

Match URLs: #http://mwo\.smurfy-net\.de/mechlab\#(?Pi=[0-9]+&l=[a-z0-9]+)$#siU

Embed HTML:

Code:

Then under Advanced Options:

Use 'Match URLs' as PCRE regular expressions: (checked)

URL Match Callback: MediaSites_Smurfy::extractParams

Embed HTML Callback: MediaSites_Smurfy::buildEmbed

And you need to upload the attached file to this location:

library/MediaSites/Smurfy.php