Hello,
is there any way to convert the "Thank you" from SMF mod Thank-o-matic to Elkarte likes?
Thank you in advance
Do you mean the data in the database?
Yep
The mod should be that one:
http://www.smfpersonal.net/mods/thankomatic-t3284.0.html
After a quick look at the mod install, it should be possible and not too difficult.
I think it could even be added directly to the importer as an optional step
Memo while I have the file open, the table is:
{db_prefix}thank_you_post
and contains the following fields:
id_thx_post
id_msg
id_topic
id_board
id_member
member_name
thx_time
The query to add to the importer may look something like:
SELECT th.id_member, th.id_msg, m.id_member AS id_poster, th.thx_time
FROM {$from_prefix}thank_you_post AS th
LEFT JOIN {$from_prefix}topics AS t ON (th.id_topic = t.id_topic)
LEFT JOIN {$from_prefix}messages AS m ON (th.id_first_msg = m.id_msg)
Then there is to recount all the likes per topic and per member.
@Spuds does the forum maintenance recount likes too?
I don't recall there being any, maybe a good thing to add to 1.02 or should that be 1.1? I'd guess for us topic counts could get messed up, like a split to new topic thing. Given/received, not sure how to validate that really, well received we can, not sure on given.
You would have to check the imported table for message_id's that were topic first message_id's and increment the topic table with the counts.
The member one, hummm, I'd guess the given is just the total of each id_member count in that table, the received would be the count of id_msg in that table on a per id_member basis (so all messages posted by member x). Thats a guess since I have not looked at the mod.
I didn't check deeply, but I think you are right.
I know you guys have a lot of things to do, but are athere any news on this? thank you
I have not been able to look into that one yet, sorry.
https://github.com/emanuele45/openimporter/compare/likes
This should do the trick for the thank-o-matic/thank you mod.
/me should find in the meantime also the other like mods available in order to add importers as well.
/me thinks emanuele should have a life! ;)
You're a workaholic depending ElkArte! Please do not exaggerate! :o
/me feels the same... from time to time. :P
:o I can't belive what I'am seeing. I cannot test it now, but I'll try it soon.
Thank you Emanuele for your help!
Whats the best way to do a mod to addon during the import (something that is not in the core)
For example the googlemap one, so if an SMF site thats being imported has that data, and the new site has installed the mod?
At the moment OI doesn't have any way to detect if a table in the "destination" database exists.
It could (and probably should) be added, then you can add as much stuff as you want to any importer: detects if the tables (source/destination) exist and if so process the data.
I tried the importer and all "thank you" are correctly imported into likes. 8)
Is there a way to re-count the likes? I searched into Maintenance but I could not find it. All profiles have 0 likes given/received
Ohhh... right! :-[
I forgot about them. lol
I recounted the topics, but not the members.
ETA: https://github.com/OpenImporter/openimporter/pull/32
Just one word: PERFECT!
thank you for your help
I just added support for the other three like mods I know. My keyboard is dead and the virtual doesn't work either. Darn.
I was just running the importer for some tests (yes I know I'm way behind :P) ... I did not have the likes mod installed so when it got to that step it failed and ended instead of skipping. That step did was not listed as mandatory so not sure what was going on there.
hmm... why things work when I test them? xD
On the super positive side it handled multiple attachment directory properly and a custom avatar upload location :D
hmm... that's odd, when I test it on my local I see what is in the attachment... :-\
Is that from the latest master? I had just pulled that down yesterday and I got the green error box table not found error at that point. Maybe I missed an update :-[
Ahh!
I was looking at the commit dates, but the PR has been merged yesterday morning (ECT), so you may have downloaded the broken one. O:-)
I did a mess when I convert, I didn't remember that I had installed in SMF the Like mod from Ilori. So I convert the forum and I think that only the old likes from Ilori mod were imported and not those from Thank-o-Matic.
Is there a way to import manually the thank-o-matic likes to elkarte?
Thank you in advance
=== edit ===
SOLVED! I did another import from smf and imported into elkarte the two tables elkarte_members and elkarte_message_likes
Glad you solved! :D
Hello Guys!
In the currently openImporter i can't found the thank-o-matic converter but also here in this board.
Where can i find the thank-o-matic converter for a SMF 1.1.20 to Elkarte?
Sorry for my bad english!
Regards
Have you seen this topic? http://www.elkarte.net/community/index.php?topic=3122.0
This one should work, but I did not tested recently
https://github.com/OpenImporter/openimporter/archive/master.zip
===edit===
(http://i.imgur.com/glqgw17.png)
(http://i.imgur.com/zany7Z4.png)
====================
sorry but my post was referred to smf 2.0.x not to smf 1.x