Hello, I have a shortening service site (www.get.al) I was thinking to add a twitter button and a facebook button that gets as source the shorted link The variable for the url is $url I added for the twitter button <a href="http://twitter.com/share" class="twitter-share-button" data-url="'.$url.'" data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> Code (markup): But it doesnt work, I get the message "'url' parameter does not contain a valid URL." Havent tried yet for the facebook like button. What might be the prroblem? Thank you
What is there to explain ? You used this code : <a href="http://twitter.com/share" class="twitter-share-button" data-url="'.$url.'" data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> PHP: And I told you to use urlencode($url) right ? That means that the code you've paste will look like : <a href="http://twitter.com/share" class="twitter-share-button" data-url="'.urlencode($url).'" data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> PHP: Is that not obvious ?!
Sorry mate, I dont know PHP I did what you said, buy same result "'url' parameter does not contain a valid URL." Thank you
How do you assign the value to the variable $url ?!?! Don't you read and try to understand what a man is asking you !?
Hello again tvoodoo, Here is the ajax.php http://pastebin.com/nusL5qEX where the shourted URL is created. I am sorry, but my knowledge in PHP is very low