Skip to main content
Recent Posts
21
Support / Re: Text characters change after import?
Last post by Antechinus -
Quite likely. Your other post, showing the degraded/garbage characters in posts, is typical of a problem with UTF-8.
Was the 2.0.17 site in UTF8? Or was it in the SMF default character set (Windows-1252)?

By the way: your screenshot is showing database table, not files. Not quite the same thing. :)  
22
OpenImporter / Re: SMF 2.0.17 to Elkarte 1.1.6 - openimporter query?
Last post by cjazz -
I have been having a problem with some text being incorrectly displayed since I converted my smf 2.0.17 to Elkarte 1.1.6. I am sure that the problem is associated with openimporter.
I set up a test board running smf and all the text characters were displaying fine, carried out a new Elkarte installation which imported with no problems. However, the text problem has now returned on the new Elkarte board.
Please can someone help with this problem, boards been off line for a few days?
23
Support / Re: Text characters change after import?
Last post by cjazz -
After discovering many other broken text characters on the board I carried out a further check through phpMyAdmin
The very bottom database file (collation) is stating 91 files are latin1_swedish_ci 98.9 MiB, all of the other files have a collation of utf8_general_ci.  Could this be the problem?

Edit:
Correct image now added
24
Custom Themes / Re: [Theme] Lazy Day
Last post by Jason -
I didn't use the file, but the issue is no more now. Maybe i will keep checking and see if the issue pops up.
26
Chit Chat / php7.4 preloading
Last post by badmonkey -
Is anyone using php7.4? Are you using preloading for elk? I'm interested in experimenting with preloading. Knowledge to pull it off is lacking. Apparently the initiation script must include an array of all php files in the script (here, elk) as well as appropriate classes and namespaces. Seems it may be a daunting task for the uh, lesser codeworthy. How difficult would this be?
27
Support / Re: Requesting help for batch import from a mailbox based system
Last post by JPalmer -
One of the "issues" with listserv / email style groups is that normally as long as you had a valid email you could post, so users often ended up with multiple "ids"  That is not so bad but it does impede things for an import as you will end up with extra id's and lost user history.

The second issue with  listserv / email  groups, and again this depends on what was used on the backend, is that it can be difficult to determine the correct threading of posts.  Sometimes they will have a header key that allows you to see how things were threaded, other times you just have to go by the message subject and join on that.

If your user list correlates well to the files "From: <User given/last name>", meaning you can find them easily, then I would start by creating all of the id's on the system.  I'd then write a script to go message by message in your file and use some of ElkArte's functions to parse the message and post the message. 

There is no API so to speak, but action_pbe_post in Emailpost_Controller is a place to start.  You would feed that function with an individual raw email that you extract from the list file you have, it would do the rest and make a post.  You would have to come up with the board to post to and do some work on how to thread things, but that function should at least be a start. 

That function is really designed to work specifically with mails from an elkarte system which have a topic key built in, thats how it knows how to thread.  You would have to hot wire that to get what you want, but its doable I believe.

Thanks for your explanation. Guess it's a good idea to use the "email entry door" to the system. That sounds promising to me, and I will certainly give it a try.

I believe the hard wired boards and topics will not be a problem. These messages shall be imported more or less for historic reasons. They will have a dedicated space in the forum, and will not be actively used for future discussions. The old system will be switched off and we want to keep a record of the past, so to speak.

On a lighter note, the software system used is "Listserv" from a company called L-Soft.
28
Support / Re: Requesting help for batch import from a mailbox based system
Last post by Spuds -
One of the "issues" with listserv / email style groups is that normally as long as you had a valid email you could post, so users often ended up with multiple "ids"  That is not so bad but it does impede things for an import as you will end up with extra id's and lost user history.

The second issue with  listserv / email  groups, and again this depends on what was used on the backend, is that it can be difficult to determine the correct threading of posts.  Sometimes they will have a header key that allows you to see how things were threaded, other times you just have to go by the message subject and join on that.

If your user list correlates well to the files "From: <User given/last name>", meaning you can find them easily, then I would start by creating all of the id's on the system.  I'd then write a script to go message by message in your file and use some of ElkArte's functions to parse the message and post the message. 

There is no API so to speak, but action_pbe_post in Emailpost_Controller is a place to start.  You would feed that function with an individual raw email that you extract from the list file you have, it would do the rest and make a post.  You would have to come up with the board to post to and do some work on how to thread things, but that function should at least be a start. 

That function is really designed to work specifically with mails from an elkarte system which have a topic key built in, thats how it knows how to thread.  You would have to hot wire that to get what you want, but its doable I believe.
29
Support / Re: Adding attachments to personal messages?
Last post by radu81 -
You are using a mod to attach images to PM, SMF does not have this option into core.
There is no alternative add-on for Elkarte.

p.s. do you really need this option? I also use other forum software which have this option included into core and I have it disabled. I want to encourage users to use the forum not the PM.
30
Support / Adding attachments to personal messages?
Last post by cjazz -
There does not seem an option to add photos and attachments to personal messages, other that using a url link.  Is there a way to add attachments to personal messages, like my previous SMF board? Thanks