Simple Machines Community Forum

Simple Machines => News and Updates => Topic started by: Oldiesmann on May 08, 2008, 12:18:05 AM

Title: Function DB Version 2.0...
Post by: Oldiesmann on May 08, 2008, 12:18:05 AM
Sometime last year (or possibly even in 2006), I started thinking about improvements to the function DB, and noticed one major issue: due to the way the data was stored, we had to add an entire new function entry if a function was moved or changed in some way (additional functionality, new parameters, etc.). This meant that the function ID would also change in these situations, making it harder to track changes to functions between SMF versions.

I decided to rewrite the function db to address this problem, and addressed a few other (smaller) issues while I was at it. Due to the changes, I had to manually copy over all the function info from the existing function db to a new one which was being worked on in a non-public area of the site. I got busy and didn't have a lot of time to work on this, so it took a lot longer than I had originally planned, but I am pleased to report that the new version is up.

At first you won't notice many changes, as things should still look the same. However, there have been numerous changes:


All existing SMF functions (eg all the ones that were already in the function db) have been updated, so details exist for 2.0 as well. In addition, some functions that were added in 2.0 have already been documented (these are mainly ones that we documented from early alpha versions of 2.0).

What's to come? At this point we will be focusing mainly on documenting new functions from SMF 2.0. My goal is to have as many 2.0 functions documented as possible by the time the final version is released later this year.

I hope these changes make the function db more useful. Let me know if you run into any problems :)
Title: Re: Function DB Version 2.0...
Post by: [SiNaN] on May 08, 2008, 02:19:33 AM
Awesome. Thanks for your effort. ;)
Title: Re: Function DB Version 2.0...
Post by: bassbass on May 08, 2008, 03:35:00 AM
Quote from: [SiNaN] on May 08, 2008, 02:19:33 AM
Awesome. Thanks for your effort. ;)

i second that...
Title: Re: Function DB Version 2.0...
Post by: Roph on May 08, 2008, 05:20:55 AM
Wow, I was honestly about to post a few suggestions regarding the function DB, and here you make a post implementing what I was after (comparison, switching version and staying put and extra 2.0 info) :D

THANKYOU :D
Title: Re: Function DB Version 2.0...
Post by: deadnewton on May 08, 2008, 06:45:33 AM
well i am programmingly challenged...(but good in math :) )so pardon me....
I am running 1.1.5...should I do something with this or just sit tight for v2
Title: Re: Function DB Version 2.0...
Post by: Dragooon on May 08, 2008, 07:21:36 AM
I think you misunderstood what function db is.

Function DB(Located here (http://support.simplemachines.org/function_db/)) is a database containing all the functions which are used in SMF. So this announcement is to announce the implementation of Function DB Version 2.0, it is not a SMF release.

BTW, Great release!
Title: Re: Function DB Version 2.0...
Post by: Dannii on May 08, 2008, 07:30:11 AM
You know what would be great? Being able to specify the function in the URL instead of using an ID. Any chance that's possible?
Title: Re: Function DB Version 2.0...
Post by: deadnewton on May 08, 2008, 08:37:16 AM
Quote from: Dragooon on May 08, 2008, 07:21:36 AM
I think you misunderstood what function db is.

Function DB(Located here (http://support.simplemachines.org/function_db/)) is a database containing all the functions which are used in SMF. So this announcement is to announce the implementation of Function DB Version 2.0, it is not a SMF release.

BTW, Great release!

Great.. Now i got it...i did not have that link with me when I posted and was thoroughly confused and thought that i need to update the functions to get....something amazing...;)
very well documented.. i should incorporate this style into my dissertation work...!
Title: Re: Function DB Version 2.0...
Post by: Oldiesmann on May 08, 2008, 11:03:59 AM
Quote from: Dannii on May 08, 2008, 07:30:11 AM
You know what would be great? Being able to specify the function in the URL instead of using an ID. Any chance that's possible?

Not possible at the moment, but that won't be too hard to implement. I'll make the changes in a little while.
Title: Re: Function DB Version 2.0...
Post by: boranjudge on May 08, 2008, 05:39:05 PM
Thank you ;)
Title: Re: Function DB Version 2.0...
Post by: karlbenson on May 08, 2008, 05:42:33 PM
I'd like to see some examples of each function being used.

If I'm honest. I read/understand the examples on the PHP website more than their techno-babble about the function.
Title: Re: Function DB Version 2.0...
Post by: metallica48423 on May 08, 2008, 05:57:44 PM
its been suggested -- coming up with a way to implement it is another question.  Of course, we first need to actually finish the function entries and get things updated for 2.0
Title: Re: Function DB Version 2.0...
Post by: aldo on May 08, 2008, 06:08:02 PM
Quote from: Oldiesmann on May 08, 2008, 11:03:59 AM
Quote from: Dannii on May 08, 2008, 07:30:11 AM
You know what would be great? Being able to specify the function in the URL instead of using an ID. Any chance that's possible?

Not possible at the moment, but that won't be too hard to implement. I'll make the changes in a little while.
That'd be cool, kind of like PHP's site, like www.php.net/FUNCTION :D
Great job though ;)
Title: Re: Function DB Version 2.0...
Post by: SleePy on May 08, 2008, 10:15:13 PM
Well the examples isn't a bad idea, though I think the best way to do them would be from actual SMF source code like I did for the 2.0 Functions for mod authors. Seeing the actual code in use is very handy I know.
I read the tech blab to make sure I am casting things as I should and using it correctly, I also use the examples for when I don't feel like reading the tech blab and just need to make sure I am passing the correct variables to a function.
Title: Re: Function DB Version 2.0...
Post by: TeenDev on May 08, 2008, 10:38:41 PM
im sure this will make things a lot less confusing
Title: Re: Function DB Version 2.0...
Post by: Minare on May 09, 2008, 02:33:53 PM
Having no knowledge in programming or smf function db but being curious about what those changes will earn us, I request someone to tell me what those function db changes will make use of, just simply..

Examp : Forums will be faster blah blah...

Sorry  :D
Title: Re: Function DB Version 2.0...
Post by: Kindred on May 09, 2008, 02:57:12 PM
What?

Minare.... the function database has nothing at all to do with your site. It is a list of the functions used by SMF files...   specifically for those who want to build mods, bridges and implement other things using SMF functions.
Title: Re: Function DB Version 2.0...
Post by: Minare on May 09, 2008, 02:59:36 PM
Hımm, I thought different, Sorry.

Thank u Kindred ;)
Title: Re: Function DB Version 2.0...
Post by: vagrant on May 14, 2008, 07:31:46 PM
Thanks for all the hard work Oldiesmann.

Wow you must be one BIG dedicated person.

vagrant
Title: Re: Function DB Version 2.0...
Post by: Oldiesmann on May 16, 2008, 01:56:17 PM
You're welcome :)

I actually enjoy going through SMF and documenting all the functions... That's how I find easter eggs :P
Title: Re: Function DB Version 2.0...
Post by: diffy on May 18, 2008, 02:16:33 AM
Great! You'll probably be finished around the time Duke Nukem Forever comes out
Title: Re: Function DB Version 2.0...
Post by: _Anthony_ on May 23, 2008, 11:22:39 PM
Wow helped me alot thanks
Title: Re: Function DB Version 2.0...
Post by: illustrationism on June 18, 2008, 10:00:33 AM
Very nice. This will come in useful, I'm sure.
Title: Re: Function DB Version 2.0...
Post by: vladimir - sv on November 07, 2008, 06:06:15 PM
There's a PHP warning in this link:

http://support.simplemachines.org/function_db/index.php?action=view_function;id=151;sa=viewall

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/simple/public_html/support/function_db/index.php on line 545
Title: Re: Function DB Version 2.0...
Post by: Oldiesmann on November 09, 2008, 12:26:59 AM
Thanks for the report. For some reason that warning doesn't show up in Firefox, but I found and fixed the issue.
Title: Re: Function DB Version 2.0...
Post by: galton on November 09, 2008, 05:31:08 AM
thanks
Title: Re: Function DB Version 2.0...
Post by: ascaland on November 10, 2008, 09:50:09 PM
STICKY THIS MOTHER

Lol, anyways, I never used the Function DB so hopefully I can get into how it works and make it useful to me.
Title: Re: Function DB Version 2.0...
Post by: Oldiesmann on November 11, 2008, 02:06:20 PM
Yeah, a lot of people don't even know it exists for some reason, but it's been there for ages. Not sure what I can do to better promote it :)
Title: Re: Function DB Version 2.0...
Post by: HecKel on November 11, 2008, 02:25:16 PM
One new section for 3rd Party Developers in the Docs :)

I know you already have documentation for that but would be great if you create one section with documentation more in detail, explaining everything on the Developers view, how works the global variables, functions, themes, etc.

I am sure that would be a HARD work, but I am totally sure that would worth it :)
Title: Re: Function DB Version 2.0...
Post by: aldo on November 29, 2008, 05:07:52 PM
Quote from: Oldiesmann on November 11, 2008, 02:06:20 PM
Yeah, a lot of people don't even know it exists for some reason, but it's been there for ages. Not sure what I can do to better promote it :)
Add it to the menu at the top, or on the Mods page? :P
Title: Re: Function DB Version 2.0...
Post by: Oldiesmann on November 30, 2008, 12:35:18 AM
I'll look into adding it to the top. I guess a lot of people don't look at the "support" section much :P
Title: Re: Function DB Version 2.0...
Post by: marissaturner on November 14, 2009, 11:27:53 AM
THE CONTAINED INFORMTION IS VERY USEFUL. I WAS IN NEED OF IT.

Title: Re: Function DB Version 2.0...
Post by: Forbs on January 13, 2010, 04:58:12 AM
Thanks you very much...
Title: Re: Function DB Version 2.0...
Post by: necrit on March 30, 2010, 03:47:58 PM
will you be working to create a "RollUp" function within differing versions?  Basically if RC2 introduced a new function that was NOT updated for RC3 it doesnt show up on the function db for that version. What if there was minimum version ranges set for the filter for example when viewing RC3 it shows first any version specific functions of RC3 THEN shows all the proceeding functions from everything in the 2.0 line?
Title: Re: Function DB Version 2.0...
Post by: Arantor on March 30, 2010, 03:50:43 PM
Given that half the 2.0 stuff hasn't been properly documented, heck even stuff that hasn't changed between 1.1.9 and 1.1.11 (which is months old) hasn't been properly updated... I think the answer is basically no.
Title: Re: Function DB Version 2.0...
Post by: Norv on March 30, 2010, 03:57:23 PM
necrit: I agree, and I think I have already meant to propose or already proposed something along these lines... I will make sure it gets to the teamies responsible with it, in any case. :)

ETA: ah, except the teamie in question is Oldies which already has it now on his unread replies. :)
Anyway, one more vote from me, if I may, for a possibility to filter on "since".
Title: Re: Function DB Version 2.0...
Post by: Kindred on March 30, 2010, 04:35:43 PM
I do not think we will get a "since" line in before the final release of 2.0.

We are looking at some documentation automation and revising the "notes" in the source files which will make this easier in the future, but currently, stuff like "since" would all have to be handled manually, and there are more important things to be done before that.
Title: Re: Function DB Version 2.0...
Post by: Nictoria on April 06, 2010, 05:59:23 PM
Awesome. Thanks for your effort
Title: Re: Function DB Version 2.0...
Post by: texwillerx on June 23, 2010, 04:43:00 AM
Is there a function for inserting data (topics, etc) into a forum. I need such a function, since I want to create a forum from an existing data wich resides in a database.

Thanks
Title: Re: Function DB Version 2.0...
Post by: Kindred on June 23, 2010, 06:56:15 AM
did you even BOTHER to check out the function database?

http://support.simplemachines.org/function_db/index.php?action=main

look for post