News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Template with MOD

Started by Anguz, July 17, 2004, 01:44:32 AM

Previous topic - Next topic

Anguz

I wanted to know how acceptable it'd be to have a template that to be complete needs a MOD as well. I mostly ask this because of the way some BBcode is displayed in messages and I don't know how to do it other than going to Subs.php and tweaking it there.

Would it be too much to have to apply a MOD to use a template? Thanks for the feedback.
Cristián Lávaque http://cristianlavaque.com

Anguz

I guess this is not very interesting... hmm

well... I'll just go ahead and do it the best way I can... will also be carefull to not break other themes with the MOD so it can be used anywhere without causing trouble
Cristián Lávaque http://cristianlavaque.com

Grudge

Well - the way the package manager works I believe you can make it run a MOD as part of the template installer process. Obviously the only problem comes when someone upgrades but I'm sure you could find a way around that ;)

In particular - I'd make the theme check the mod was installed and not die horribly if not - just doing a function_exists type command is probably best. I should really recommend that on my shoutbox mod too...
I'm only a half geek really...

Anguz

that's a good sugestion

well... since I have to make the mod compatible with any other theme, I think I figured out how to do it in a way that even if the mod is not applied my theme would work, just not the same way, but it wouldn't screw anything up really :)
Cristián Lávaque http://cristianlavaque.com

Advertisement: