How to make a mod instalation Update for Nbs_MF - NBS






 

 

How to make a mod instalation Update for Nbs_MF - NBS

View Full Version : How to make a mod instalation Update for Nbs_MF


MasterOfAll
09-Jul-2007, 09:35 PM
Derek, please tell me how to make a file for update the table of all the old forum that the people have do.
E.g.: I have rebuild the Banner logo via ACP.
I have the MOD ready for destribution but now if a admin have 300 forum in his server don't have to put in the DB manually,

INSERT INTO pippus_config values ('banner_source', 'http://theurlwhereisyourNBS_MFRoot/banners/logo_phpBB.gif' );
INSERT INTO pippus_config values ('banner_path', 'banners' );
INSERT INTO pippus_config values ('banner_link', 'index.php' );
INSERT INTO pippus_config values ('banner_cols', '2' );
INSERT INTO pippus_config values ('banner_width', '200' );
INSERT INTO pippus_config values ('banner_height', '91' );

INSERT INTO caius_config values ('banner_source', 'http://theurlwhereisyourNBS_MFRoot/banners/logo_phpBB.gif' );
INSERT INTO caius_config values ('banner_path', 'banners' );
INSERT INTO caius_config values ('banner_link', 'index.php' );
INSERT INTO caius_config values ('banner_cols', '2' );
INSERT INTO caius_config values ('banner_width', '200' );
INSERT INTO caius_config values ('banner_height', '91' );

INSERT INTO sempronius_config values ('banner_source', 'http://theurlwhereisyourNBS_MFRoot/banners/logo_phpBB.gif' );
INSERT INTO sempronius_config values ('banner_path', 'banners' );
INSERT INTO sempronius_config values ('banner_link', 'index.php' );
INSERT INTO sempronius_config values ('banner_cols', '2' );
INSERT INTO sempronius_config values ('banner_width', '200' );
INSERT INTO sempronius_config values ('banner_height', '91' );

INSERT INTO pincuspallus_config values ('banner_source', 'http://theurlwhereisyourNBS_MFRoot/banners/logo_phpBB.gif' );
INSERT INTO pincuspallus_config values ('banner_path', 'banners' );
INSERT INTO pincuspallus_config values ('banner_link', 'index.php' );
INSERT INTO pincuspallus_config values ('banner_cols', '2' );
INSERT INTO pincuspallus_config values ('banner_width', '200' );
INSERT INTO pincuspallus_config values ('banner_height', '91' );



And go on for all the forum.
Please tell me how to make this in only once time, for all the mod I have do.
:nudge::nudge::nudge:
http://www.chooseforum.it/space/masterofall/banner.jpg

MasterOfAll
10-Jul-2007, 10:19 PM
No one have a Idea for do the install?

I have do the mod at 95%. But i don't understand how have to make a banner_install.sql

Derek
11-Jul-2007, 10:01 PM
Just put the SQL in nbs/new_forum_sql.php, and execute those queries on the execute query page in the admincp if there are forums that already exist. Simply put {accessname}_ for the prefix when executing on that page and it will do it for every forum.

Derek

MasterOfAll
12-Jul-2007, 12:15 AM
I have release a mod. Thank's I must update the script in about a few days.

A note ... I have buy the Copyright removal. Good work Derek.
And if you whant a hand tell me...