Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Mod Name / Version - Modifications Information for ubb.threads
Version - 0.2.1
Description - This mod creates a database list of modifications applied to a UBBT installation, and lists information about each modification. An administrator must of course submit this information. This is useful for keeping track of mods and version numbers, as well as for the information of your visitors. Full use of language files, and uses a template file even. Includes English and French.
Working Under - ubbt 6.2; should work under all 6.x.
Pre-requisites - Modifications (it'd be silly to install otherwise )
Files Altered -
admin/menu.php
templates/default/ubbt_footer.tmpl (though you can put the link wherever you want)
New Files -
ubbt_modifications.php
languages/**language**/ubbt_modifications.php
templates/default/ubbt_modifications.tmpl
admin/editubbt_modifications.php
languages/**language**/admin/editubbt_modifications.php
altertable_mod.php (one-time script)
New Database Tables -
[w3t_]Mods_Mod
Author - Dalar (Rob Porter)
Example - Legends of Tacendia Forums
Admin Example:
[]http://dalar.danbo.com/adminex.jpg[/]

If anyone uses this, let me know how it goes - and certainly anyone is free to suggest additions and expansion to this mod.
Attachments
76523-modinfo0-2-1.zip (0 Bytes, 46 downloads)

Last edited by Dalar; 04/22/2003 8:11 PM.
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This looks cool.
Might need to give this a whirl too!

Thanks for all the mods.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yes, thanks.. we've been talkin for ages about how to keep up with what we've installed here This looks like it'll do the job, thanks


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
no prob

Once any bugs found get worked out and I get a bit of free time, I'll be getting the language files in and perhaps a template file.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Nice work... wish I had put this one in first

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Although... to impliment this.... I need to remember what I installed here.

Maybe this goes in for 6.3 and I start fresh again.

beatdown #243425 04/22/2003 4:12 PM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
This has been updated to now be a ZIP file with new files in it. The new files are all language and template files. Included are English and French.

beatdown #243426 04/22/2003 6:42 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Cool I love this one. Although I am still waiting for the first one I entered to display. Everyone I added after has displayed.

sf49rminer #243427 04/22/2003 7:49 PM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Err.. oops!

I think I know what might have done that. Gimme a few minutes, I'll have a fix up for you

beatdown #243428 04/22/2003 7:59 PM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Here you go...

ubbt_modifications.php
----------------------

after:

$result = $dbh -> do_query($query);
$html -> open_table();

insert:

$i = 0;


templates/default/ubbt_modifications.tmpl
-----------------------------------------

change:

for ($i=1;$i<$modrowsize;$i++) {

to:

for ($i=0;$i<$modrowsize;$i++) {


I'll have a version 0.21 up soon to fix that. For new downloads.

Sponsored Links
beatdown #243429 04/22/2003 9:32 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Sounds a great idea - thanks


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #243430 04/23/2003 12:44 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
This is a really nice one. Thanks!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
[]JoshPet said:
Although... to impliment this.... I need to remember what I installed here.

Maybe this goes in for 6.3 and I start fresh again. [/]

Probably the best solution... it's always good to get a fresh start once in a while, gets rid of bugs from old beta stuff long forgotten


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, I'm thinking when 6.3 gets stable... we can rehack. This hack will be first...

Then I'll be religious about updating this.

I have an idea to tweak this a bit.... to put the post number of the hack in. Then people here can view what hacks we have, and click right to the post.... thus we can be a "showcase".

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
good idea


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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.

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Yeah - the way it works currently is that any link can be placed in the listing. The way I was doing it, was putting the URL to the post in. It should be an easy hack to have an alternate post-number entry to enter that turns into a full link rather than entering the whole URL manually.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, and in 6.3... the post number will be all we need to link to. The board=keyword is no longer needed.

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

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
[]JoshPet said:
Yeah, and in 6.3... the post number will be all we need to link to. The board=keyword is no longer needed. [/]

I know -- I will *love* that new feature.


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)