Advertisement:

Author Topic: Administration - Deleted Admin  (Read 9748 times)

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Administration - Deleted Admin
« on: April 23, 2012, 12:25:27 PM »
Okay...this document has it's own script...why doesn't it suggest using administrate.php which is a script I wrote for both 1.1 and 2.0 to accomplish this?

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,700
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Administration - Deleted Admin
« Reply #1 on: April 23, 2012, 02:59:42 PM »
Why not edit it, to reflect that, Lab?

You can edit the wiki, I feel sure.

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #2 on: April 23, 2012, 03:37:13 PM »
Didn't want to modify it myself. I dont like modifying something that someone else wrote so I don't offend anyone.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Doctor Deejay

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 3,491
  • Gender: Male
Re: Administration - Deleted Admin
« Reply #3 on: April 23, 2012, 03:38:56 PM »
You can also just add that there is another alternative to fix administrator status and then link to your script. :)

Btw, are guests supposed to see this board?
Doctor Deejay                                        I understand everything... except that wig. - Jack Sparrow
Simple Machines LocalizerDon't pm me for support
deejay [at] simplemachines [dot] orgGet To Know The Team - Dr. Deejay

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #4 on: April 23, 2012, 03:43:06 PM »
Probably not...I don't know lol

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,700
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Administration - Deleted Admin
« Reply #5 on: April 23, 2012, 03:54:06 PM »
No sweat in editing it, mate.

If you break anything, it can be restored easily enough.

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #6 on: April 24, 2012, 02:54:17 PM »
Yes.  Everyone can see this board. Lab-- please edit. It'll be a help. Really!
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,700
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Administration - Deleted Admin
« Reply #7 on: April 24, 2012, 03:00:50 PM »
* K@ gives the doodle a prod... ;)

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #8 on: May 03, 2012, 03:18:33 PM »
Lab,

Please add your information. It will help EVERYBODY.
Thanks
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #9 on: May 03, 2012, 03:51:50 PM »
Meh I don't like butting in places...I suppose I'll try...

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,700
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Administration - Deleted Admin
« Reply #10 on: May 03, 2012, 03:58:45 PM »
* K@ pats the labradoodle on the head, ruffles his fur and offers him a marrow-bone. ;)

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,884
  • Gender: Male
  • Because Orange is Orange
Re: Administration - Deleted Admin
« Reply #11 on: May 03, 2012, 04:14:37 PM »
Didn't want to modify it myself. I dont like modifying something that someone else wrote so I don't offend anyone.
It's a wiki, go to edit that page and don't be a slacker! :P

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #12 on: May 03, 2012, 04:15:55 PM »
You are most cordially invited to contribute your knowledge to the wiki.

Invitation.  Now, you are not butting in.

Thanks!
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,700
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Administration - Deleted Admin
« Reply #13 on: May 03, 2012, 04:19:40 PM »
You are most cordially invited to contribute your knowledge to the wiki.

Invitation.  Now, you are not butting in.

Thanks!

That's mom-speak for "Stop being a wuss and get it done, my boy!


Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #14 on: May 06, 2012, 10:05:07 PM »
I'd really prefer if someone else could do this...

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #15 on: May 07, 2012, 08:05:31 AM »
I don't know about administrate.php.

Who does?  Who can write something about it? If you can write it here someone can copy/paste it there.
Please
Thanks
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,884
  • Gender: Male
  • Because Orange is Orange
Re: Administration - Deleted Admin
« Reply #16 on: May 07, 2012, 08:27:35 AM »
* emanuele waits to see if anyone else doesn't want to do a wiki edit... ::)
Do you think someone will see any conflict of interest in an edit done by you on that topic?
Feel free to not think such things.

The link is there now, if anyone wants to improve the text feel free.

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #17 on: May 07, 2012, 08:44:10 AM »
In a flurry of activity, Illori also contributed (http://wiki.simplemachines.org/smf/index.php?title=Administration_-_I_accidentally_lost_my_admin_account%21_What_can_I_do&action=historysubmit&diff=11868&oldid=11822) and I edited that.

I like emanuele's idea to list the ready-made script separately, so I have merged the changes together, and moved this information to the beginning of the article.

Thank you, Lab, for bring it it up, and illori and emanuele for providing some text we can use.
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #18 on: May 07, 2012, 11:10:08 AM »
It works on 1.1.x and 2.0.x. Furthermore, what needs to be done to make it an official script?

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #19 on: May 07, 2012, 11:24:31 AM »
I'm sorry.  I misunderstood.  I thought it only worked for 1.1
I don't know what makes a script official.

I thought the customization team would know the answer to that one.
Who deides?
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Doctor Deejay

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 3,491
  • Gender: Male
Re: Administration - Deleted Admin
« Reply #20 on: May 07, 2012, 11:25:39 AM »
I always thought that a script was official when it was made by the team, for the team. But I don't know, it's just what I have always thought. :P
Doctor Deejay                                        I understand everything... except that wig. - Jack Sparrow
Simple Machines LocalizerDon't pm me for support
deejay [at] simplemachines [dot] orgGet To Know The Team - Dr. Deejay

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #21 on: May 07, 2012, 11:38:02 AM »
I'm not sure...maybe the developers?

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,251
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Administration - Deleted Admin
« Reply #22 on: May 07, 2012, 12:33:02 PM »
Obscurities.. There always had been here :) Even the lead developers did not namely call their personal-effort-made scripts as "official" in the history of SMF.

Usually, its expected that DEV team decide to make something needed by people and work on it together. Then it will be called official. Being made by a team member won't automatically make it "official" since the team is everlasting but the members of it are not.

But IMO, if devs approve this script and decide to support/develop it later; then it would be labeled official.

Btw, IMHO, this topic should have been opened in a non-public board.
Home of Elmacik

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,920
  • Gender: Male
  • I don't speak German.
    • IchBin.us
Re: Administration - Deleted Admin
« Reply #23 on: May 07, 2012, 02:01:53 PM »
IIRC the Lead Dev has the final say if code becomes official or not for any tool that is placed on the SMF site.
Brad "IchBin™" Grow        TinyPortal        Themes
Coding Guidelines       

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #24 on: May 07, 2012, 02:03:36 PM »
I have talked to Norv about this in the past. Maybe she can swing by and let us know either way.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline N. N.

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,317
  • Blue Wolf
Re: Administration - Deleted Admin
« Reply #25 on: May 08, 2012, 09:10:33 PM »
I have talked to Norv about this in the past.

I remember I have suggested a little improvement in error handling, and to present it for testing.
Please point out to me if that was the case, and I might have missed it.


Another suggestion is simply to try, if you wish, to use the public repositories as we do on Github, and present it to people anytime you want.
ETA: As it is documented elsewhere, we have a few of our tools in work-in-progress repositories, such as:
https://github.com/norv/tools
https://github.com/emanuele45/tools
Any of them can serve as working place for our tools, feel free to fork one of them and add your own, then make a pull request. ;) 
They are also pulled in our other repos and on the site when and where appropriate.
« Last Edit: May 08, 2012, 09:26:39 PM by N. N. »
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #26 on: May 08, 2012, 09:35:33 PM »
I've not used Git or GitHub very much, as much as I'd like to learn it, I'm sticking with Subversion right now for time reasons.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline N. N.

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,317
  • Blue Wolf
Re: Administration - Deleted Admin
« Reply #27 on: May 08, 2012, 09:37:18 PM »
You can use svn with Git too! :)

I hope you'll like it when you get to it.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #28 on: May 08, 2012, 09:45:49 PM »
I'm sure I'll like it, I've downloaded the Git BASH and Git GUI (prefer BASH) although I've not had time to learn how to do a bunch of things yet and my time is extremely limited.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline N. N.

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,317
  • Blue Wolf
Re: Administration - Deleted Admin
« Reply #29 on: May 08, 2012, 10:12:44 PM »
It seems I have missed the topic you have made in Tips and Tricks board in the meantime. Thank you for making it known!

The script isn't licensed though, and if I remember correctly I must have mentioned that too. Please do license it, if you want it to be considered for official tools. As stated elsewhere, this is a requirement, and we are not going to have any single bit of copyrightable code that isn't properly licensed with an open license. At this time, our official mods/themes/tools, or meant to be contributed to the ecosystem of official software around SMF or package server, are either BSD 3-clause, or Mozilla 2.0, any is fine and in fact other options can be discussed, as long as it's an Open Source license, as per (minimum) OSI guidelines.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #30 on: May 08, 2012, 10:15:56 PM »
Can I license it under MPL 1.1? I think I may rewrite it tomorrow depending on how my time goes. How do you feel about it being written in OOP?

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline N. N.

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,317
  • Blue Wolf
Re: Administration - Deleted Admin
« Reply #31 on: May 08, 2012, 10:20:41 PM »
That would be great, if you're willing to try your hand to! Please, feel free to.

Sure thing, MPL 1.1 is perfectly fine as well.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #32 on: May 08, 2012, 10:21:52 PM »
Fantastic, I love OOP and think it's unfortunate to limit things to procedural (although I understand why of course).

Great, I'll keep in touch with any progress made.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline N. N.

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,317
  • Blue Wolf
Re: Administration - Deleted Admin
« Reply #33 on: May 08, 2012, 10:25:26 PM »
Well, there is no actual problem with this particular script, because there simply isn't doing enough things to benefit from OOP - apart from simply encapsulation. However, trying on smaller scripts is always a good fun, testing and learning avenue. :)
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #34 on: May 08, 2012, 10:26:29 PM »
Oh, I'm in the process of writing a chat software in OOP, so I definitely think I have the hang of it (at least, a LOT of it).

However, even for scripts the size of this, having it in OOP makes it more modular.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #35 on: May 09, 2012, 06:11:46 AM »
Also, please list any requirements in addition to the requirements for the SMF version.
http://wiki.simplemachines.org/smf/Requirements

SMF 1.1.x and 2.0 can run on php 4.1.0, but for OOP you need at least php 5.0
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #36 on: May 09, 2012, 10:57:57 AM »
It can run on either SMF 1.1.x or SMF 2.0.x. Although it will require a PHP version, as you said. Do I have to add error handling for that? :(

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: Administration - Deleted Admin
« Reply #37 on: May 09, 2012, 11:19:27 AM »
There will be some kind of ugly error if you try to run it on a too-early version of php.
How does SMF handle that problem?
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #38 on: May 09, 2012, 11:26:50 AM »
WWSMFD.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Yoshi

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,148
  • Gender: Male
Re: Administration - Deleted Admin
« Reply #39 on: May 09, 2012, 11:32:58 AM »
SMF loads a compatibility file for PHP 5.1.0 or earlier. Subs-Compat.php if I'm correct.
My Mods / [WIP] Mod Builder / GitHub profile / "A programmer is just a tool which converts caffeine into code."
Quote
<FLAMER> Marketing is about to get into drug activities maybe... but we will see about that later on :P
<Yoshi2889> We're getting free drugs?
<CoreISP> He's talking about caffeine man, damn pen lifter.

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Administration - Deleted Admin
« Reply #40 on: May 09, 2012, 11:36:38 AM »
No, it loads the compatibility even for 4.3 and 4.4 seeing how there are 5.0 only routines in SMF.

And actually, you can do OOP in PHP 4, but it's somewhat poor. Which is why there's a custom class loader that tries to load PHP 5-style classes in a PHP 4 manner, see loadClassFile().

I do have to say though, putting things in OOP for one-shot scripts seems like a lot of complication for very little benefit, especially as that if you want to do things in pre-5.0 compatibility they need to be separate files and loaded via loadClassFile instead of just being single files.

Offline Yoshi

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,148
  • Gender: Male
Re: Administration - Deleted Admin
« Reply #41 on: May 09, 2012, 11:43:41 AM »
No, it loads the compatibility even for 4.3 and 4.4 seeing how there are 5.0 only routines in SMF.
That's why I said "5.1 or earlier"...

Quote
I do have to say though, putting things in OOP for one-shot scripts seems like a lot of complication for very little benefit, especially as that if you want to do things in pre-5.0 compatibility they need to be separate files and loaded via loadClassFile instead of just being single files.
For one it keeps your code organized and you aren't having to fiddle with crap to get your variables. That seems like a huge benefit to me. Plus it's up to the creator to decide what way he/she codes it...

Though I just looked at the code of index.php and I think if you use SSI.php it will load the compatibility layer with it, since SSI.php and index.php are pretty similiar.
My Mods / [WIP] Mod Builder / GitHub profile / "A programmer is just a tool which converts caffeine into code."
Quote
<FLAMER> Marketing is about to get into drug activities maybe... but we will see about that later on :P
<Yoshi2889> We're getting free drugs?
<CoreISP> He's talking about caffeine man, damn pen lifter.

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Administration - Deleted Admin
« Reply #42 on: May 09, 2012, 11:53:06 AM »
Although he is right in the sense of compatibility. It's more work, plus if I lose compatibility, it might be worth just keeping it in procedural for now.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Administration - Deleted Admin
« Reply #43 on: May 09, 2012, 12:24:09 PM »
That's why I said "5.1 or earlier"...

You edited after I started posting as you first started out by saying 4.2 instead.

Quote
Though I just looked at the code of index.php and I think if you use SSI.php it will load the compatibility layer with it, since SSI.php and index.php are pretty similiar.

loadClassFile is always loaded, you're supposed to use it to load class files like you do with loadTemplate - nothing to do with the Compat code.