PDA

View Full Version : [HELP][vB3] including vb4 in product


Dr.CustUmz
03-05-2016, 10:12 AM
when vB4 first was released I recall seeing a few mods that in their xml had options for if vb3 do this, if vb4 do that, but that was years ago and their are so many products now i cant imagine what products had this so i can use them for reference.

So my question is how can i do this in my product files for templates, plugins, etc..

i know thiers:
<dependencies>
<dependency dependencytype="vbulletin" minversion="3.0" maxversion="3.99" />
</dependencies>

but what im trying to accomplish is more along these lines:

<templates>
<template dependencytype="vbulletin" minversion="4.0" maxversion="4.9"><![CDATA[

vB4 Template

]]></template>
</templates>
<template dependencytype="vbulletin" minversion="3.0" maxversion="3.9"><![CDATA[

vB3 Template

]]></template>
</templates>
<plugins>
<plugin dependencytype="vbulletin" minversion="4.0" maxversion="4.9">
<title><![CDATA[Plugn Titile]]></title>
<hookname>HOOK</hookname>
<phpcode><![CDATA[

vB4 PLUGIN

]]></phpcode>
<plugin dependencytype="vbulletin" minversion="3.0" maxversion="3.9">
<title><![CDATA[Plugn Titile]]></title>
<hookname>HOOK</hookname>
<phpcode><![CDATA[

vB3 PLUGIN

]]></phpcode>
</plugin>
</plugins>

and typing this out now, I wonder "hey is this the way its done... makes sense to me".

any help =)