Advertisement:

Author Topic: [Trick] Administrate Yourself  (Read 54163 times)

Offline Shadow Queen

  • Jr. Member
  • **
  • Posts: 184
  • Gender: Female
    • My Kingdom
Re: [Trick] Administrate Yourself
« Reply #20 on: September 13, 2011, 02:11:28 PM »
When this happen? I can just log into the cpanel and upload the file. whatever this topic said to do?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [Trick] Administrate Yourself
« Reply #21 on: September 13, 2011, 02:12:38 PM »
What do you mean? Not a very clear post.
When this happen? I can just log into the cpanel and upload the file. whatever this topic said to do?

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
Re: [Trick] Administrate Yourself
« Reply #22 on: September 13, 2011, 02:57:11 PM »
When this happen? I can just log into the cpanel and upload the file. whatever this topic said to do?
Labradoodle-360 is always precise when explaining something....   ;D  Read the first post again
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline Shadow Queen

  • Jr. Member
  • **
  • Posts: 184
  • Gender: Female
    • My Kingdom
Re: [Trick] Administrate Yourself
« Reply #23 on: September 13, 2011, 04:33:11 PM »
I mean when this happen to the main account holder of the forum. You just upload the file to the same place as the SSI.php file?

Sorry, It's was my faulth about the unclear post I made :)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [Trick] Administrate Yourself
« Reply #24 on: September 13, 2011, 04:37:38 PM »
When anyone who has the database password needs their account administrated, they can use this file in the same directory as SSI.php.

Offline Shadow Queen

  • Jr. Member
  • **
  • Posts: 184
  • Gender: Female
    • My Kingdom
Re: [Trick] Administrate Yourself
« Reply #25 on: September 13, 2011, 05:28:31 PM »
Oh ok.

When that happen I just do what I needed to do.

And the main account holder become admin.

Neat tick

Offline ~Dragon~

  • Jr. Member
  • **
  • Posts: 301
  • Gender: Male
Re: [Trick] Administrate Yourself
« Reply #26 on: October 21, 2011, 04:20:35 PM »
Good Job I learn it :D
Please do not PM or email, Thank respond please post fast to SMF!

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: [Trick] Administrate Yourself
« Reply #27 on: August 11, 2012, 12:35:20 PM »
Sorry to bump this old topic but I wanted to say thank you to Labradoodle-360 for this script. I learned a few things simply by reading the code.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [Trick] Administrate Yourself
« Reply #28 on: August 11, 2012, 01:09:33 PM »
No problem, and wow, I take that as a big compliment from you, thank you for the kind words! :)

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: [Trick] Administrate Yourself
« Reply #29 on: August 11, 2012, 01:33:29 PM »
No problem, and wow, I take that as a big compliment from you, thank you for the kind words! :)

You are very welcome :)

Offline DEANO3528

  • Semi-Newbie
  • *
  • Posts: 55
Re: [Trick] Administrate Yourself
« Reply #30 on: January 08, 2014, 04:38:16 PM »
REally sorry to bump this after so long, but I've read this and not being a super-whizz with the tech stuff, I wanted to ask a question:
Does this trick only work once administration rights have been removed/lost?
I have uploaded it to the correct directory (same as SSI.php) but nothing happened. So I wondered if I don't actually install it unless I already lost admin rights?
Sorry again for the idiot question and bump.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [Trick] Administrate Yourself
« Reply #31 on: January 08, 2014, 04:50:18 PM »
Not a problem. This is in case you lose your administration rights. It just modifies your id_group in the database automatically for you.

Offline DEANO3528

  • Semi-Newbie
  • *
  • Posts: 55
Re: [Trick] Administrate Yourself
« Reply #32 on: January 08, 2014, 06:36:11 PM »
Ok many thanks for that. I will delete until it might be needed.
Really wish SMF would auto-protect #1 member, but hey-ho.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,649
    • StoryBB/StoryBB on GitHub
Re: [Trick] Administrate Yourself
« Reply #33 on: January 08, 2014, 06:38:58 PM »
Protect it against what, exactly? SMF won't let you remove group 1 from any member unless the person doing it is also in group 1, and it won't let you remove group 1 from a user if that user is the only group 1 user. What's left to protect?

On the other hand, what happens if you leave the forum and sell it on? If user 1 is auto protected, that option becomes impossible.
Please don’t PM me for paid work, I’m not for hire, and even if I was, I doubt you could afford me.
USD$150 per hour. Typical waiting list 3 months.