Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Disable Smileys?
Avatar
joon lee
Member
sp_UserOfflineSmall Offline
Apr 22, 2015 - 1:35 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 22, 2015 - 3:30 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joon lee
Member
sp_UserOfflineSmall Offline
Apr 24, 2015 - 6:42 am

Thanks for your detailed reply 🙂 always the best.

 

For example,

https://www.seoultouchup.com/f.....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/f.....-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 ? 🙂 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 24, 2015 - 8:27 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joon lee
Member
sp_UserOfflineSmall Offline
Apr 26, 2015 - 9:56 am

Thanks for the reply

 

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

https://www.evernote.com/shard.....9345e95ac7

--------smileys that were posted BEFORE https implementation

https://www.evernote.com/shard.....fe4965daac

--------------

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 26, 2015 - 10:09 am

SO what does that bit of green mean please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
joon lee
Member
sp_UserOfflineSmall Offline
Apr 27, 2015 - 7:52 am

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 🙁

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 27, 2015 - 8:11 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joon lee
Member
sp_UserOfflineSmall Offline
Apr 30, 2015 - 1:37 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 30, 2015 - 4:28 am

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'...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625