• Welcome to Simple Machines Community Forum. Please login or sign up.
December 03, 2021, 05:30:58 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Smileys disabled in conversion?

Started by AzJose, September 25, 2008, 11:15:37 PM

Previous topic - Next topic

AzJose

I did the conversion, but seems that the boards imported have the smileys disabled by default for some reason.

If I create a new board, the smileys work fine.

Am I missing something somewhere?

Thanks :)

Adish - (F.L.A.M.E.R)

did you have the option that disable smileys in this post or something ticked ?

SleePy

Go into phpMyAdmin
Click on your database. Then click smf_messages. Click the Structure tab.

In that table there should be under field column a row with the name "smileysEnabled".
If you look over to the right under the Default column and that is in the same row as the above field. Is the default set to 1?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

September 26, 2008, 05:47:18 PM #3 Last Edit: September 26, 2008, 05:54:19 PM by AzJose
Quote from: SleePy on September 26, 2008, 12:03:52 PM
If you look over to the right under the Default column and that is in the same row as the above field. Is the default set to 1?

Yes it is set to 1. Just set it to 0 and seems to have solved the issue.

SleePy

Well I wasn't suggesting to change the default. Just wanted to know if it was some how different than a default install of SMF.
If you check through some of the messages, do the older ones have this set to 1 or 0?

You can run the following query which will enable smileys on all messages:

UPDATE smf_messages
SET smileysEnabled = 1;

Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

Gotcha, that was my fault sorry.

Did the query and that fixed it. But did just notice that all the view counts for all messages were set to 0.

SleePy

Well unless there is data in the mark read tables I don't think we can get this information back without converting again. Even that may not have total 100% data but may be better than nothing.

What version of yabb where you using btw? Just so I know which converter I am looking at.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

Quote from: SleePy on September 28, 2008, 05:28:25 PM
What version of yabb where you using btw? Just so I know which converter I am looking at.
Currently v2.2.2 - I have no plans to upgrade it any further at this point.

SleePy

Ahh so you where using the yabb 2.2 beta converter :)

Ok, I will look at that and see what is going wrong then. As it should of worked.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose


SleePy

I think it was caused by a incorrect casting of a variable.

Do you need to convert again though? Unless we need to convert again I didn't want to make you break things to test the fix :P (I planned on testing it with a local yabb install I have of a big board and finding smiley posts to see if I fixed it.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

I am fine with testing it.

I am keeping yabb active until it looks like I am good to go with SMF, then I start the joomla 1.5 integration to allow for single joomla and forum logins.  :o Hope it can be done.

SleePy

Try the attached file. I believe this fixed it.
If not I will need to see an example post of with and without smiles (just to compare them).

Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

Will try this and let ya know in a bit. Thanks :)

AzJose

Well no luck on the counts and the smilies are still disabled by default as well.

Asides from that, the last version you posted here ran without a hitch.

SleePy

Do you have a sample post with and without smiles? The files themselves from yabb?
I have a feeling my logic was off but only seeing some other posts can I confirm that.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose

Quote from: SleePy on October 05, 2008, 01:17:08 PM
Do you have a sample post with and without smiles? The files themselves from yabb?
I have a feeling my logic was off but only seeing some other posts can I confirm that.
Mean like after the conversion? And also the source files for the conversion?

SleePy

For before the conversion. I am wanting to see the Yabb message files.
I wanted to compare the message files with my logic I was using to attempt to find out if we where using smilies or not.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

AzJose


SleePy

You can email them to me or pm me their contents. Which ever works.

I have some yabb posts but after looking at them myself I didn't see a difference in logic. So hopefully these will point out what Yabb is now doing to identify a smiley.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Advertisement: