Advertisement:

Author Topic: [BBCode] Twitter  (Read 30453 times)

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: [BBCode] Twitter
« Reply #80 on: April 25, 2012, 10:01:05 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.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,018
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: [BBCode] Twitter
« Reply #81 on: April 25, 2012, 10:05:16 AM »
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.
I'm not a criminal.
I'm not a rapist.

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: [BBCode] Twitter
« Reply #82 on: April 25, 2012, 10:10:45 AM »
Thank you for this mod, Suki!

Offline eforhan

  • Semi-Newbie
  • *
  • Posts: 15
Re: [BBCode] Twitter
« Reply #83 on: April 26, 2012, 02:53:58 PM »
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:

Code: [Select]
[tweet https://twitter.com/SimpleMachines/status/188279444241264640]
So far I've just been changing the BBCode to work with the add-on:

Code: [Select]
[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.

Offline ozbob

  • Semi-Newbie
  • *
  • Posts: 71
Re: [BBCode] Twitter
« Reply #84 on: April 26, 2012, 06:25:40 PM »
Thanks, updated the <img> to <img><a> and dropped the #!  and working fine now.

:-)

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

Offline Timshel

  • Semi-Newbie
  • *
  • Posts: 16
Re: [BBCode] Twitter
« Reply #85 on: May 29, 2012, 04:02:41 PM »
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 ;)


Offline eforhan

  • Semi-Newbie
  • *
  • Posts: 15
Re: [BBCode] Twitter
« Reply #86 on: May 29, 2012, 04:14:24 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. 


Offline The Silver Monkey

  • Newbie
  • *
  • Posts: 9
Re: [BBCode] Twitter
« Reply #87 on: August 05, 2012, 12:05:16 AM »
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 hxxp:twitter.com/............./ [nonactive]". But nothing else happens.


Just wanted to confirm what Timshel wrote.

I'm having the same problem.

Offline Rain Forest

  • Full Member
  • ***
  • Posts: 657
  • 𝒢𝒾𝓇𝒶𝒻𝒻𝑒
    • Love Troops
Re: [BBCode] Twitter
« Reply #88 on: October 23, 2012, 03:29:23 PM »
Loading.... https://twitter.com/.... indeed :(

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,083
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TwoCentsRadio.net
Re: [BBCode] Twitter
« Reply #89 on: December 04, 2012, 07:00:54 PM »
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
* Web Developer / Operations Analyst for Richweb.com
* Sports Media Personality covering Collegiate Football and Basketball
* CFB Historian (GridironHistory.com)
* Tech Admin for one 1M+ post, one 2M+ post and one 8M+ post sites (last two are powered by 10+ servers)
* SMF Fanatic

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,018
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: [BBCode] Twitter
« Reply #90 on: December 05, 2012, 11:20:42 AM »
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.
I'm not a criminal.
I'm not a rapist.

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,083
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TwoCentsRadio.net
Re: [BBCode] Twitter
« Reply #91 on: August 04, 2017, 08:45:29 PM »
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
* Web Developer / Operations Analyst for Richweb.com
* Sports Media Personality covering Collegiate Football and Basketball
* CFB Historian (GridironHistory.com)
* Tech Admin for one 1M+ post, one 2M+ post and one 8M+ post sites (last two are powered by 10+ servers)
* SMF Fanatic

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,018
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: [BBCode] Twitter
« Reply #92 on: August 10, 2017, 12:28:04 PM »
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.
I'm not a criminal.
I'm not a rapist.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,018
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: [BBCode] Twitter
« Reply #93 on: August 10, 2017, 12:34:19 PM »
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.
I'm not a criminal.
I'm not a rapist.