PDA

View Full Version : Help with XML


MokeyII
09-12-2016, 02:16 PM
Hey guys,

I'm new to customizing Vbulletin and it's plugins.

I used to use a plugin for a site called "Smurfy's Mechlab" http://mwo.smurfy-net.de/

I the XML worked on 4.x.x but when I upgraded it to 5.2.3 it no longer works.

Here is the XML:
https://github.com/smurfy/mwo-api-sample/blob/master/forum-plugins/plugin_vbulletin_smurfycode/product-smurfy_bbcode_mechlab.xml

what it would do is show a loadout using a bbcode [smurfy], like so:

https://vborg.vbsupport.ru/external/2016/09/13.png

for this link http://mwo.smurfy-net.de/mechlab#i=309&l=3ad2a73e6d8a532941cddcad311085bf92673da3

I'm not sure if the developer is even still around and was wondering if anyone could help me fix this up so it works with vb 5.2.3.

Any help would be greatly appreciated.

Paul M
09-12-2016, 02:56 PM
This has nothing to actually do with XML.

Its a product that uses the vB4 hook system.
The XML is just how the product/plugin code gets imported into vB4.

That plugin system does not exist in vB5, so there isnt any way to just fix it, it would need redooing from scratch - either using vb5 extensions (if thats possible) or the newer vb5 hooks system (but thats probably going to need a new hook adding, which you would have to request and wait to be added to an upcoming release).

Replicant
09-12-2016, 06:29 PM
Where are these values coming from in the URL? I guess what I'm saying is how exactly are you using the bbcode? Example?
i=309
l=3ad2a73e6d8a532941cddcad311085bf92673da3

MokeyII
09-12-2016, 08:46 PM
Where are these values coming from in the URL? I guess what I'm saying is how exactly are you using the bbcode? Example?
i=309
l=3ad2a73e6d8a532941cddcad311085bf92673da3

From their site you can select a link with the BBcode:

Usage:
http://mwo.smurfy-net.de/mechlab#i=310&l=1d8b8c45bb717ccd1f89a45cfac14ce1615d0ff6

https://vborg.vbsupport.ru/external/2016/09/12.png

which is generated from the page:
http://mwo.smurfy-net.de/mechlab#i=310&l=1d8b8c45bb717ccd1f89a45cfac14ce1615d0ff6