Coder Social home page Coder Social logo

tweet.js-mod's Introduction

v1.4

Why?

seaofclouds / tweet has always been one of my preferred methods of client-side twitter integration. With the advent of Twitter's 1.1 API and the deprecation of 1.0, client side timeline fetching and parsing is no longer feasable due to the authentication restrictions imposed by OAuth. This exists to serve as a layer in between, serving the JSON directly to Tweet.js and caching it in a flat .json file to compensate for the v1.1 API's access limitations on sites which require more than ~12 loads of a user's timeline per minute.

This mod works as an intermediary between seaofclouds / tweet and the twitter JSON api which it uses to fetch tweets. It handles the server-side authentication process and (optionally) caches the JSON file locally to avoid being throttled, which it then passes off to seaofclouds / tweet as normal. Simple yet effective.

Features

  • Works with Twitter API v1.1.
  • Caches resources server-side in flat JSON files.
  • Easily configurable.
  • Supports all features of seaofclouds / tweet.
  • Supports OAuth Token Authentication (via Twitter App)

How to use

For existing seaofclouds / tweet users:

  1. Acquire /twitter/. How you wish to structure the files is up to you, but by default it is designed to be placed in the docroot of your website as a whole. (IE, domain.com/twitter).

  2. Replace your existing JS reference to jquery.tweet.js to the modified one provided. <script type="text/javascript" charset="utf-8" src="/twitter/jquery.tweet.js"></script>

  3. You need to have a twitter App for your usage in order to obtain OAuth credentials, see https://dev.twitter.com/apps for help.

  4. After creating your app, configure index.php with your OAuth credentials, and enable caching if you desire. Your cache directory of choice must be writable by PHP.

  5. If you keep index.php somewhere besides /twitter/, specify the path to it via the modpath option, relative to your domain. For example:

<script type="text/javascript">
$(document).ready(function() {
    $('.twitterfeed').tweet({
        modpath: '/assets/twitter/',
        count: 5,
        loading_text: 'loading twitter feed...',
        /* etc... */
    });
</script>
  1. That's all.

Caveats

  • Does not spontaneously spawn kittens. [in progress]

Support

If you are having issues, set $debug = true; in index.php. Errors should be logged to the JS console on execution.

If you still can't figure it out, feel free to contact me or submit an issue.

Unfortunately, I can not guarantee any support for this. I will, however, provide help and support within the constraints of my schedule.

tweet.js-mod's People

Contributors

colorcrate avatar koraysels avatar stanscates avatar wietsewarendorff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tweet.js-mod's Issues

No Errors, No Tweets, JS Is Firing

Debug is set to on, cache set to off and there should not be any file-permissions issues (tried from 644 to 777 on all files in that directory).

We've tried relative/static paths for everything and it will show the loading_text but then nothing replaces it. I also went ahead and made a new app so the keys are all fresh as well.

Link: http://rnd.madmonkdev.com/twitter/

I hope someone can steer us in the right direction.

.bind loaded Method

Hi there,

I have just moved a site from the original seaofclouds Tweet.js to yours, I'm really impressed with how easy it was to move.

I'm having an issue with the loaded firing before the tweets are added?

Thanks,
Warren

tweet.js: Could not resolve host: [ (Could not contact DNS servers)

Getting two error messages in chrome console:

tweet.js: Could not resolve host: [ (Could not contact DNS servers) ] jquery.tweet.js:277
Uncaught TypeError: Cannot read property 'statuses' of null jquery.tweet.js:285

In FF firebug console I get:

[18:25:17.287] TypeError: response is null @ http://www.purisoftwater.com/twitter/jquery.tweet.js:285

I have a temporary page set up right now to test the feed and it's not working: http://www.purisoftwater.com/index-test.html

Any help on resolving this issue would be greatly appreciated.

Array of usernames not working

Hi,

I was using seaofclouds version until the API updates without problem. I replaced the old javascript with this new one, configured the OAuth thing and it's working like a charm. However, I'm trying to pass an array of usernames instead of a single user string (which was working perfectly in the seaofclouds' version) and I get this javascript error: "Uncaught TypeError: Cannot read property 'statuses' of null".

Any ideas about this?

Thanks!

The Widget working on a localhost, but not working on webhost !!

Hi

I found a strange issue, when i check the live preview on my localhost, i found it's working fine. But when upload to my webhost, i found that the widget stop working and some other plugin also stop working, and if i deleted the index.php file, the other widgets back to work again.

I thought that may be there is an update to the plugin, and i found it's up to date although if it's working on my localhost, it should also work on webhost .Here is live preview http://http://moradxd.zxq.net/except/4/

Any idea for that ?

Regards

tweet.js: Twitter Error: "Invalid or expired token", Error Code #89

After setting $debug = true; (index.php) I got this logged in the JS console.

tweet.js: Twitter Error: "Invalid or expired token", Error Code #89 Uncaught TypeError: Cannot read property 'statuses' of null

I double checked my consumer and user tokens and they seem correct. Where can I find a list of error code explanations?

Tweets load, but never show up in the source code!

I'm scratching my head on this one.

Here's an isolated page with Tweet.js: http://hypedance.co/blah.php

You'll see a bunch of tweets show up on your screen in Google Chrome. But if you inspect the page you won't find any of them in there. Just the "loading..." text.

Load the same page in Firefox and you don't see any tweets. But if you refresh often enough, you'll see all the same tweets from Chrome for a nanosecond.

I'm not getting any javascript errors.

What in the heck is going on?

Can't search for hash tag

It looks like the query operators no longer work, so while I can retrieve tweets from a username I can't show posts with a specific hash tag. When I try I get the following console error: tweet.js: Twitter Error: "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", Error Code #68

Error Code #34

Morning!
I have an error "Twitter Error: "Sorry, that page does not exist", Error Code #34"
Application created, all keys/secrets filled up, but i'm still receiving this error in php/js console. Debug is "true". How to debug/fix this issue?
Thank you.

The php return errors, and the js code stop with error

The php script return this response:

{"response":{"errors":[{"message":"Rate limit exceeded","code":88}]},"message":false}

My client using jquery.tweet.min.js and it stop with this error:

Uncaught TypeError: Cannot read property 'name' of undefined jquery.tweet.min.js:12

Right now I'm trying to modify your js code so it will stop when response have errors instead of try to map it using extract_template_data. I'll send you the patch after I successed make it work.

Thanks.

No error but no tweets (no 'loading' message)

Hi Stan,

I have eventually managed to apply the mod and get everything working. However the tweets list appears empty. While debugging I can see the JSON file which is delivered correctly from Twitter. It is also cached to disk on my local copy (using wamp, since the server one is not writable). No error appears to occur while checking with firebug.

Could you please have a look at the website and tell me what might be wrong? I've also contacted Steve and he directed me to you since, he said, you have changed the javascript code.
http://www.hci.vt.edu/

Thanks a lot!

Tweets not embedded in designated DIV

Hello! Great job! This is an amazing solution to deal with API 1 being deprecated (I imagine you are getting a lot of downloads).

We had been using seaofclouds / tweet on our site until now to simple grab the most recent 3 tweets from our own account. We installed your updated JS as well as associated PHP files. Initially the DIV where tweets were supposed to appear simply remained blank. No error on the console or in PHP log.

After some digging we found that the process was working, with the PHP proxy correctly responding and sending the JSON message back with the messages information. But for some reason the JS was not embedding the messages in the designated DIV.

We are not that experienced with JS so we couldn't completely understand your code. However, we added the following code in line 301:

$.empty().append(list);

And it started working.

However, one more issue remains: in our home page we have 2 DIVs with the same class that we want populated with the same output. This used to work, but now only the first DIV gets populated. We tried using the following with "each" but it didn't work:

jQuery('div.tweets').each(function(){ jQuery(this).tweet({stuffhere}); });

If you would like to check our code:

Home: http://www.lyquix.com/?ModPagespeed=off (the additional parameter is to show a non-minified output). The div,tweets are on line 159 and 435

JS with the added code on line 301: http://www.lyquix.com/templates/lyquixhome/twitter/jquery.tweet.js

And the JS where we execute things, starting on line 34: http://www.lyquix.com/templates/lyquixhome/js/scripts.js

Security vulnerability: Twitter credentials may be vulnerable to capture

Disclaimer: I'm not an expert on OAuth or cryptography, so please feel free to dispute this!

I believe I've discovered a security vulnerability that could make a user's Twitter credentials vulnerable to capture. Because the Twitter API hostname is configurable via the host parameter, a malicious user could set up their own API endpoint to eavesdrop on Twitter API requests.

Now, the requests are cryptographically signed, however, according to section 11.10 of the OAuth 1.0A documentation:

…eavesdroppers will have full access to OAuth requests and signatures, and will thus be able to mount offline brute-force attacks to recover the Consumer's credentials used. Service Providers should be careful to assign Token Secrets and Consumer Secrets which are long enough - and random enough - to resist such attacks for at least the length of time that the secrets are valid.

In addition, according to section 11.12:

SHA-1, the hash algorithm used in HMAC-SHA1 signatures, has been shown to have a number of cryptographic weaknesses that significantly reduce its resistance to collision attacks. Practically speaking, these weaknesses are difficult to exploit, and by themselves do not pose a significant risk to users of OAuth. They may, however, make more efficient attacks possible, and NIST has announced that it will phase out use of SHA-1 by 2010.

Setting up the Twitter App

Sorry to seem dim - I am moving over from the old version due to the API update now blocking tweet loading.

I have followed the installation instructions for this revised version however I cannot get th etweets to load and I imagine it maybe something at the Twitter Auth end.

I have followed the setup instructions and got all the necessary auth data and input into the index.php - All I can imagine that is going wrong is it is not authorising. Do I need to set a callback URL and do I need to change the Request Settings under the OAuth Tool tab?

Would be great to flesh out the instructions as I am sure when people realise there will be a flood of folk tryin gto update.

Thanks alot - and I hope I can get this to work. (ps the site is here www.ponyexpressclub.com )

Thanks

modpath

So I have tried every way to get this mod to work, created several twitter applications, used different authentication keys - and all i got was the "loading tweets..." text.

Finally I realized that I was initializing the tweet function the same way i had done it in the past with seaofclouds. I realized that adding a modpath: rule to my script was not helping, but if I made the change "assets/twitter/" directly to the jquery.tweet.js file itself, everything worked as expected.

I then used the "ticker" workaround provided in another issue, kept everything the same, and included my updated tweet.js file and it worked like a charm. All I did after that was create a directory for my cached files and i was good to go.

Hopefully my experience will help others with the same issues.

Thanks

Making the cache directory writable by PHP

Regarding step 4, "Your cache directory of choice must be writable by PHP"...

How do you make the cache directory writable by PHP without making it world writable drwxrwxrwx?

For security reasons, we don't allow world writable folders to be accessible to everyone via the web.

I tried restricting the folder's permissions slightly drwxrwxr-x but the debugger returns this:
tweet.js: Cache directory is not writable jquery.tweet.js:277

jQuery AJAX JSON method does not work cross-domain on IE8

Hi, I love your reworking of the Sea of Clouds twitter plugin. It has really been useful to me since Twitter's 1.0 API was retired. Thank you for all your work on this and making it available publicly.

I am experiencing a problem with cross-domain JSON on Internet Explorer 8. I have been able to fix the cross-domain limitations in most browsers by adding:
header('Access-Control-Allow-Origin: *');
to the top of the PHP file. And I have been able to fix it in IE9 by adding
$.support.cors = true;
to the top of my javascript.

However, IE8 still doesn't like it, the JSON request is failing. I have been reading lots about IE8 using XDomainRequest (XDR) instead of XMLHttpRequest, but it's way beyond my comprehension.

Some information on a workaround is here, specifying a XDR request for IE with a jQuery AJAX fallback: http://graphicmaniacs.com/note/getting-a-cross-domain-json-with-jquery-in-internet-explorer-8-and-later/

I wanted to let you know about this limitation, in case you wanted to work it into a later release of the plugin. Thanks again.

Cannot read property 'results' of null

The plugin was working for a while now. I'm guessing upgrading to jQuery 1.11.0 causes the following error:

Chrome reports:

'Uncaught TypeError: Cannot read property 'statuses' of null
line 285

if(response.statuses !== undefined) {
resp = response.statuses;
} else if(response.results !== undefined) {
resp = response.results;
} else {
resp = response;
}

Loading tweets - nothing else is happening

Hi

Very confused on this one. I've set up the API tokens and updated everything. I have the feed working on 2 other sites (different accounts) and so am 99% sure I've set it all up correctly, however all i get is a 'loading tweets' method and nothing else.

The error console states:

Error: TypeError: response is null
Source File: XXXXXXXXXXX/includes/twitter/jquery.tweet.js
Line: 285

Any ideas? Thanks

Site is here: http://www.wearecheekysparrow.co.uk/test-home/

Configuring the App

Greetings,

After creating the App, could you confirm there's nothing to change in the Request Settings block in the OAuth tab?

Indeed, I followed step by step your how-to, but nothing appears on my pages, so I wonder if I missed a step during the configuration (the debug option does not write anything at all...).

Thanks.

Ticker Function

Hi Stan

Thanks for your mod script, I got this to work on my site, but the ticker functions I had working with the original tweet.js script, do not work with your updated script.

1.Ticker Function

Can you help with this getting the above functions to work again with your mod script?

Thanks Stan

Cheers
Van

My js code in the twitter page

<script type='text/javascript'> jQuery(function($){ $(" to ").tweet({ username: "NAME", page: 1, avatar_size: 32, count: 20, loading_text: "loading ..." }).bind("loaded",function(){$(this).find("a").attr("target","_blank"); }).bind("loaded", function() { var ul = $(this).find(".tweet_list"); var ticker = function() { setTimeout(function() { var top = ul.position().top; var h = ul.height(); var incr = (h / ul.children().length); var newTop = top - incr; if (h + newTop <= 0) newTop = 0; ul.animate( {top: newTop}, 500 ); ticker(); }, 5000); }; ticker(); }); }); </script>

Getting user info from WordPress Widget

Hi there,

I've been using tweet.js to implement Twitter into an existing WordPress widget I have created however I'm having difficulty getting the users info (consumer key etc) from the widget to the index.php file.

I've set up fields for the user to add their info in, that's working fine, however it's the passing the info to the index.php file I'm having difficulty with.

I've added another param to the call so when initiating the library in my widget file, as well as passing in the username, modpath etc, I can add the consumer key on. This can then be retrieved in the jquery.tweet.js file and used by putting s.consumer_key.

As you know though, I need to add the consumer key and other info into the index.php file. I've tried my best however PHP is not my strongest language, so any help would be greatly appreciated.

Cheers,
Martin

Loading Tweets..nothing else?

Hi,
I come to you in my time of need.

I believe I have this setup right...

Here is my test URL:

http://www.philau.edu:81/library/twitter2.html

On that page, I have this:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript">// </script> <script charset="utf-8" src="http://www.philau.edu/library/twitter/jquery.tweet.js" type="text/javascript">// </script> <script type="text/javascript">// </script>

I have the twitter folder at the document root

In the Lib folder, I modified tempOAuth.php with my Twitter app credentials.

I also modified index.php with the Twitter app credentials.

In jquery.tweet.js, I changed the modpath variable to: "/twitter/"; I also renamed it to '/twitter/index.php',

I did not modify anything else.

Using firebug, I get this:

http://www.philau.edu:81/library/twitter/index.php 200 OK

On the NET tab...so I know the path is correct.

Any idea what I am doing wrong?

Thanks so much,

Michael Cabus

Missing parenthese after argument list

Greetings,

Assuming the App configuration is correct (according to issue #28), I started again to enforce this script from the beginning.

With te debug option activated, I now get this error (related to the configuration set in the header):

[...] SyntaxError: missing ) after argument list @ http://localhost/mysite/work/:36

For informations, this is the content of the configuration that I set:

<script type="text/javascript">
$(document).ready(function() {
    $('.tweet').tweet({
        username: 'username',
        list: null,
        favorites: false,
        avatar_size: null,
        count: 4
    });
}
</script>

Thanks if somebody gets an idea about this issue...

refresh_interval

refresh_interval doesn't seem to work.
Is that a known issue?

same problem as others - TypeError: response is null

I got this working on 2 sites perfectly
But on third site it just will not work - I've spent hours on it.
I think it must be something to do with the server or the CMS structure causing paths to not resolve.
There is no URL rewrite
It's a VPS
PHP version 5.2.17
CMS is an unknown tool by someone else
I can't figure it out.. help

Error 'null' is not an object (evaluating 'data.message')

Hi Stan! your code works fine on all of my sites! Thanks! I have a problem (tweets not laoding) with 1 site. Everything is configured the same as the other sites but I get an error in the js console "'null' is not an object (evaluating 'data.message')" on line 264 of jquery.tweet.js. Any ideas? I tried everything but can't resolve it.

I followed all steps of how to use, and still not working. Confused!

Hi there.

I have followed all steps about how to use the plugin and still could make it working right now!

I added twitter folder(containing jquery.tweet.js, index.php and the lib folder which containing tmhOAuth.php and tmhUtilities.php) in js folder. I added modpath: './js/twitter/' to the twitter widget js code in custom.js and set Path to tmhOAuth libraries to private $lib = './lib/';

I'm just dealing with php and javascript as a user. So i hope you please help me because i'm now about over 2 weeks trying to make it work, but with no success.

Her is live preview http://moradxd.zxq.net/lumenosity/normal/blog.html

I hope to get help.

Thanks

Tweets not loading since Wordpress update to 3.5.2

Hi Stan

My Tweets don't seem to be loading anymore since I updated Wordpress to the current version 3.5.2. I moved the call for tweet to the window load function but it's still not pulling in. I get the following error in the console:

Uncaught TypeError: Cannot read property 'statuses' of null

Just wondered if you had any idea what might be causing it?

Many thanks

issue when make APP data equal variable , not static key

hi, i have issue now , like that :

when i use this code
private $consumer_key = 'gfgdgbdjdgffhghghghghghghg'; // my Consumer Key

work fine...

but when i use variable instead static key like that :
private $consumer_key = $consumer_key_from_theme_options;

give me syntax error ..?

so now how can i use variables instead static number or keys !!! ???

wait your replay thanks.

Data is null

Hi, got this error message in firebug:

TypeError: data is null
if(data.message) {

row 277

Integrating with Wordpress

Hi I am having issues when integrating with wordpress - if I put the twitter folder in the root directory the tweet does get pulled in and shown however this then breaks all the other JavaScript on the page (isotope), is there a known reason why this may be? Also is there anyway I can initiate the twitter.js-mod from inside the theme folder as opposed to from the root? I have tried putting the twitter folder in my theme folder but it doesnt seem to be picking up or displaying any tweets.

Any help would be appreciated - cheers!

Can we apply our own CSS stylesheet on the tweeter feeds?

Not an issue. More of a general inquiry.

I raised a new issue under this link.

seaofclouds/tweet#379

As I'm aware for the fact that there's been a lot chances going on since the move to API 1.1 thus I'm trying to keep up to speed with its latest developments what used to work can still work or doesnt.

I'd appreciate if someone can assist me with this.

Thanks!

nothing fires up

Hi there,

first of all thanks for your work. On my site I can see with firebug that I do receive the response from twitter, but nothing happens: tried both bind and isseu 8 methods, can't make it to work.
Here is my call:

jQuery(window).load(function() {
jQuery(".twitter-list-wrap").tweet({
modpath: 'http://www.ccsteam.it/sites/all/themes/zen/ccsteam/twitter/',
join_text: "auto",
username: "ccsteamitalia",
count: 6,
auto_join_text_default: "",
auto_join_text_ed: "",
auto_join_text_ing: "",
auto_join_text_reply: "",
auto_join_text_url: "",
fetch: 6,
template: "{text}~",
loading_text: "Caricamento tweets..."
})
});
$(document).ready(function() {
pic = $(".tweet_list").children("li");
numImgs = pic.length;
arrLeft = new Array(numImgs);
for (i=0;i<numImgs;i++){
totalWidth=0;
for(n=0;n<i;n++){
totalWidth += $(pic[n]).width();
}
arrLeft[i] = totalWidth;
$(pic[i]).css("left",totalWidth);
}
myInterval = setInterval("flexiScroll()",speed);
$(pic).show();
jQuery('.twitter-stream').show();
jQuery('.twitter-stream li').each(function() {
jQuery(this).css('width', jQuery(this).width() + 10 + 'px');
});
});

Any help very appreciated.

twitter_search_url

Thanks for your great work!

Everything is working but search.

I am not an expert but i managed it by changing:
line: 36 Should be: api.twitter.com

And on line 193:

host: s.twitter_search_url,
url: "/1.1/search/tweets.json",
parameters: $.extend({}, defaults, {

                    q: query,

Issue with paging

I have the old code for paging and it seems, it can only fetch one at a time. The paging feature seems to no longer be working. I am in wordpress on this one, so the modpath is a little strange. But, it seems to pull the tweet, just not more than one. Any help?

var options = {
username: "cebocampbell",
modpath: '/twitter/',
page: 1,
avatar_size: 32,
count: 1,
fetch: 5, // 1 + count
loading_text: "loading …"
};

            var widget = $("#paging .widget"),
              next = $("#paging .next"),
              prev = $("#paging .prev");

            var enable = function(el, yes) {
              yes ? $(el).removeAttr('disabled') :
                    $(el).attr('disabled', true);
            };

            var stepClick = function(incr) {
              return function() {
                options.page = options.page + incr;
                enable(this, false);
                widget.tweet(options);
              };
            };

            next.bind("checkstate", function() {
              enable(this, widget.find("li").length == options.count)
            }).click(stepClick(1));

            prev.bind("checkstate", function() {
              enable(this, options.page > 1)
            }).click(stepClick(-1));

            widget.tweet(options).bind("loaded", function() { next.add(prev).trigger("checkstate"); });
          });

Username Array / Lists

The functionality to pass in an array of usernames from the original tweet.js seems to be missing. I also had some trouble setting up a list for display, it seemed to show less tweets than the value set in "count".

Separately from this, I had to fiddle a little with the PHP to make sure it used HTTPS, and also modified it to use api.twitter.com/1.1 rather than version 1. Some of the URLs seemed incorrect, too, such as lists/list.json rather than lists/statuses.json, but that just came about while I was fiddling, might not actually impact the performance!

Loading tweets...

The above is all I get...the php files are in twitter directory in root. JS is in a different dir, but that shouldn't matter should it?

This is the js called:
$(".twitter_list").tweet({
join_text: "auto",
username: "luftwalk",
avatar_size: 48,
count: 8,
auto_join_text_default: " we said, ",
auto_join_text_ed: " we ",
auto_join_text_ing: " we were ",
auto_join_text_reply: " we replied ",
auto_join_text_url: " we were checking out ",
loading_text: "loading tweets..."
});

The index.php is updated with my app keys and secrets and the php error log shows nothing.

You can see it here:
http://codes-direct.com/

Any ideas?

Cannot read property 'length' of null

Everything is in the "normal" place but whenever the script runs I get this error:

Cannot read property 'length' of null ... jquery.tweet.js:179

Debug is set to True and cache set to False. I've tried switching from relative to static links for my /lib/ folder but no matter what I get the same error.

I am testing this with a Twitter app key that is fairly old, if that has anything to do with the matter.

EDIT: Found the issue in the script call.

show pics

would be interesting to show the images of the tweets parsing it like

"couldn't connect to host"

Hello,

I've installed this very useful plugin on a couple of sites with good results. However, I'm now trying it on another site but without luck...

I've created an App on Twitter and have all the keys, tokens, and secrets and set up everything on the site.

The plugin seems to be working insofar as it creates a ul tag but it doesn't populate with tweets. When I turn on degubbing in the index.php the error message that appears is "couldn't connect to host".

Do you have any idea what might be causing this? And perhaps how to resolve it?

Many thanks in advance!

Another 'Loading Tweets' issue

screen shot 2013-07-18 at 17 38 29
Hi

Kind of puling my hair out also with my Wordpress site.

So I've downloaded the files, amended index.php with my unique tokens etc and uploaded everything to the server and it just shows 'Loading Tweets' and nothing else - http://www.welookwelike.com/design-services/

Here's the JS in my header.php file..

<script type='text/javascript'> jQuery(function($){ $(".tweet").tweet({ username: "WeLookWeLIke", join_text: "auto", count: 1, auto_join_text_default: "I said,", auto_join_text_ed: "I", auto_join_text_ing: "I was", auto_join_text_reply: "I replied to", auto_join_text_url: "I was checking out", loading_text: "loading tweets..." }); }); </script>

NOTE: My twitter folder is in the server root i.e. outside of the Wordpress theme - should it be moved inside and I change the modpath to something along the lines of ./wp_content/themes/ ...

Any help would be appreciated - not sure what else to try.

Ta

Tweets not loading even in default Tweet! webpage

Hello, I'm trying to deploy a webpage using this mod for the Tweet! plugin http://tweet.seaofclouds.com/

After many unsuccessful attempts to deploy it directly on my webpage and with my custom folder structure, I decided to give a try to use the Tweet! plugin webpage (so I didn't have to specify the modpath option). However, same result is obtained. I'm using:

Windows 7 Professional x86
Apache HTTP Server 2.2.22.
PHP 5.2.17 VC6 Thread-Safe (already checked it's working with phpinfo test).

I've downloaded the /twitter/ folder from the mod and placed it in the root of htdocs, as well as replaced in the index.php the data for OAuth to work.
Then, also in the root of htdocs, I have the /tweet/ folder which contains the Tweet! plugin webpage. I've changed the JS reference from jquery.tweet.cs to http://localhost:57500/twitter/jquery.tweet.js (Apache is listening to port number 57500). Debug in index.php is set to true.

When I try to load the webpage in either Firefox or Chrome (lastest version of both), in the console I get 404 for http://localhost:57500/twitter/ (which obviously exists, and can be browsed to from both the filesystem and the Internet browser), and inifinite 'loading tweets' message. Same behavior for Internet Explorer 9, but no message in the console.

Anyone can confirm if this is a bug/problem or is it hapenning only to me?

problem when using other twitter accounts, just my account which make app by it work fine.

hi, first thanks for your update in this plugin

now i using your update for seaofclouds / tweet.
and working fine with me ...okay

but i need to ask about something :
i using this plugin in my themes , which sure more people can use theme , so are every one will need to create his own twitter app to can make this plugin work fine ...?
because when it try to use other twitter account , all time give me my tweets enough ..!!!!!

so are every one when use my theme will need to create his app ..???

to fill this options :

// Your Twitter App Consumer Key
private $consumer_key = 'YOUR_CONSUMER_KEY';

// Your Twitter App Consumer Secret
private $consumer_secret = 'YOUR_CONSUMER_SECRET';

// Your Twitter App Access Token
private $user_token      = 'YOUR_ACCESS_TOKEN';

// Your Twitter App Access Token Secret
private $user_secret     = 'YOUR_ACCESS_TOKEN_SECRET';

X-Domain

If I am embedding tweets on a site (e.g. hosted eComm) will your solution work if the scripts etc are hosted at a diff domain - e.g. CDN for the eComm site in question or personal server?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.