Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Daniel15 on January 05, 2007, 11:29:08 PM

Title: SMF Package Parser - Source code now available!
Post by: Daniel15 on January 05, 2007, 11:29:08 PM
Hi everyone,
Recently, I combined my package-info and modification parsers into one script: The Package Parser. Basically, you upload a packaged SMF modification to this script, and it will tell you how to install or uninstall the package :). This is great if you don't understand the XML format, or you just want a way to see exactly what changes a package will do (in case you have to do changes manually).
In addition, there's an option to only show theme edits, in the case that you want to edit your theme to support a mod.

Please go to http://modparser.dev.dansoftaustralia.net/ to use the package parser. Note that it's in beta at the moment, so there may be small bugs (there shouldn't be any major bugs, though).

Please tell me what you think, and if you encounter any bugs  :D

Update 2007-03-22: After a long delay, the source code for the SMF Package Parser is now available! Please see http://modparser.dev.dansoftaustralia.net/about.php (temporary homepage) for more information :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Dannii on January 05, 2007, 11:30:40 PM
It doesn't seem to actually parse the submitted file :P
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: directtech on January 08, 2007, 06:19:58 PM
Cool, thanks!  I just used it and it worked for me.  Very nice.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 08, 2007, 08:56:35 PM
Quote from: eldʌkaː on January 05, 2007, 11:30:40 PM
It doesn't seem to actually parse the submitted file :P
Do you get any errors?

Quote from: directtech on January 08, 2007, 06:19:58 PM
Cool, thanks!  I just used it and it worked for me.  Very nice.
Thank you :). Please tell me if you have any suggestions :D
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Dannii on January 09, 2007, 05:31:11 AM
No, it just parses another mod than what I submitted.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 09, 2007, 05:37:44 AM
QuoteNo, it just parses another mod than what I submitted.
This is because it extracts the archive to a temporary directory, and then checks for a package-info.xml file. Since I forgot to make it empty the temporary directory after use, if the package doesn't have a package-info.xml file, it will use an old one :P
I'll change the code so it removes all the files after use :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: aglioeolio on January 09, 2007, 07:16:44 AM
NICE!! thats usefull for me

This will save me a lot of time, thanks

Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: dcmouser on January 09, 2007, 08:14:38 AM
Very useful, thanks!
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: 4LP3RUZ1 on January 09, 2007, 08:39:53 AM
this is going to be a major major life-saver if a Turkish version is made, whaddaya think? (pm if neccesary)

oh and I tried it with my mod, and I don't think it likes foreign characters :D The UTF-8 version of the mod passes thru fine, but otherwise I get these:

QuoteWarning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 184: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xF6 0x73 0x74 0x65 in /var/www/smf/package.php on line 360

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: $txt['enable_mini_avatars'] = 'Mesaj indeksinde minik avatar g�sterimini etkinle in /var/www/smf/package.php on line 360

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 360

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/smf/package.php:360 Stack trace: #0 /var/www/smf/package.php(360): SimpleXMLElement->__construct('<?xml version="...') #1 /var/www/smf/package.php(329): parseModificationXML('/tmp/smf_xml/mo...', Object(SimpleXMLElement), 'all') #2 /var/www/smf/package.php(49): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all') #3 /var/www/smf/package.php(631): parseArchive('/tmp/phpSFohJG', 'install', 'all') #4 {main} thrown in /var/www/smf/package.php on line 360
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 09, 2007, 10:59:36 PM
No problem, guys :)

Quotethis is going to be a major major life-saver if a Turkish version is made, whaddaya think? (pm if neccesary)
I'll try to make it use language files, similar to what SMF does (currently, all text is hard-coded). Once I do this, I'll tell you ;).

Quoteoh and I tried it with my mod, and I don't think it likes foreign characters  The UTF-8 version of the mod passes thru fine, but otherwise I get these:
I'm using PHP 5's SimpleXML functions, and it looks like it only likes UTF-8 input:
QuoteInput is not proper UTF-8
There's no real way for me to fix this, other than use a different XML parser...
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Kapadokyalı on January 13, 2007, 06:31:31 PM
Thanks Daniel15.

Turkish SMF Support (Modifikasyonlar)
http://www.simplemachines.org/community/index.php?topic=142332.0
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 13, 2007, 09:30:04 PM
Anyone willing to translate? I've edited the script to use a language file, and attached the language file here. Once I get a few languages, I'll add a "Choose Language" dropdown.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: richiehale on January 13, 2007, 09:47:08 PM
just tried to follow the link and got...

Warning: require_once(/var/www/smf/languages/package.english.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/smf/package.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '/var/www/smf/languages/package.english.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/smf/package.php on line 5
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 14, 2007, 01:08:57 AM
richiehale, I've fixed that problem, it was due to a stupid mistake by me (I accidentally wrote package.english.php instead of english.php).
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: 4LP3RUZ1 on January 14, 2007, 04:04:27 AM
here is the turkish file

pm me if something doesn't look correct, the way Turkish is causes some of the sentence structures to be awkward, however I'm pretty sure it is okay as it is.

New file uploaded! In UTF-8, should solve character problems!
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 14, 2007, 05:34:09 AM
OK, thanks alperuzi, I'll implement this it as soon as I can (probably not until tommorow)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Gr@fiker on January 14, 2007, 02:03:44 PM
thanks alperuzi


where iz download links  :'(   ::)  :-[ :-X
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: EAGLE_MINTER on January 18, 2007, 03:29:17 PM
thanks daniel...    wery good... 
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Visualcode on January 18, 2007, 09:11:50 PM
I just keep getting: parseArchive(): No package-info.xml in this mod! Is it corrupted?

My mods are fine, so I don't know why I get the message.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 18, 2007, 09:19:53 PM
OK, I've almost finished implementing Turkish, but I'm having some problems with characters not displaying properly: http://server.daniel15.com/smf/package-dev.php?lang=turkish

Visualcode, are the mod's files in a directory inside the archive? The parser expects the package-info.xml to be in the root of the archive (you may have problems with SMF if the files are all inside a folder)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: auroramae on January 18, 2007, 09:48:11 PM
Ok - this is very cool.  I am too stupid to figure out the XML files  I don't have time to try it tonight but it is just what I am looking for to apply 2 mods that are giving me headaches.

HURRAY.... THANK YOU!
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Visualcode on January 19, 2007, 12:49:54 AM
Ah, I see. I have had no problems with my mods being in a folder, on SMF. It seems for your parser though, that was the problem.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 19, 2007, 05:03:01 AM
QuoteNew file uploaded! In UTF-8, should solve character problems!
Thanks for the fix alperuzi, it seems to work fine :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Sindorf on January 19, 2007, 06:08:12 AM
Quote from: Daniel15 on January 19, 2007, 05:03:01 AM
QuoteNew file uploaded! In UTF-8, should solve character problems!
Thanks for the fix alperuzi, it seems to work fine :)

Working like a charm! :) Thanks Alperuzi and Daniel15 :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: TechnoDragon on January 19, 2007, 08:43:05 AM
Very Awesome utility!

I have it now bookmarked for useful utilities
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Alan S on January 20, 2007, 12:47:36 PM
It worked perfectly when try vbgamers Staff Page Mod , but when i tried Karlbesons WikiBBC Code mod i got the following errors

Quote
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 9: parser error : xmlParseEntityRef: no name in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <readme type="inline">For 1.1 versions RC1, RC2 & RC3 in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 24: parser error : Opening and ending tag mismatch: uninstall line 23 and readme in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: type="inline">This will remove the Alternative Wikipedia BBCode support</readme in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 27: parser error : Opening and ending tag mismatch: package-info line 3 and uninstall in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: </uninstall> in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 28: parser error : Extra content at the end of the document in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: </package-info> in /var/www/smf/package.php on line 77

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 77

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/smf/package.php:77 Stack trace: #0 /var/www/smf/package.php(77): SimpleXMLElement->__construct('<?xml version="...') #1 /var/www/smf/package.php(54): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'theme') #2 /var/www/smf/package.php(642): parseArchive('/tmp/phpt1XiAD', 'install', 'theme') #3 {main} thrown in /var/www/smf/package.php on line 77
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on January 20, 2007, 08:03:28 PM
Alan S, it looks like the & in the readme is causing that (the SimpleXML parser is very strict about things like that)
Are you talking about this mod: http://custom.simplemachines.org/mods/index.php?mod=434? I just tried it out, and while I don't get that error, I get another one:
QuoteWarning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/smf/package.php on line 364

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: com<?xml version="1.0"?> in /var/www/smf/package.php on line 364

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /var/www/smf/package.php on line 364

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/smf/package.php:364 Stack trace: #0 /var/www/smf/package.php(364): SimpleXMLElement->__construct('com<?xml versio...') #1 /var/www/smf/package.php(333): parseModificationXML('/tmp/smf_xml/wi...', Object(SimpleXMLElement), 'all') #2 /var/www/smf/package.php(54): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all') #3 /var/www/smf/package.php(642): parseArchive('/tmp/phpouG3Pq', 'install', 'all') #4 {main} thrown in /var/www/smf/package.php on line 364

This is because the wiki.xml file is malformed (the first line is com<?xml version="1.0"?>, the com shouldn't be there). I'll contact the author about it :).

This reminds me, I really need to implement better error checking :P
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: ZeroSkill on February 11, 2007, 10:53:46 AM
Worked great for me. Just installed PostBox Increase Decrease mod :D
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: heavyccasey on February 11, 2007, 10:55:45 PM
It doesn't parse BoardMods. Do you have any plans to implement them?
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on February 12, 2007, 03:57:15 AM
Quote from: ZeroSkill on February 11, 2007, 10:53:46 AM
Worked great for me. Just installed PostBox Increase Decrease mod :D
Glad to hear it works for you, and glad to see you're trying my mods :D

Quote from: heavyccasey on February 11, 2007, 10:55:45 PM
It doesn't parse BoardMods. Do you have any plans to implement them?
Not in the near future. I use a XML parser inbuilt to PHP (SimpleXML) to parse the XML files. BoardMod requires a custom-written parser. I could use the parser that the Package Manager uses, but I don't have time to implement this at the moment ;)

In general, no new mods should be using BoardMod - XML is preferred ;)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: OutofOrder on February 12, 2007, 07:02:20 AM
Hi, terrific idea & work there :)
I tried uploading gobaloppers' location mod:
QuoteModifications to SMF files
Error: Modification XML file (/tmp/smf_xml/smf1.1.xinstall.xml) doesn't exist!
I guess that's because of the mod itself, right? What should be done in order to fix it? I'm really looking forward to use this tool to install this mod with my theme.   :o


Then i went back and tried with the "PM on registration" mod.
QuoteERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /var/www/smf/package.php:93
Errors encountered while parsing XML file:

Stack Trace:
#0 /var/www/smf/package.php(93): SimpleXMLElement->__construct('')
#1 /var/www/smf/package.php(54): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all')
#2 /var/www/smf/package.php(707): parseArchive('/tmp/php2xun59', 'install', 'all')
#3 {main}

XML File:
After that it showed an empty space.

I tried it with MemberAwards Mod and it worked perfectly.

Finally, here's a spanish.php file i translated. Had to play with some phrases because grammar is sometimes different ( i.e. we don't say "Installation instructions", we kinda say "Instructions of installation" -or else, it doesn't make sense-. That's why i replaced the phrase with "Installation: Instructions for ...." which makes a lot more sense :) )
You might think the translation ain't reliable, that's why i'll go to the spanish forums to ask some people to come to the thread and validate it :)
Hope it works.

Spanish.php : http://m00.laughingllamas.com/fileupload/index.php?act=dl&file=c3BhbmlzaHBocC56aXAuemlw
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on February 13, 2007, 03:40:52 AM
OutofOrder, I'll take a look at that later (the first error), and see what's causing it. It looks like the / from the path is being removed, but I'm not sure what could be causing this. When I have more free time, I'll take a look at it :)

For the "PM on Registration" mod, it could possibly be because the mod is inside a seperate folder in the ZIP file. While SMF doesn't mind this, my parser does (due to the way it handles files). If you like, extract all the files in the ZIP, open the directory, and then recompress all the files (so they're in the 'root' of the archive).


Thanks for the Spanish translation, I'll implement it as soon as possible ;)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: margarett on February 15, 2007, 10:00:19 AM
Portuguese translation

http://www.badongo.com/file/2243494
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on February 16, 2007, 03:41:25 AM
I've added the Spanish translation

Quote from: margarett on February 15, 2007, 10:00:19 AM
Portuguese translation

http://www.badongo.com/file/2243494
That download isn't working for me. Could you please email me the translation? My email address is daniel15 [-at-] simplemachines ([dot]) org ([-at-] is @, ([dot]) is .)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: margarett on February 16, 2007, 04:53:39 AM
Sent ;)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: OutofOrder on February 16, 2007, 06:50:33 AM
Quote from: Daniel15 on February 13, 2007, 03:40:52 AM
OutofOrder, I'll take a look at that later (the first error), and see what's causing it. It looks like the / from the path is being removed, but I'm not sure what could be causing this. When I have more free time, I'll take a look at it :)
I think you're right. The path should be
.../smf1.1.x/install.xml
Perhaps you've forgotten to add/parse a slash somewhere.  :-X :-X
Anyway i hope you can fix it, and please post back if you do. Thanks in advance.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: ZeroSkill on February 23, 2007, 08:33:18 AM
When package parser will be updated for SMF 1.1.2 ? :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on February 23, 2007, 08:35:48 AM
Quote from: ZeroSkill on February 23, 2007, 08:33:18 AM
When package parser will be updated for SMF 1.1.2 ? :)
Oops, I forgot about that :P
It's a very easy change, I'll fix it right now :)
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Neol on February 26, 2007, 02:04:27 AM
Quote from: Daniel15 on February 12, 2007, 03:57:15 AM
Quote from: heavyccasey on February 11, 2007, 10:55:45 PM
It doesn't parse BoardMods. Do you have any plans to implement them?
Not in the near future. I use a XML parser inbuilt to PHP (SimpleXML) to parse the XML files. BoardMod requires a custom-written parser. I could use the parser that the Package Manager uses, but I don't have time to implement this at the moment ;)

You mean parseBoardMod()?

http://support.simplemachines.org/function_db/index.php?action=view_function;function=327
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on February 26, 2007, 05:25:50 AM
Quote from: Zeri YT! on February 26, 2007, 02:04:27 AM
Quote from: Daniel15 on February 12, 2007, 03:57:15 AM
Quote from: heavyccasey on February 11, 2007, 10:55:45 PM
It doesn't parse BoardMods. Do you have any plans to implement them?
Not in the near future. I use a XML parser inbuilt to PHP (SimpleXML) to parse the XML files. BoardMod requires a custom-written parser. I could use the parser that the Package Manager uses, but I don't have time to implement this at the moment ;)

You mean parseBoardMod()?

http://support.simplemachines.org/function_db/index.php?action=view_function;function=327

Yep, that's the one :).
I'm currently not using any SMF functions, other than read_tgz_data and read_zip_data. I may implement the BoardMod stuff, but it's not a big priority for me (I designed this to be an XML parser, after all ;))
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Neol on March 01, 2007, 01:56:07 AM
Quote from: Daniel15 on February 26, 2007, 05:25:50 AM
I may implement the BoardMod stuff, but it's not a big priority for me...

...but it may be for other people. :)

For example, I was about to use your parser on TinyPortal's .mod file to see what changes it makes, so that I can modify another mod to work with TP.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: The One on March 20, 2007, 10:21:59 AM
Where can I download this package parser from?
I don't always have access to the net and would like to test and debug on my comp when offline also.
Title: Re: SMF Package Parser - The perfect utility for installing mods manually
Post by: Daniel15 on March 21, 2007, 01:12:33 AM
Quote from: The One on March 20, 2007, 10:21:59 AM
Where can I download this package parser from?
I don't always have access to the net and would like to test and debug on my comp when offline also.
Thanks for reminding me ;)
The source will be released within a week or so ;)
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on March 22, 2007, 05:47:49 AM
OK, as I promised, the source code is now available. The SMF Package Parser has a new home at http://modparser.dev.dansoftaustralia.net/, and http://modparser.dev.dansoftaustralia.net/about.php is a temporary homepage for it (until I have free time to do a real one). :)
Title: Re: SMF Package Parser - Source code now available!
Post by: findallinone on March 22, 2007, 12:50:03 PM
When i make this theme http://custom.simplemachines.org/themes/index.php?lemma=80 my forum default theme,automatically SMForum places the code wherever you(package parser) suggested,after placing the code also ads are not displaying in all places(only displaying after 1st post correctly).What are the reasons? How to display ads in all places? http://findallinone.com/forums/
Title: Re: SMF Package Parser - Source code now available!
Post by: The One on March 24, 2007, 01:06:40 AM
Quote from: Daniel15 on March 22, 2007, 05:47:49 AM
OK, as I promised, the source code is now available. The SMF Package Parser has a new home at http://modparser.dev.dansoftaustralia.net/, and http://modparser.dev.dansoftaustralia.net/about.php is a temporary homepage for it (until I have free time to do a real one). :)
Just one weird thought :).
Can this be released as a mod? Looking at the requirements this requires SMF so I was wondering...
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on March 24, 2007, 05:25:56 AM
QuoteCan this be released as a mod? Looking at the requirements this requires SMF so I was wondering...
Most people use this parser because, for whatever reason, they can't install packages. Making it a package would defeat the purpose :P

Also, all a mod would really do is copy the files over - Something easily done via FTP ;)

QuoteWhen i make this theme http://custom.simplemachines.org/themes/index.php?lemma=80 my forum default theme,automatically SMForum places the code wherever you(package parser) suggested,after placing the code also ads are not displaying in all places(only displaying after 1st post correctly).What are the reasons? How to display ads in all places? http://findallinone.com/forums/
This relates to that mod, and not to this parser. Please post all support questions in the topic for said mod.
Title: Re: SMF Package Parser - Source code now available!
Post by: tones_ie on March 24, 2007, 05:33:18 PM
@ Daniel15  Thank u so much for a GREAT script....now i can prolly solve most of my own probs...lol   thanks man
Title: Re: SMF Package Parser - Source code now available!
Post by: vbgamer45 on March 24, 2007, 08:05:31 PM
Works great added it to http://www.smfhacks.com
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on March 24, 2007, 08:58:49 PM
Quote from: tones_ie on March 24, 2007, 05:33:18 PM
@ Daniel15  Thank u so much for a GREAT script....now i can prolly solve most of my own probs...lol   thanks man
Thanks :D

Quote from: vbgamer45 on March 24, 2007, 08:05:31 PM
Works great added it to http://www.smfhacks.com
Nice :). As you probably noticed, there's not much documentation, and not that many comments in the code - I never intended to release it publicly...

(oh, and speaking of smfhacks.com, how come I can't reply to news posts on smfhacks.com? The reply button doesn't appear for me)
Title: Re: SMF Package Parser - Source code now available!
Post by: vbgamer45 on March 24, 2007, 09:20:56 PM
Yeah didn't want people to say things on news used to have it till people will posting garbage.
Title: Re: SMF Package Parser - Source code now available!
Post by: Sheer Progress on April 02, 2007, 03:37:45 PM
Just tried to install ImageShack through the parser and got this error:

Installation instructions for SMF versions: 1.1, 1.1.1, 1.1.2
Error: Readme file (/tmp/smf_xml/DocsSISv203_readme.txt) doesn't exist!
Readme:

Notice: Undefined variable: readme in /home/groups/modparser/htdocs/index.php on line 232


PHP script to execute: Modfiles/SISv202_add_settings.php
Modifications to SMF files
Error: Modification XML file (/tmp/smf_xml/ModfilesSimpleImageShack_203b.xml) doesn't exist!

What does this all mean?
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on April 02, 2007, 11:39:49 PM
QuotePHP script to execute: Modfiles/SISv202_add_settings.php
Modifications to SMF files
Error: Modification XML file (/tmp/smf_xml/ModfilesSimpleImageShack_203b.xml) doesn't exist!
Ah, that's a bug which isn't fixed yet (I haven't had time to fix it  :-[)
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on April 17, 2007, 06:59:25 AM
Sorry guys, but the SMF Package Parser will be down for a few days. The reason is that it's hosted off my home ADSL connection, and the phone line is currently being repaired. Until the telephone company (Telstra) repairs the phone line, the server will be down (and when I'm at home, I will not have any Internet access)

Sorry for the inconvenience ;).
Title: Re: SMF Package Parser - Source code now available!
Post by: Aes-Sedai on April 17, 2007, 07:23:07 PM
Well, we all know what Telstra's like.
Could be weeks, guys! :P

Daniel, if you want the SMF Mod Parser up and running, until then I could host it on my server, I don't have a problem.
Title: Re: SMF Package Parser - Source code now available!
Post by: SleePy on April 17, 2007, 10:34:49 PM
I have it as a beta at my site
http://sleepycode.com/index.php?action=modparser
Also have his old ones there as well  :P
http://sleepycode.com/index.php?action=pack
http://sleepycode.com/index.php?action=mod
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on April 18, 2007, 01:20:28 AM
QuoteDaniel, if you want the SMF Mod Parser up and running, until then I could host it on my server, I don't have a problem.
Well, I could host it on my website (daniel15.com, which uses PHP 5)...
I'll have to wait until Friday to get the code anyways (that server is at my mum's house, I'm at my dad's house at the moment ;)).
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on April 20, 2007, 04:44:03 AM
Quote from: Aes-Sedai on April 17, 2007, 07:23:07 PM
Well, we all know what Telstra's like.
Could be weeks, guys! :P
Well...
I got to my mum's house today, and it suddenly started working again. So, all's well again (I hope it stays this way :P)
Title: Re: SMF Package Parser - Source code now available!
Post by: xenovanis on May 19, 2007, 04:02:04 PM
Daniel15, if you're interested, I attached the dutch translation  ;)
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on May 19, 2007, 09:43:50 PM
Thanks for that xenovanis, I added your translation :)
Title: Re: SMF Package Parser - Source code now available!
Post by: 4LP3RUZ1 on June 23, 2007, 10:45:18 AM
Is the package parser gone? or is it temporary?
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on June 23, 2007, 11:14:38 AM
It's temporary, until I have the time to fix everything up. The server it was hosted on had a hard drive failure, and I'm in the process of setting everything up on a new server (I don't have much free time, so it's taking a while).

For now, use one of the versions other people are hosting:
http://www.smfhacks.com/smf-package-parser.html
http://sleepycode.com/index.php?action=modparser
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on July 01, 2007, 05:09:17 AM
The SMF package parser is now back up :)
Title: Re: SMF Package Parser - Source code now available!
Post by: TrueSatan on July 01, 2007, 06:00:45 AM
Thanks Daniel...is your source code for the latest version available again?
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on July 01, 2007, 07:45:57 AM
TrueSatan, yes, the released source code for the Package Parser is available from http://dev.dansoftaustralia.net/frs/?group_id=12, and the very latest code (contains some small fixes as well as the XSLT stylesheets I'm working on) is available via SVN (see http://dev.dansoftaustralia.net/scm/?group_id=12)
Title: Re: SMF Package Parser - Source code now available!
Post by: TrueSatan on July 01, 2007, 10:59:50 AM
Thanks again Daniel...I'll get a tortoise (Tortoise SVN) to pay a visit.
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on July 02, 2007, 01:17:50 AM
I've also got an SVN browser available at http://dev.dansoftaustralia.net/plugins/scmsvn/viewcvs.php/trunk/?root=modparser :)

The XSLT stylesheets in that directory, they're kinda related... Take a look at [Beta] XSLT stylesheets for Modification XML files - Make them look pretty (http://www.simplemachines.org/community/index.php?topic=167679.0) for information about them :)
Title: Re: SMF Package Parser - Source code now available!
Post by: tiger5226 on January 08, 2008, 09:11:23 PM
Thanks A lot dan. Is it going to support 1.1.4
Title: Re: SMF Package Parser - Source code now available!
Post by: Daniel15 on January 08, 2008, 09:13:37 PM
Sure, it's a very simple change so I'll update it really soon :)
Title: Re: SMF Package Parser - Source code now available!
Post by: TheGreat on January 31, 2009, 02:29:23 AM
uPdate for 1.17?
Title: Re: SMF Package Parser - Source code now available!
Post by: DisturbedIndividual on February 11, 2009, 04:42:34 AM
Is it compatible for 1.1.8 ?
Title: Re: SMF Package Parser - Source code now available!
Post by: Bulqr4eto on April 15, 2009, 07:24:31 AM
How about 2.0 RC1 ? :(
Title: Re: SMF Package Parser - Source code now available!
Post by: Garou on August 23, 2009, 11:29:16 AM
For those looking to update this for newer versions of SMF, open the package.php and edit it to look something like this.

<label for="smfVersion"><?php echo $txt['choose_version'?>:</label>
<select name="smfVersion" id="smfVersion">
<optgroup label="SMF 2.0 Branch">
<option>2.0 RC1.2</option>
<option>2.0 RC1-1</option>
<option>2.0 RC1</option>
<option>2.0 Beta 4</option>
</optgroup>
<optgroup label="SMF 1.1 Branch">
<option>1.1.10</option>
<option>1.1.9</option>
<option>1.1.8</option>
<option>1.1.7</option>
<option>1.1.6</option>
<option>1.1.5</option>
<option>1.1.4</option>
<option>1.1.3</option>
<option>1.1.2</option>
<option>1.1.1</option>
<option>1.1</option>
</optgroup>
<optgroup label="SMF 1.0 Branch">
<option>1.0.13</option>
<option>1.0.12</option>
<option>1.0.11</option>
<option>1.0.10</option>
<option>1.0.9</option>
</optgroup>
</select><br />


I figured that one out a couple months ago, its simple to update, so far anyway.   ;D

Now to figure out how to parse mods stored on site much like the one here at SMF does.  :)
Title: Re: SMF Package Parser - Source code now available!
Post by: Kimmie on September 19, 2009, 12:15:39 AM
does anyone know of an updated parser?


TIA
Title: Re: SMF Package Parser - Source code now available!
Post by: JBlaze on September 19, 2009, 12:19:02 AM
Quote from: Kimmie on September 19, 2009, 12:15:39 AM
does anyone know of an updated parser?


TIA

http://dev.smfchat.com/parser  ;D
Title: Re: SMF Package Parser - Source code now available!
Post by: Hell Raiser on September 19, 2009, 06:31:01 AM
Nice work JB  :P
Title: Re: SMF Package Parser - Source code now available!
Post by: Mick. on March 31, 2010, 11:43:04 AM
Does anyone have a parser i could use in my own website?  :P
Title: Re: SMF Package Parser - Source code now available!
Post by: jexus1 on April 18, 2010, 01:06:18 PM
Quote from: bluedevil on March 31, 2010, 11:43:04 AM
Does anyone have a parser i could use in my own website?  :P

download the files,upload them and change some aspects of one file, I can´t remember very well  :P
Title: Re: SMF Package Parser - Source code now available!
Post by: Liam. on April 18, 2010, 05:00:40 PM
I think he means that there is no available download from Dan's site now, and if someone could re-upload it for us. I'd also like a copy of this, I had it before but seem to have lost it :/
Title: Re: SMF Package Parser - Source code now available!
Post by: Mick. on April 18, 2010, 05:01:47 PM
Quote from: Liam. on April 18, 2010, 05:00:40 PM
I think he means that there is no available download from Dan's site now, and if someone could re-upload it for us. I'd also like a copy of this, I had it before but seem to have lost it :/

Yes.... i'd like to have one in my test site.
Title: Re: SMF Package Parser - Source code now available!
Post by: distante on September 09, 2010, 01:32:43 PM
No way to find it!