| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ ! ] BBCode to embed tweets | |
|---|---|
| Tweet Topic Started: Jun 22 2013, 12:38 PM (3,916 Views) | |
| Jason | Jun 22 2013, 12:38 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Board Address: Private Board Software: ZetaBoards Description: Twitter offers the option to embed tweets, however the format is HTML as shown below.
Which results in the following - ![]() I'd like to be able to embed these in posts, is there a way of doing it? Thanks in advance
|
![]() |
|
| Cory | Jun 23 2013, 05:03 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Do you mind using this for the BBCode syntax?
|
![]() |
|
| Jason | Jun 23 2013, 01:52 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That will be fine Cory |
![]() |
|
| Cory | Jun 23 2013, 02:47 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Use this instead to allow that syntax:
|
![]() |
|
| Jason | Jun 23 2013, 03:13 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That works, I'm guessing that the bits entered in the BBCode are pretty irrelevant as using the following gives exactly the same result?
Which makes me wonder if it's possible to simplify it so only the following would be required?
or even
|
![]() |
|
| Cory | Jun 23 2013, 08:22 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I can alter the regexp for a more precise match, but what you have in mind doesn't appear to be workable:
|
![]() |
|
| Quozzo | Jun 24 2013, 04:46 AM Post #7 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You need to use the twitter api which uses JSONP to send the data. If Cory doesnt want to do it I will but wont be able to until next week. |
![]() |
|
| Jason | Jun 24 2013, 05:05 AM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks guys, I'm in no rush
|
![]() |
|
| Cory | Jun 24 2013, 05:30 AM Post #9 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Go ahead, Quozzo. I no nothing of JSONP at this time. |
![]() |
|
| Quozzo | Jun 24 2013, 06:19 AM Post #10 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
JSONP is basically a cross domain ajax request, but the data returned is really just a js object. I can do it but it will take a while. |
![]() |
|
| Quozzo | Jul 13 2013, 05:07 PM Post #11 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Twitter have changed their API so i wont be learning a new method, sorry for the wait. |
![]() |
|
| Jason | Jul 14 2013, 02:52 AM Post #12 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No worries, thanks for looking anyway. |
![]() |
|
| Roby | Jul 18 2013, 12:21 PM Post #13 |
![]()
#27
![]()
|
This request was deemed impractical by our staff. This could mean that the feature you have requested is impossible to write, requires PHP and/or hosting, or requires too many AJAX requests. If you have any questions about why this request is not practical, feel free to contact Roby . |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
3:03 PM Jul 11
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)





3:03 PM Jul 11