News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How do you convert SMF 2 mods to work with SMF 1

Started by stylusss, September 18, 2012, 12:39:36 PM

Previous topic - Next topic

stylusss

Is there a tutorial on how mods can be made to work with 1.x? I know there will have to be database changes, but all I'm looking for is a tutorial (things that need to be looked at), since there are a lot of mods I'd like to change on my own.
For top-notch server quality and expertise, visit CoreISP.net

The Wizard

Hello:

You would be better off upgrading to 2.0.2. Is there any reason why you can't upgrade?

Wiz

All Colours Sam

There isn't a tutorial because there is no way to summarize all the changes you need to do as every mod is different.

The main points to take into account are:

-DB abstraction layer.
You need to convert all queries made by the mod to plain normal MySQL or another BD functions.

-Hooks
If a mod uses hooks you need to know what hooks the mod is using and add the manual changes since the hooks on 1.1.x are significantly smaller in 1.1.x and their purpose is quite different.

-Scheduled task
There is no scheduled task in 1.1.x, if a mod uses it, you need to code a new one from 0 or use cronjobs.

I would sugest to upgrade to 2.0.x, there are a lot of improvements and is currently the stable version, at one point in time, 1.1.x will be discontinued.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

stylusss

Can't do that unfortunately. Far too many custom upgrades made. Thank you for your response, suki.
For top-notch server quality and expertise, visit CoreISP.net

emanuele

It's very very tricky.
I did it for SMF Quiz following the idea of someone else: taking Subs-Db-mysql.php from 2.0 and including it you (almost) have the db abstraction layer available in 1.1 too.
Though, as explained by Suky, that is not always enough, it should basically cover the db part, then it depends on the mod...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: