smurfy / mwo-api-sample

Api sample for mwo.smurfy-net.de
14 stars 5 forks source link

Create xenForo #3

Closed DarkDeLaurel closed 10 years ago

DarkDeLaurel commented 10 years ago

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
smurfy commented 10 years ago

Thank you, could you add the infos you provided in the pull request to an readme.md file similar to the other forum plugins please?

DarkDeLaurel commented 10 years ago

ha, trying to but never have used Git before. Hench why i ended up deleting it right after once I realized it was trying to fork it.

smurfy commented 10 years ago

:)

DarkDeLaurel commented 10 years ago

Ok I think i got it working here https://github.com/DarkDeLaurel/mwo-api-sample/tree/master/forum-plugins/xenForo/xenForo now just not sure what to do with it.

smurfy commented 10 years ago

Thank you, i will merge the changes soon

DarkDeLaurel commented 10 years ago

Cool, hopefully I did everything correct. I do have some screenshots also to help people out but not sure how to add those.

smurfy commented 10 years ago

Merged manually and updated readme a bit