SMF Support > Install and Upgrade Help

How do you manually install a mod?

(1/1)

justasimpleuser:
Thanks for your help

Oldiesmann:
Well, modifying the code is relatively easy - just download the tar.gz file to your computer and extract everything (using a utility such as UltimateZip or WinZIP), then open the .mod file with a text editor and modify the appropriate files as indicated by the <edit file> tags. The hard part is the database stuff. Because the database modification files are meant to be run from within the package manager, they will not work simply by uploading them and running them (as was the case with YaBB SE) - you'll most likely get an error saying "Call to undefined function db_query()...". I'm not sure if the following will work, but you can try adding the following two lines at the beginning of the db modification file, right before any "global" statements:

--- Code: ---include_once("Settings.php");
include_once("Sources/Subs.php");
--- End code ---

This will define the $db_prefix variable and also the db_query function. Like I said - I'm not sure that will work, and haven't tested it. If you do try this, let me know if you get any errors. At some point I will probably write a tutorial on installing mods by hand...

justasimpleuser:
Thanks so much for ALL your help  :)

Navigation

[0] Message Index

Go to full version