Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: The Wizard - maaliskuu 02, 2014, 10:52:07 AP

Otsikko: package-info.xml question
Kirjoitti: The Wizard - maaliskuu 02, 2014, 10:52:07 AP
Hello:

I was wondering if the following code below will work, if not is there another way to do this, and are you allowed to do the following in package-info.xml -


$image1 = amy01.png;

<require-file name="big/', $image1,'" destination="$themedir/toy shop images/big" />


The reason I ask is I want to make a generic package-info.xml.

Thanks

Wiz
Otsikko: Re: package-info.xml question
Kirjoitti: TheKnown - maaliskuu 02, 2014, 11:03:31 AP
as for being allowed i cant see anything in guidelines saying its not allowed, also as for it working only way to know is to try :)
Otsikko: Re: package-info.xml question
Kirjoitti: margarett - maaliskuu 02, 2014, 11:07:52 AP
Never tried that, but look at this
http://www.developertutorials.com/tutorials/xml-tutorials/variable-substitution-1410/

I don't know whether PackMan will work with those or not...
Otsikko: Re: package-info.xml question
Kirjoitti: Herman's Mixen - maaliskuu 02, 2014, 11:36:01 AP
use parsebbc instead ;)

look at some of Bugo's mods which use this feature