Jump to content

How remap convertion id's (Xenforo 2 to IPS transfer)


Veilon
Go to solution Solved by CoffeeCake,

Recommended Posts

Hello!

How can I remap those posts that IPS created when migrating to those that I had on xenforo ?

I expected that after the transfer, all rewrites would work automatically, but unfortunately this did not happen.

As far as I understand need some php script using data from these tables 👇 for remaped id's

convert_link

convert_link_posts

convert_link_topics

Thank you for help !)

 

@Stuart Silvester perhaps you already know how to solve this problem ? 😅

Edited by Veilon
Link to comment
Share on other sites

This should work magically. You need to make sure that you select the converters when downloading the IPS files (assuming you're self-hosted). If you follow a link from your Xenforo install, the URL should be automatically rewritten to the correct path in IPS. It will likely have a different ID associated.

No additional scripts are needed, assuming you are installing IPS in the same location as Xenforo. If you've changed the path, you may need to rewrite your URLs and pass them to IPS with the old path.

Link to comment
Share on other sites

14 minutes ago, Paul E. said:

This should work magically. You need to make sure that you select the converters when downloading the IPS files (assuming you're self-hosted). If you follow a link from your Xenforo install, the URL should be automatically rewritten to the correct path in IPS. It will likely have a different ID associated.

No additional scripts are needed, assuming you are installing IPS in the same location as Xenforo. If you've changed the path, you may need to rewrite your URLs and pass them to IPS with the old path.

So ID's should automatically remaps at the conversion stage ?

At the moment, the same sections on IPS and Xenforo have different itвs (For example: Example theme 1 - Xenforo id 527, Example theme 1 - IPS id 327). I didn't find any rules for the redirect You're talking in the system (Furls). 😅

Edited by Veilon
Link to comment
Share on other sites

  • Solution

I assume you're talking about making sure that URLs in your Xenforo install will end up redirecting to the correct place in IPS. For example, https://example.com/community/threads/how-to-remap-conversion-ids-xenforo-2-to-ips-transfer.123456/. In this case, XF thread ID 123456 will redirect to wherever the thread ended up after your conversion. It might be something completely different like example.com/forums/topic/345678-how-to-remap-conversion-ids-xenforo-2-to-ips-transfer/.

This is handled by the conversion scripts that will be a part of your install, even after the conversion is complete. The logic is hardcoded and not handled by the furl system. See /applications/convert/sources/Software/Forums/Xenforo.php and look for the checkRedirects() method to see how forum URLs are handled. There are similar methods in core for things like member profiles, etc.

IPS will see the URL pattern that matches Xenforo and automatically redirect to wherever the content ended up post conversion. IDs will likely be different for everything, but as you found in those tables, a one-to-one conversion is stored to do the translations.

Link to comment
Share on other sites

1 hour ago, Paul E. said:

I assume you're talking about making sure that URLs in your Xenforo install will end up redirecting to the correct place in IPS. For example, https://example.com/community/threads/how-to-remap-conversion-ids-xenforo-2-to-ips-transfer.123456/. In this case, XF thread ID 123456 will redirect to wherever the thread ended up after your conversion. It might be something completely different like example.com/forums/topic/345678-how-to-remap-conversion-ids-xenforo-2-to-ips-transfer/.

This is handled by the conversion scripts that will be a part of your install, even after the conversion is complete. The logic is hardcoded and not handled by the furl system. See /applications/convert/sources/Software/Forums/Xenforo.php and look for the checkRedirects() method to see how forum URLs are handled. There are similar methods in core for things like member profiles, etc.

IPS will see the URL pattern that matches Xenforo and automatically redirect to wherever the content ended up post conversion. IDs will likely be different for everything, but as you found in those tables, a one-to-one conversion is stored to do the translations.

What's the reason id substitution might not work ?)

Link to comment
Share on other sites

1 hour ago, Paul E. said:

I assume you're talking about making sure that URLs in your Xenforo install will end up redirecting to the correct place in IPS. For example, https://example.com/community/threads/how-to-remap-conversion-ids-xenforo-2-to-ips-transfer.123456/. In this case, XF thread ID 123456 will redirect to wherever the thread ended up after your conversion. It might be something completely different like example.com/forums/topic/345678-how-to-remap-conversion-ids-xenforo-2-to-ips-transfer/.

This is handled by the conversion scripts that will be a part of your install, even after the conversion is complete. The logic is hardcoded and not handled by the furl system. See /applications/convert/sources/Software/Forums/Xenforo.php and look for the checkRedirects() method to see how forum URLs are handled. There are similar methods in core for things like member profiles, etc.

IPS will see the URL pattern that matches Xenforo and automatically redirect to wherever the content ended up post conversion. IDs will likely be different for everything, but as you found in those tables, a one-to-one conversion is stored to do the translations.

 

1 hour ago, Paul E. said:

checkRedirects()

This function starts the Converter app ?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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