Icy Phoenix

     
 

Share Topic With Twitter

Category: General
Version Icy Phoenix 2.0 Beta (PHP 5.x - MySQL 5.x)
Description
TheSteffen
Thu 29 Mar, 2012 22:30
If you want to share a topic with twitter, it is working fine

But if you have a special character in you topic title, you get an error

Code: [Hide] [Select]
Invalid Unicode value in one or more parameters /intent/tweet?source=webclient&text=IPad+3+-++Verbindungsabbr%FCche+Beim+Mobilfunk-Surfen+-+http%3A%2F%2Fwww.computerguard.de%2Fipad-3-verbindungsabbrueche-beim-mobilfunk-surfen-vt7636.html


The problem here was this "Verbindungsabbr%FCche" = Verbindungsabbrüche
So üöäß and maybe some other are not working.
Could be it is a problem of twitter.
But maybe we can use clean name for this.

EDIT: If you cange this, it is working fine...
Not sure it will work in all old browsers
OPEN templates\default\social_bookmarks.tpl
FIND
Code: [Hide] [Select]
<a href="http://twitter.com/home?status={TOPIC_TITLE_ENC}%20-%20{TOPIC_URL_ENC}" rel="nofollow" target="_blank"><img src="{FULL_SITE_PATH}images/social_bm/sb_twitter.png" alt="Twitter" title="Twitter" border="0" /></a>

REPLACE WITH
Code: [Hide] [Select]
<a href="http://twitter.com/home?status={TOPIC_TITLE}%20-%20{TOPIC_URL_ENC}" rel="nofollow" target="_blank"><img src="{FULL_SITE_PATH}images/social_bm/sb_twitter.png" alt="Twitter" title="Twitter" border="0" /></a>
Reply
TheSteffen
Fri 18 May, 2012 16:39
It's Twitter related... because URLs are encoded properly.

We may sanitize the name, but I'm not sure if it is what we really want...

Let's keep this for future times...
Details Assigned To: Mighty Gorgon
Priority: Very Low
Status: Not A Bug
Fixed: Yes
 




 

  cron