[Skip to main content](#vessel-content)

#   Social Networks Plugin - %20 instead of spaces

##

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

10 years 6 months ago -  10 years 6 months ago [\#238673](#238673) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238673 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")* was created by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")*

-- url of the page with the problem -- : [ hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html](http://hatsukoi.co.uk/all-departments/homeware/product/8-three-crochet-baskets.html)
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.

When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:
[ hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html](http://hatsukoi.co.uk/all-departments/homeware/product/8-three-crochet-baskets.html)
"A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!"

It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.

Thanks
Leila

Last edit: 10 years 6 months ago by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile"). Reason: Typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 6 months ago -  10 years 6 months ago [\#238679](#238679) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238679 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

Hello,

Can you try to change code in your hikashopsocial.php, here :
**YourWebsite**/plugins/system/hikashopsocial/hikashopsocial.php

Look for this line, around line 230 and replace this :
Code:

return '&lt;span class="hikashop_social_pinterest'.$c.'"&gt;&lt;a href="//pinterest.com/pin/create/button/?url='.urlencode($url).'&amp;media='.urlencode($imageUrl).'&amp;description='.$description.'" class="pin-it-button" count-layout="'.$count.'"&gt;&lt;img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /&gt;&lt;/a&gt;&lt;/span&gt;';

For this :
Code:

return '&lt;span class="hikashop_social_pinterest'.$c.'"&gt;&lt;a href="//pinterest.com/pin/create/button/?url='.urlencode($url).'&amp;media='.urlencode($imageUrl).'&amp;description='.urldecode($description).'" class="pin-it-button" count-layout="'.$count.'"&gt;&lt;img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /&gt;&lt;/a&gt;&lt;/span&gt;';

The important part is :
- **Before** : "&amp;description='.$description"
- **After** : "&amp;description='.**urldecode**($description)"

I think that's will solve your trouble, but I'm waiting news from you.

Regards.

Last edit: 10 years 6 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

10 years 6 months ago -  10 years 6 months ago [\#238857](#238857) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  Replied by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238857 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

Thanks for your reply, unfortunately it didn't help. Maybe there's something else that needs to be changed...?

Just to test, I changed 'decode' to 'encode' and got '+' instead of '%20'! So I know it's the right file. Let me know if you have any other suggestions.

Many thanks
Leila

Last edit: 10 years 6 months ago by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile"). Reason: Typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 6 months ago -  10 years 6 months ago [\#238878](#238878) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238878 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

Hello,

I'm quite astonished by your return, what did you mean by that didn't help ?...
I make some tests see screenshot on below :

[ ![decodeTest.png](/forum/attachment/31168) ](/forum/attachment/31168 "decodeTest.png")

Can you make a screenshot of description **WITH** the modification I suggested earlier to see the results.

Awaiting news from you.

Regards,

- [ ![decodeTest.png](/forum/attachment/31168) ](/forum/attachment/31168 "decodeTest.png") [ ](/forum/attachment/31168?download=1 "decodeTest.png")

Last edit: 10 years 6 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

10 years 6 months ago [\#238896](#238896) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  Replied by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238896 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

Hi Philippe

FYI, I am away for two weeks now, but I very much appreciate your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 6 months ago [\#238909](#238909) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#238909 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

Hi,

You should change the line: Code:

return '&lt;span class="hikashop_social_pinterest'.$c.'"&gt;&lt;a href="//pinterest.com/pin/create/button/?url='.urlencode($url).'&amp;media='.urlencode($imageUrl).'&amp;description='.$description.'" class="pin-it-button" count-layout="'.$count.'"&gt;&lt;img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /&gt;&lt;/a&gt;&lt;/span&gt;';

to:
Code:

return '&lt;span class="hikashop_social_pinterest'.$c.'"&gt;&lt;a href="//pinterest.com/pin/create/button/?url='.urlencode($url).'&amp;media='.urlencode($imageUrl).'&amp;description='.rawurlencode($description).'" class="pin-it-button" count-layout="'.$count.'"&gt;&lt;img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /&gt;&lt;/a&gt;&lt;/span&gt;';

in the file plugins/system/hikashopsocial/hikashopsocial.php
I've tested it on my end and it fixes the problem.

The following user(s) said Thank You: [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

10 years 5 months ago [\#241911](#241911) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  Replied by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")* on topic *[Social Networks Plugin - %20 instead of spaces](/forum/2-general-talk-about-hikashop/884239-social-networks-plugin-20-instead-of-spaces#241911 "-- url of the page with the problem -- :   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I am using the Hikashop Social Networks Plugin on product pages and have a strange problem with the Pinterest button.  When you click to share on Pinterest the description below the image includes '%20' instead of spaces throughout the text, eg:   hatsukoi.co.uk/all-departments/homeware/...crochet-baskets.html  &quot;A%20set%20of%20three%20nesting%20baskets%20in%20seaside%20colours.%C2%A0%20The%20baskets%20have%20been%20hand-crocheted%20and%20lined%20with%20a%20contrasting%20fabric.Made%20from%20100%%20cotton%20yarn,%20with%20100%%20cotton%20lining.Ideal%20for%20your%20work%20desk%20or%20dressing%20table!&quot;  It's a shame because otherwise the plugin works perfectly! Does anyone have any idea why this would be happening and how I might solve it.  Thanks Leila")*

The problem seems to have fixed itself - I don't know if this is because of a recent update or something else... Anyway, I just wanted to let you know and, as always, I am very grateful for your fantastic product and great support.

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4NDIzOS1zb2NpYWwtbmV0d29ya3MtcGx1Z2luLTIwLWluc3RlYWQtb2Ytc3BhY2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.107 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
