PDA

View Full Version : Oi Admin



minestrone
13th July 2016, 18:51
Can we have a mechanism to embed tweets and vines?

northernladuk
13th July 2016, 19:23
No

HTH

SimonMac
13th July 2016, 19:48
Can we have a mechanism to embed tweets and vines?

Why are you asking the monkey not the organ grinder, send NickFitz a PM

WTFH
13th July 2016, 19:59
No

HTH

You've got potential...


Or to put it another way, if we allow tweets and vines, then there will be more false information being spread on here by lazy people not interested in finding out whether something is true or not.

minestrone
13th July 2016, 20:16
You've got potential...


Or to put it another way, if we allow tweets and vines, then there will be more false information being spread on here by lazy people not interested in finding out whether something is true or not.

Hold on, I think I've worked out how to do it...

http://www.prankmenot.com/images/13-07-2016/mCsERx.png (http://www.prankmenot.com/)

minestrone
13th July 2016, 20:29
Why are you asking the monkey not the organ grinder, send NickFitz a PM

I'm not sure he has the keys to the server install.

Other than that i'm not sure what is worse, the url issue has never been resolved on the video BB code or that the majority of users on a supposedly technical forum have never been able to work it out.

NickFitz
13th July 2016, 20:47
I'm not sure he has the keys to the server install.

Other than that i'm not sure what is worse, the url issue has never been resolved on the video BB code or that the majority of users on a supposedly technical forum have never been able to work it out.

The URL issue with video is because YouTube switched to all-HTTPS, and it seems as if the PHP Curl module isn't set up for secure connections (or doesn't realise it is). It's the same reason that links to HTTP URLs will (by default) get the linked page's <title> and use that as the link text, but it doesn't work for HTTPS links.

And I have no idea off the top of my head what, if anything, admin needs to do to fix that :)

DaveB
13th July 2016, 20:48
Can we have a mechanism to embed tweets and vines?

Like the signal to noise ratio in this place wasn't bad enough already.... :eyes

eek
13th July 2016, 20:57
The URL issue with video is because YouTube switched to all-HTTPS, and it seems as if the PHP Curl module isn't set up for secure connections (or doesn't realise it is). It's the same reason that links to HTTP URLs will (by default) get the linked page's <title> and use that as the link text, but it doesn't work for HTTPS links.

And I have no idea off the top of my head what, if anything, admin needs to do to fix that :)

You need to follow the advice on Using cURL in PHP to access HTTPS (SSL/TLS) protected sites ยป unitstep.net (http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/)

As with all things it starts simple and gets rapidly complex very quickly... A quicker fix would be to just do a substitute on https:\/\/(.*)\.youtube\.com to http:\/\/$1\.youtube\.com (that regular expresssion is bound to be wrong but meh its a starting point)...

WTFH
13th July 2016, 21:16
Hold on, I think I've worked out how to do it...



No, you've worked out how to share an image designed to make it look like it came from a Twitter account, but it's fake, hence proving why it's a good idea NOT to have the ability to share Twitter feeds on here.

Are you MF's sidekick?

minestrone
14th July 2016, 07:57
No, you've worked out how to share an image designed to make it look like it came from a Twitter account, but it's fake, hence proving why it's a good idea NOT to have the ability to share Twitter feeds on here.


So to stop people spoofing tweets on here ( which I can currently do ) the forum should not introduce the functionality to embed real tweets?

Do you work in some kind of tape changing capacity?

eek
14th July 2016, 08:02
So to stop people spoofing tweets on here ( which I can currently do ) the forum should not introduce the functionality to embed real tweets?

Do you work in some kind of tape changing capacity?

Did you not notice that NickFitz stated its blooming hard work due to twitter using https....

I've highlighted what needs to be done to fix it, are you volunteering to do it?

FatLazyContractor
14th July 2016, 08:12
You've got potential...


Or to put it another way, if we allow tweets and vines, then there will be more false information being spread on here by lazy people not interested in finding out whether something is true or not.

:eyes

minestrone
14th July 2016, 09:04
Did you not notice that NickFitz stated its blooming hard work due to twitter using https....

I've highlighted what needs to be done to fix it, are you volunteering to do it?

He was talking about the youtube issue which can simply be resolved by doing a regexp on the url, removing the s on https

Twitter provide a mechanism to embed HTML and not go through PHP, the youtube issue and the work to put in twitter embeds are not related. There are vbulletin mods (http://www.vbulletin.org/forum/showthread.php?p=2573046) that allow this.

eek
14th July 2016, 09:09
He was talking about the youtube issue which can simply be resolved by doing a regexp on the url, removing the s on https

Twitter provide a mechanism to embed HTML and not go through PHP, the youtube issue and the work to put in twitter embeds are not related. There are vbulletin mods that allow this.

Are there recent, secure vbulletin mods that do this? There are a few old ones that seem to be unmaintained, surprisingly unused, unpopular and probably not that secure...... I suspect that while they appear in the list of mods they may not actually work nowadays...

minestrone
14th July 2016, 09:19
Are there recent, secure vbulletin mods that do this? There are a few old ones that seem to be unmaintained, surprisingly unused, unpopular and probably not that secure...... I suspect that while they appear in the list of mods they may not actually work nowadays...

I see embedded tweeting on loads of PHP forums.

Also you would have to be in suity land to balls it up and make it insecure, twitter provide the HTML to produce the embed, all the BB code has to do is take the tweet ID, validate the number, drop it into the twitter formatted HTML and then render the HTML to the screen.

MrMarkyMark
14th July 2016, 09:23
All well and good, but Twatter is a load of fooking shite, why do we want to be able to embed it here? :eyes

minestrone
14th July 2016, 09:36
Well people are clearly posting links to tweets ( SueEllen just posted one there (http://forums.contractoruk.com/general/115917-gove-sacked.html#post2285073) ) and I would rather see it rendered than click on the link to find out what her point was.

FatLazyContractor
14th July 2016, 10:08
Can we embed videos from beeg and redtube? :music:

WTFH
14th July 2016, 10:17
Can we embed videos from beeg and redtube? :music:



That already works.




Edit: sorry, that's only in the Mod forums.

SueEllen
14th July 2016, 12:06
Well people are clearly posting links to tweets ( SueEllen just posted one there (http://forums.contractoruk.com/general/115917-gove-sacked.html#post2285073) ) and I would rather see it rendered than click on the link to find out what her point was.

Unfortunately with breaking news the only fixed links are from Twitter.

minestrone
14th July 2016, 12:23
Googling...

site:contractoruk.com "https://twitter.com"

...gives 1160 results. So a reasonably significant level of linking from here.

Hold on that is wrong 141... but think of the possibilities.

BrilloPad
14th July 2016, 12:25
Can we have a mechanism to remove Brexit threads?

MrMarkyMark
14th July 2016, 12:30
Googling...

site:contractoruk.com "https://twitter.com"

...gives 1160 results. So a reasonably significant level of linking from here.

Hold on that is wrong 141... but think of the possibilities.

By that rule, I expect admin to be building a full App relating to the Daily Mail :eyes