Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
[]Dave_L said:
Thanks.

I suggest adding another table:

CREATE TABLE w3t_Mods_Files (
M_ID int(11) NOT NULL default 0,
M_File varchar(255) NOT NULL default '',
M_New char(1) NOT NULL default '0',
KEY M_ID (M_ID),
KEY M_File (M_File)
);

This table keeps track of which files were added (M_New = '1') or modified (M_New = '0') by each mod.

Each row of the table contains one filename, so if a mod affected ten files, then there would be ten rows.

Then by doing the appropriate query, you could obtain a list of all files related to a specific mod, or a list of all mods that affect a specific file. [/]

Thanks for the suggestion. I was thinking about something towards that direction, but wasn't sure exactly how to approach it yet.

Ultimately an interesting idea would be to come up with some kind of standard SQL string that every mod'er could supply (like the standard format that people use for posting mods), then it could be integrated with the forums here, and at the same time the same SQL query could be run by those who install it into their .threads, provided they have the mod first.

Basically:

-author writes mod, submits it on a form here similar to the admin/ubbtedit_modification.php form, except it also generates a post using the newpost.php (so that file upload is same as always)
-the form is shown in the parent post, and has a pop-up link with generated SQL code to update the modification table when the code is installed
-admin-user of the code makes the hacks as usual, and runs the SQL query to update their modifications table

I hope that's not too big looking, but that's what I think a version one would be like. I've written something similar in a private hack that was like photopost, minus the generated SQL code of course

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.x] Modifications Information for ubb.threads v0.2.1 Dalar 04/21/2003 6:26 AM
Re: [6.x] Modifications Information for ubb.threads JoshPet 04/21/2003 6:40 AM
Re: [6.x] Modifications Information for ubb.threads AllenAyres 04/21/2003 8:16 AM
Re: [6.x] Modifications Information for ubb.threads Dalar 04/21/2003 8:22 AM
Re: [6.x] Modifications Information for ubb.threads smilesforu 04/21/2003 8:51 AM
Re: [6.x] Modifications Information for ubb.threads JoshPet 04/21/2003 9:06 AM
Updated. Dalar 04/22/2003 11:12 PM
Re: Updated. omegatron 04/23/2003 1:42 AM
Re: Updated. Dalar 04/23/2003 2:49 AM
Re: Updated. Dalar 04/23/2003 2:59 AM
Re: Updated. Ian_W 04/23/2003 4:32 AM
Re: Updated. jluerken 04/23/2003 7:44 AM
Re: [6.x] Modifications Information for ubb.threads AllenAyres 04/23/2003 7:49 AM
Re: [6.x] Modifications Information for ubb.threads JoshPet 04/23/2003 7:55 AM
Re: [6.x] Modifications Information for ubb.threads AllenAyres 04/23/2003 8:02 AM
Re: [6.x] Modifications Information for ubb.threads v0.2.1 Dave_L_dup1 04/23/2003 6:57 PM
Re: [6.x] Modifications Information for ubb.threads Dalar 04/23/2003 8:14 PM
Re: [6.x] Modifications Information for ubb.threads JoshPet 04/23/2003 8:18 PM
Re: [6.x] Modifications Information for ubb.threads v0.2.1 Dalar 04/23/2003 8:27 PM
Re: [6.x] Modifications Information for ubb.threads Dalar 04/23/2003 8:29 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)