I'm fairly certain this is from IPB conversion some 15 years ago... I have many posts that look like this in the db:
I was thinking I could do a simple update replace like:
but, looking at a modern post with xf emoticons, the raw bbcode like
is stored instead of
Looking a step further to make sure it's not just built in ones, i rebadged the ninja icon as
from day one and it also shows as
in the xf variant now too.
So, i assume the emoticons have all become part of the sprite sheet and show as SVGs instead of direct embedded the path into the xf_post.message field.
What's the proper way to update these posts? is replacing the path good enough as a patch? Or will that set me up for additional future failure when folder structures inevitably change again (xf3?)
Worse, my icon names don't always line up to their short code
eg
is actually
Code:
text text text [IMG]style_emoticons/<#EMO_DIR#>/hmm.gif[/IMG]
text text
I was thinking I could do a simple update replace like:
Code:
UPDATE xf_post SET message = REPLACE(message,'[IMG]style_emoticons/<#EMO_DIR#>/','[IMG]styles/default/xenforo/smilies/');
but, looking at a modern post with xf emoticons, the raw bbcode like
Code:
:)
Code:
styles/default/xenforo/smilies/smile.gif
Looking a step further to make sure it's not just built in ones, i rebadged the ninja icon as
Code:
:ph34r:
Code:
:ph34r:
So, i assume the emoticons have all become part of the sprite sheet and show as SVGs instead of direct embedded the path into the xf_post.message field.
What's the proper way to update these posts? is replacing the path good enough as a patch? Or will that set me up for additional future failure when folder structures inevitably change again (xf3?)
Worse, my icon names don't always line up to their short code
eg
Code:
:shrug2:
Code:
shrug_n.gif
Last edited: