General Community > Chit Chat

Package Parser

<< < (3/8) > >>

vbgamer45:
I would like to see it as well. Have trouble with the modsite package parser keeping formatting so been using Daniels but's some packages break with it.

lorth:
i would be very interested in a downloadable version too.

tyty1234:
Alright 4 people is enough for me to let you guys grab the source for my package parser, so here's the link to the file.
Download Link

And just a few notes...

- SMF 2.x is needed for the parser as $smcFunc functions are used.
- Line 12 MUST point to SSI.php, wherever your package parser ends up.
- The first argument of the str_replace() function in $context['self'] should match the directory name of your forum. For example, if your forum lies in the folder called "forum" that is located in the root, the argument would be "/forum/index.php". Otherwise if your forum is in the root directory of your site, all you need is is "/index.php".
- All English text is hard-coded into the parser, so that means no language files or etc is included.
- SMF Version drop-down box is also hard-coded into the parser starting from line 46.
- Parser supports boardmod (.mod) mods, which explains the length of the file. I spent hours just working on the mod -> xml conversion and played around with a lot of regex syntax.
- Please, please, please leave my name and Daniel15's name at the bottom of the footer. I worked really hard on this parser and I really would appreciate to be credited for the work I put into it. Do not brand it as your own.
- You may link back to your site/forum in the footer section BELOW where it says "This package parser coded by..."
- Questions? You may email me, PM me, post here, whatever method is preferred.
- Enjoy :)

lorth:
thanks for the download link, worked like a charm :)

so if i understand your instructions right, i need a running version of smf for this to work? (because the SSI.php?)
do i need a specific version for the parser or will any 1.1.14 or 2.0 install work?

tyty1234:
Oh the package parser uses several $smcFunc functions, so any SMF 2.0 version should work with the parser (the SMF 2.0 version that first started using $smcFunc)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version