Support Forum

Disable Smileys?

JL joon lee
joon lee
Member

Hello,

 

I realized that Smileys are using absolute links, so it is causing some problem after we changed our site to HTTPS.

 

is there a way to disable the use of Smileys?

11 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

The answer to the actual question is yes – allowing the use of smileys is a permission you can turn off.

There are problems with this sort of thing. Image ‘src’ urls are added into the post content for many reasons which I wont go into now but… which smileys are causing you any problems? Ones in old posts? Or ones in new posts? WordPress smileys? Simple:Press Smileys? Your own custom smileys? And if it is just a matter of a change to the url of old, existing smileys then that can be done with a simple filter.

So perhaps you could give me more details of what you see as the problem…

By the way – the url for a smiley is constructed from core WordPress functions that should return the ‘scheme’ of http or https. If this is not happening on newly posted smileys then something is missing within WordPress regarding your environment.

JL joon lee
joon lee
Member

Thanks for your detailed reply 🙂 always the best.

 

For example,

https://www.seoultouchup.com/forum/korean-plastic-surgery-clinic/problem-with-post-edit-buttonas-any-of-you-ever-did-breast-augmentation-in-wonjin/

This was posted AFTER we implemented HTTPS. -> so the Green bar looks cool. This smiley uses the correct url, which starts with https.

On the other hand,

https://www.seoultouchup.com/forum/korean-plastic-surgery-clinic/wonjin-vs-bk-vs-regen/

This one is a popular thread but it was posted BEFORE we implemented HTTPS -> so the GREEN bar shows a warning on top. This smiley uses the OLD url, which starts with http.

 

For now, it seems the only way to correct this problem is manually fix all the url of the smiley, post by post, which we will never do. 🙂

——

 

Did I make it clear enough ? 🙂 

YS Yellow Swordfish
Yellow Swordfish
Member

Er… can you explain what you mean by the ‘green bar’? What is that please? All the smileys in the posts seem to be displaying just fine without any error being shown…?

Also – as I did say ion my first post – these could be corrected at display time with a simple filter.

JL joon lee
joon lee
Member

Thanks for the reply

 

By greenbar, I meant this – smileys that were posted after https implementation

https://www.evernote.com/shard/s132/sh/56be3656-14d7-4b87-8842-2bb37bb68b02/87acdec7ba4e405b94055c9345e95ac7

——–smileys that were posted BEFORE https implementation

https://www.evernote.com/shard/s132/sh/fdbe8bf7-6bfc-4b38-b586-e1ce9f47c8ed/7d258fb4d3b498d3b9187cfe4965daac

————–

Sorry the question sounds very technical. hope there is a quick fix to correct the http ahrefs to https ahrefs.

 

Thank you for taking the time for my question.

YS Yellow Swordfish
Yellow Swordfish
Member

SO what does that bit of green mean please?

JL joon lee
joon lee
Member

Thanks for your patience. – Sorry, this is maybe a bit tedious for you, but my original question was, “can we disable Smileys?” and if yes, how? 🙂 because I think the urls of the Smileys that had been posted can’t be changed to new urls.

Let me ask this way.

Is there a way to change all the urls of the Smileys in our previous postings? from http to https?

I believe, the urls don’t automatically change from http to https after our https implementation. It works well for NEW postings but our old postings still point at http. Thus, we want to disable Smiley function.

I hope I made my question clear this time 🙁

YS Yellow Swordfish
Yellow Swordfish
Member

well actually I believe I have also replied twice that this could be fixed with a filter. Simply filter the post content prior to display to change any instance of http in smiley urls to https.

All I actually asked was what was the significance of the green colour in the address bar? I was expecting some sort of error message but i the green colour all that happens and what does it mean.

JL joon lee
joon lee
Member

Thanks for your reply!

I am sorry :(I am not really a techie – maybe I wasn’t really understanding your answer. Sorry to bother you many times.

By simple filter, do you mean that adding a snippet on .httacess? or is there a plugin or option that allows to do that?

YS Yellow Swordfish
Yellow Swordfish
Member

Try adding this to the spFunctions.php file in the SP theme you are using. it is in the /templates folder.

add_filter('sph_display_post_content_filter', 'swap_http', 100);
function swap_http($content) {
    return str_replace('http://www.seoultouchup.com', 'https://www.seoultouchup.com', $content);
}

This has to be exactly as above. Do NOT use a word processor. Use a simple text editor or use the theme editor in the forum admin themes section.

And you never did answer my question about the significance of the ‘green’…

JL joon lee
joon lee
Member

Excellent.

Thanks for the perfect solution. it worked like a charm

Sorry- 🙂 Greenbar was simply for the sake of user-experience. After we implemented https on our site, we had to correct all the absolute urls in our pages/posts – because if it loads incorrectly (i.e. http://), it shows on top of browsers that “this page is insecure”. 🙂 We simply didn’t have time to manually change our forum post urls, thus succumbed to sacrificing user experience (we thought)

Everything is good now 🙂 thanks a lot for your help.

YS Yellow Swordfish
Yellow Swordfish
Member

Good news. Glad it worked out and thanks for the update.