Comments Modify Profile | Register | Logout | Login
View Comments | Submit Comment
You are not logged in

Original Post
:: youtube shitposting does work
Posted by toolboxio
Posted on Wednesday, November 20, 2019 at 14:08:17 PM


so if you just want to post a single youtube video, it works. it will only accept ONE video, though.

had to implement an IF/ELSE statement:

<If: Field: CustomField_yt>
<iframe width="560" height="315" src="<Field: CustomField_yt>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<If: Else>
<Field: Text>

had to create a custom News Field and made it exactly eleven characters, because the characters after watch?v= is exact. added the above into the main news style where the normal <Field: Text> goes.

if there's something within the YT block, post that, otherwise, post the news text.

(if you post BOTH the YT link AND text, only the YT video will post. be warned.)

it works, but badly. it was a gigantic pain in the ass to figure out, so please don't break it. there is a contingency plan if it doesn't work. you can still embed iframes within a post like normal. multiple if you want.

if someone is still using coranto in this day and age, wewlad. the forums are closed and trial/error'ing this is some bullshit.

also, another downside to the pseudo yt parser - there's no edit function for the link. if it's wrong, it will likely break something. so, again, be warned. you may just have to delete the post entirely.

the absolute, sure-fire way to make sure it doesn't break shit is to use the EMBED copy/paste option from within youtube's share option.

There are 0 comments in total.
Submit Comment
All fields are required.

Site content is property of their original owner.
Unauthorized distribution or modification is strictly prohibited.
Commenting System by AeroSoul and faithless
Powered by Coranto