Jump to content

Acronym Expansion - external import


NoGi

Recommended Posts

I had a list already and imported that in fine into the relevant table. It all shows fine in the ACP and you can edit/delete/etc... But they don't seem to work on the forum. 

As I imported it, IPS are saying it's not supported and suggested I try here. Has anyone else tried to import content into the acronyms tables?

Link to comment
Share on other sites

Ok, just further on this, it seems to work fine on new posts. Any post/thread prior to an acronym being added won't show the expansion. Doesn't matter if it's my imported one or a newly created one.

Does anyone else have this issue?

Link to comment
Share on other sites

That's what I thought but support haven't been forthcoming with what that task is? Was hoping someone here would know. I've tried a few of them already but will take another look at the list of tasks.

Link to comment
Share on other sites

I just added an acronym and ran this and it got processed.

<?php

require './init.php';

foreach ( \IPS\Content::routedClasses( FALSE, TRUE, TRUE ) as $class )
{
	try
	{
		\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => $class ), 3, array( 'class' ) );
	}
	catch( \OutOfRangeException $ex ) { }
}

echo "Queued...";

I'd be slightly nervous about re-running RebuildPosts on live, but that's probably because I got burned with content loss on 4.0.1. I think the bugs I had in there have been fixed now.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...