News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[BBCode] Twitter

Started by Suki, May 16, 2010, 05:09:23 AM

Previous topic - Next topic

shazoo!

Quote from: Suki on April 25, 2012, 09:56:01 AM
It shouldn't happen since that tag is just an anchor tag, you can open $sourcedir/Post.php

find: <img>  and replace with <img><a>  to allow anchor tags
That worked like a charm!

FYI, https://twitter.com/#!/alyankovic/status/192633401952571392 doens't work, but https://twitter.com/alyankovic/status/192633401952571392 does.

Suki

Yes, I'm aware of the issue, I just haven't had the time to fix it. Haven't had the time to check the regex.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

shazoo!

Thank you for this mod, Suki!

eforhan

If one views a single tweet, under it should be an "Embed this tweet [nofollow]" link.  From there, we see three tabs -- one of which says "Shortcode". 
It gives something like this:

[tweet https://twitter.com/SimpleMachines/status/188279444241264640]

So far I've just been changing the BBCode to work with the add-on:

[tweet]https://twitter.com/SimpleMachines/status/188279444241264640[/tweet]

but, it'd be great if we could just copy-paste the shortcode itself, if at all possible.

ozbob

Thanks, updated the <img> to <img><a> and dropped the #!  and working fine now.

:-)

Quote from: ozbob on April 25, 2012, 01:02:45 AM
Useful mod, thanks. 

Have encountered a problem though with [tweet][/tweet] code.  When I attempt to post a tweet I get a message subject empty error.

The url of the tweet is correct.

Is working fine for [twitacc][/twitacc]

Any clues?

Thanks.
Bob

Timshel

Hi there again :)

Until now the trick of removing the #/ from the url of the tweet worked, but right now it isn't working anymore. It only displays the tweet box and then "loading https://twitter.com/............./ [nofollow]". But nothing else happens.

I guess that twitter changed again the url links of the tweets, so I would like to ask if there is any other solution or we should wait for an updated of the mod (if it is going to happen)

Thanks in advance ;)


eforhan

Quote from: Timshel on May 29, 2012, 04:02:41 PM
Until now the trick of removing the #/ from the url of the tweet worked, but right now it isn't working anymore. It only displays the tweet box and then "loading https://twitter.com/............./ [nofollow]". But nothing else happens.


Just wanted to confirm what Timshel wrote. 


The Silver Monkey

Quote from: eforhan on May 29, 2012, 04:14:24 PM
Quote from: Timshel on May 29, 2012, 04:02:41 PM
Until now the trick of removing the #/ from the url of the tweet worked, but right now it isn't working anymore. It only displays the tweet box and then "loading https://twitter.com/............./ [nofollow]". But nothing else happens.


Just wanted to confirm what Timshel wrote.

I'm having the same problem.

Rain Forest


Douglas

Okay, time to come out of the shadows...

Suki, having the same exact issue as the 4 above replies.

Also, I was having issues with the [twitacc]@BearlyDoug[/twitacc] code. Once I dropped the @ symbol, the tweets are loading up, HOWEVER, the background images aren't. I should note that the timestamps on these are off, big time.

FYI, this is in PRODUCTION mode.... on Hogville's forums. So it's in use on an ACTIVE site. :)

* Douglas subscribes to this thread for updates/fixes.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

Suki

After about 2 hours digging messy twitter documentation for their API, I found nothing other than they changing their APIs so suddenly and a lot of pissed off devs because of that, exactly like facebook.

What they say in their documentation is the correct url for some user time line: https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2

What it shows as response:
{"errors":[{"message":"Bad Authentication data","code":215}]}

This happens because now twitter requires you to create a dev app (which is not something easy to do for the regular admin who just wants things to work) just to access something as simple as some users time line, digging even more I found out lots of angry devs who followed twitter recommendations are all getting the same response from twitter servers.

Even if I managed to change the current mod it won't be long before they decide the current new shiny API is deprecated (at their speed, it can be weeks) and I just don't have the time to keep t up with them.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Douglas

I had to uninstall this on Hogville.  Seems that if you have a lot of embedded tweets, your board slows down. Some forums were loading blazingly quick, while others that were heavy with Twitter embeds (Such as a Basketball Recruiting forum) took almost 30 seconds to load up.

I don't know if it's the BBC Twitter mod, or if Twitter was rate-limiting a high traffic site (Hogville).  Regardless, after uninstalling this mod, Hogville's forums (all of them) are running at blazing speeds again.

I don't know if Suki is even developing this anymore or not... but wanted to give everyone a heads up.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

Suki

Yep, this mod is pretty old and will not work with whatever new shiny API Twitter develops every month :( meaning the JS will keep hanging looking for a response making the page to lag or to become slow. Best I can do is archive it, not really worth open source it as its just a settings page wrapper for a jquery plugin.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Suki

I either forgot how to archive it, forgot I can't do that or both... 

Anyway, better remove it altogether, if anyone wants to take over it and do a proper update contact me.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: