News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Avatar Directory...

Started by Liam., May 04, 2010, 02:18:17 PM

Previous topic - Next topic

Liam.

I know about using things like $avatardir, but would there be an easy way to add a file into EVERY avatar directory (eg. /Actors /Musicians...)?

Arantor

No, there isn't, at least not through the package-info.xml file.

You could, conceivably, do something with a custom install.php file but really, there would have to be an AWESOME reason to do this.
Holder of controversial views, all of which my own.


Liam.

Well, I was just thinking about making a simple "Random Avatar" mod which people keep requesting for, wanted to see if there was an easy way around it...

Arantor

There isn't a particularly easy way around it, nor a graceful one. And if you try it from install.php you'll likely have a plethora of permissions issues to deal with for support.
Holder of controversial views, all of which my own.


Liam.

M'eh, fair enough ;) No problem ^_^ I doubt there'd by any other use for such a function either...

Advertisement: