Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Add-ons name and shame
ithcy
New
if you find an add-on that does not conform to standards, please post it in this thread along with a description of what's wrong so the author can fix it easily.
violations include:Incorrect language string configuration
i have seen all of these too many times. (i've been guilty of some myself.)
i am working on a very cool extension that i think a lot of people will like, but my life and yours are hampered by these vicious rogue add-on authors. maybe this thread will put a little pressure on people to clean up their stuff.
violations include:
- no folder structure in the add-on's zip or rar file (just a flat file list)
- Fix: the archive should contain the folder (yes, the folder itself) which holds the extension files, its contents, and nothing more or less. please check the contents of your archive before you upload it.
- extra folders in the folder structure (like /path/to/somebodys_forum/extensions/Addon)
- Fix: see #1 above
- extraneous files in the archive like Thumbs.db, .DS_STORE or __MACOSX
- Fix: there are several here
- the add-on name in default.php does not match the one at lussumo.com/addons, so vanilla's update check feature doesn't find the addon
- Fix: check the "official" add-on name at lussumo.com/addons, and change line 2 in default.php (the one that starts with
Extension Name:
) to match the official name exactly
- Fix: check the "official" add-on name at lussumo.com/addons, and change line 2 in default.php (the one that starts with
- the version number in default.php does not match the one at lussumo.com/addons
- Fix: as above, but change the line that starts with
Version:
) instead
- Fix: as above, but change the line that starts with
- installation instructions are missing or confusing enough that they might as well be missing
- Fix: this is a good start, but PLEASE write some good instructions. if you have poor english, you're sure to find someone who is willing to help here in the lussumo forums.
- Fix: Change to using $Context->SetDefinition - see here
i am working on a very cool extension that i think a lot of people will like, but my life and yours are hampered by these vicious rogue add-on authors. maybe this thread will put a little pressure on people to clean up their stuff.
0
Comments
also, how can it tell when you've included the path all the way from root in your zipfile? (maybe your extension really is called var and has subfolders called www/htdocs/myforum/extensions/MyExtension/)
likewise, how can a script tell when you didn't include the containing folder for your extension, especially when your extension may have arbitrary subfolders inside it?
these are not "hard rules", they're just guidelines. it really is up to the developers to not make things difficult for other people.
actually maybe extensions should have a "name" and then a "verbose name", because i think people want to have names for their extensions that wouldn't work as folder names.
"real name" is the folder name
"verbose name" is what shows up in your vanilla add-ons page and on the lussumo site.
Which is why good coders (and administrators and parents and educators) always incorporate fail-safe mechanisms which, although they cannot always "fix" the non-compliance, will highlight it as a problem or issue.
If you want to name-and-shame effectively, get your script to throw up an alert when the required conditions are not met. (Then, either crash the browser (kidding) or exit as gracefully as the situation allows.)
Posted: Tuesday, 10 July 2007 at 8:42AM
okay:
ExtensionName/js/whatever
not okay:
/var/www/htdocs/mywebsite/forum/extensions/ExtensionName/js/whatever
1) Would it be ok to have 'Feed Publisher' as the extension name, 'FeedPublisher' as the folder/.zip name and 'Feed Publisher' in the default.php file? My bad, I have 'Feed Publisher' as the extension name, 'FeedPublisher' as the folder/zip name and 'FeedPublisher' in the default.php.
2) Your guidelines should be listed on this page. What do you think?
3) Not sure about the way to make progress on the global rules following. This topic is a good first step, where we can give ideas about how we could proceed. But 'please post it in this thread along with a description of what's wrong so the author can fix it easily' is useless I think.
What I personaly think we should do if we encounter a problem:
a) try to notify the creator in private, then one or two weeks later, if no update
b) post in a relevant discussion (I mean not the one you're reading but an 'add-on discussion'),
c) and I think that it's all that can be done. Throwing shame on the extension won't be of any use, especially in a post that isn't read by everyone. Or maybe a page in the wiki with big red and flashing letters...
EDIT: if Mark agrees, we could even replace this old page with the general addon guidelines + ithcy's ones.
I'd even be interested in letting ithcy at the addons site code if he wanted to write some code to open up the zip and make sure that the guidelines were followed properly. Ithcy - you know my email if you're interested in this.
I don't know if the Wanted Extensions section is up to date, I guess not. Anyone that can update it could be of great help. Maybe this list could be moved to its own page, what do you guys think?
Relative and absolute URLs... what's best practice? I would think that absolute URLs using WEB_ROOT and the like would be best no?