22.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

09-01-2014, 07:39 AM
Post: #1
[JS/PHP TWITTER SCRIPT] REDIRECT AFTER TWEET
PHP Code:
<?php $tweet_txt 'Tweet Text'?>

<div>
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.mysite.com" data-text="<?php echo $tweet_txt?>" data-count="none">Tweet</a>
</div>
 
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

<script type="text/javascript">
twttr.events.bind('tweet', function(event) {
alert("Tweet Successful");
window.location = "http://www.mysite.com"
});
</script> 
09-01-2014, 03:09 PM
Post: #2
RE:
Can you explain how this works
where do you put the code etc
09-01-2014, 10:23 PM (This post was last modified: 09-01-2014 10:23 PM by DripService.)
Post: #3
RE:
(09-01-2014 03:09 PM)pahsurf Wrote:  Can you explain how this works
where do you put the code etc
Hey this code you can use on you directory website
for exemple create php file and put this code in phph file save and open this file




59.gif