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.


Can you recover a single OCF thread?

Login / Search

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

Community saint

Hi,

I know how to recover the entire site from a back-up if I have a failure, but is there a way to recover a single topic, or thread?

Somehow, I managed to delete and entire, very popular, topic within a forum. :(

Any advice would be greatly appreciated. I have a number of very unhappy members.

Thanks,
Keith
 
Back to the top
 
Posted
Rating:
#29536
Avatar

Ouch. This would be really slow and fiddly to do, but if you have an SQL backup with the posts in, it'd be possible. If you restored the dump to a different database you could then:
  1. Find the topic ID (doing a search for the topic title via the p_cache_first_post_title field in the f_topics table).
  2. Export all the rows from the f_posts forum that have p_topic_id=<topic-id>
  3. Export all the rows from the translate table where the id corresponds to one of the p_post values in the exported f_posts rows.
  4. Import all that into your old DB

Little comfort, but useful future advice…
Only super-admins can delete topics in OCF. Moderators have to use the 'trash' multi-moderation instead. It's always best to trash, just in case.


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:
#29537
Avatar

Community saint

Thanks, Chris.

The confusing part is, I am not sure how I did this. I moved a few posts out of that topic into a new forum about a week ago, and have not been in it since, but I saw that it had new posts yesterday. We just discovered that it was gone this am.

I think it might be best to moderate then, instead of always logging in at admin (super-admin status). That would prevent this from happening again.

I also may want to check if I gave anyone else super-admin status unintentionally, because I really do not remember doing anything with that topic in the last week.

Thank you!  :thumbs:
Back to the top
 
Posted
Rating:
#29538
Avatar

I'd look through the Action Log.


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:
#29540
Avatar

Community saint

Thank you, I keep forgetting about the fact tha OCP has it's own action logs. I always go to my server's action logs, and there is a lot to sift through.  :)

Take care!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: