HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED] deleted the default Admin Account

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#96419 (In Topic #19147)
Avatar

Fan in action

now the system is severely messed up

So I have text like shown below instead of menus and modules.

{$SET,HAS_SOCIAL_MENU,{$AND,{$OCF},{$ADDON_INSTALLED,redirects_editor},{$OR,{$EQ,{$PAGE},chat,onlinemembers,points,pointstore,warnings,contactmember,groups,rules,members,leader_board},{$EQ,{$ZONE},forum}}}} {+START,IF,{$GET,HAS_SOCIAL_MENU}}{+START,IF,{$ADDON_INSTALLED,ocf_forum}}

{+START,IF,{$AND,{$NOT,{$MOBILE}},{$OR,{$WIDE},{$EQ,{$PAGE},forumview}}}}

Sorry, does not have access to use the 'block' Comcode tag (usage blocked).

* * * * * * * * * * * * * * * *
Somebody please shoot me!!!

* * * * * * * * * * * * * * * *
Can this be fixed?  Or will I have to delete the installation and start from scratch?


Last edit: by PerryRaptor
Back to the top
 
Posted
Rating:
#96420
Avatar

Emptying the comcode_pages table should fix it, or manually editing the panel pages to have a new admin owner.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96421
Avatar

Community saint

Chris Graham said

Emptying the comcode_pages table should fix it, or manually editing the panel pages to have a new admin owner.

Emptying the comcode_pages table is good to know. I just went through this a few weeks ago  manually editing the page owner on a new site after using the wrong login, and then later accidently deleting that member.  :$  :lol:

Steve
Back to the top
 
Posted
Rating:
#96422
Avatar

I'd like to solve this problem, but I'm not sure how right now without it being a headache to do.

The issue is that a deleted (or demoted) member loses their privileges. That's sensible – if you get rid of them, you don't want potential time bombs, or other sensitive things, left with admin access.

Then again, you might. Or in this situation, the Comcode pages were auto-assigned to the first admin, so it's not even their content as such.

I don't want to have to code a complex content reassignment system for all content, or try and interrogate the user doing the deleting with additional options.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96423
Avatar

I suppose it wouldn't be too traumatic for me to add a checkbox to the delete tab, defaulting on, that the person doing the deleting gets ownership of all their content. Obviously suicidal deletion would omit the option. It's not actually that hard for me to do a mass reassign when I think about it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96424
Avatar

Fan in action

SOLVED

Ran through the table of Comcode Pages and assigned an admin to each of them.

Fantastic Chris
Back to the top
 
Posted
Rating:
#96425
Avatar

Ergh, perhaps not, as that'll visibly change the submitter for it all, and that'll really annoy some people (claims of appropriation).

And it doesn't solve the demotion case either, as that wouldn't involve the delete form. Hmm.

Maybe detect if content is owned and auto-link to the merge members form to do the same task. Then at least it's more controllable – the deleter is in charge.

I suppose that'll do. That solves the case here – deleting a redundant admin account, but actually doing it by merging it into another. For the case of removing some old/rogue admin– well if they were adding Comcode pages, they'll probably not claim appropriation if you did a merge, as they'd have been a team player. For the case of removing others, if no Comcode pages, not really a problem.

Still 'ergh' but it's definitely better ;).

Yeah, in v10 you can manually reassign submitters of anything anyway, so any corner cases of doing either thing, can be fixed up manually easily enough.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#96426
Avatar

Fan in action

Chris,

may be a note on the account holder's widow and on account deletion page that this account is an owner of content.

I would have not deleted the account as a 'lurker' had there been an asterisk next to the account name.

Just my $0.02 opinion
Back to the top
 
Posted
Rating:
#96427
Avatar

Community saint

Chris Graham said

I suppose it wouldn't be too traumatic for me to add a checkbox to the delete tab, defaulting on, that the person doing the deleting gets ownership of all their content. Obviously suicidal deletion would omit the option. It's not actually that hard for me to do a mass reassign when I think about it.

Chris Graham said

I'd like to solve this problem, but I'm not sure how right now without it being a headache to do.

The issue is that a deleted (or demoted) member loses their privileges. That's sensible – if you get rid of them, you don't want potential time bombs, or other sensitive things, left with admin access.

Then again, you might. Or in this situation, the Comcode pages were auto-assigned to the first admin, so it's not even their content as such.

I don't want to have to code a complex content reassignment system for all content, or try and interrogate the user doing the deleting with additional options.

It would be kind of nice knowing what pages were being reassigned. Would it be possible to show a list of pages (think something like the file integrity checker) so you wouldn't blindly do a mass reassign? This way even if you mass reassign, you can use the list to pull up those pages and delete if needed.

Steve
Back to the top
 
Posted
Rating:
#96428
Avatar

That's exactly the kind of road I don't want to go down Sholzy ;). If pages, what about every other kind of content? Then how to manage it all. It could turn into something taking days. I suppose I could add a search link on there so you could find all the content they own, that'd give a clearer picture and a roadmap into making manual changes.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96429
Avatar

Fan in action

I would not want a lengthy audit process…just a note that the account is a content owner so that I can manually reasign ownership, should I choose too, prior to deletion of the account.

Back to the top
 
Posted
Rating:
#96430
Avatar

Thanks for the input :)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96431
Avatar

Community saint

Chris Graham said

That's exactly the kind of road I don't want to go down Sholzy ;). If pages, what about every other kind of content? Then how to manage it all. It could turn into something taking days. I suppose I could add a search link on there so you could find all the content they own, that'd give a clearer picture and a roadmap into making manual changes.
That's kind of what I was thinking, clicking a link to show a list.

Steve
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#96433
Avatar

Ok, I've done this.

If deleting another member:
  • Merge members link provided, with explanation of the otherwise inevitable content orphaning
  • Merge member form prepopulates from above link
  • Merge member form explains the issue of members possibly objecting to appropriation of content submission credit
  • Specific warning about loss of content iff the user has dangerous Comcode privileges, referencing this specific issue, and mentioning the possibility of manually reassigning things instead
  • Search content link

I think that's very clear now. The only issue I can think of is that if you change privileges of an admin, you don't go through this process. However, reducing the privileges of the default 'admin' account seems pretty unlikely.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: