Originally posted by DOSO
View Post
Announcement
Collapse
No announcement yet.
Twitch BBCode
Collapse
X
-
- Top
- Translate
- Bottom
-
It's late here. I'll check tomorrow if that can be done.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostIt's late here. I'll check tomorrow if that can be done.
Once again, thanks for your outstanding work.
- Top
- Translate
- Bottom
Comment
-
-
Originally posted by DOSO View Post
I have one more idea, can you make the bbcode to where you can embed a clip, channel, or an individual video with twitch? The ones with video, are the ones that only have numbers. Those are the three scenarios that Twitch has.
HTML Code:<iframe onload="var domain='www.yourdomain.com';this.src=('{param}'.includes('-')?'https://clips.twitch.tv/embed?clip=':'https://player.twitch.tv/?')+(Number('{param}')>0?'video':'channel')+'={param}&parent=' + domain; this.onload=null;" src="" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" style="max-width:100%;"></iframe>
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
To add clips, you need to add inside the twitch BBCode tag all characters after "/clip/" in the Clip URL and before "?" if it exists. For example, if the Twitch Clip URL is https://www.twitch.tv/myusername/clip/MyClip-UlQu2NyjJ1pbfKGa, the bbcode tag would look like this:
[twitch]MyClip-UlQu2NyjJ1pbfKGa[/twitch]Last edited by glennrocksvb; 08-08-2022, 01:32 PM.
- Top
- Translate
- Bottom
-
Originally posted by glennrocksvb View Post
Try this:
HTML Code:<iframe onload="var domain='www.yourdomain.com';this.src=('{param}'.includes('-')?'https://clips.twitch.tv/embed?clip=':'https://player.twitch.tv/?')+(Number('{param}')>0?'video':'channel')+'={param}&parent=' + domain; this.onload=null;" src="" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" style="max-width:100%;"></iframe>
- Top
- Translate
- Bottom
Comment
-
Originally posted by DOSO View Post
Hello Glenn? I tried the clip one, it doesn't work for clips. However, it works for video and channel. It says the clip is no longer available.
- Top
- Translate
- Bottom
Comment
-
No, do not replace the domain variable after the + sign.
I don't actually use Twitch. What's the difference between clips and videos/channels? Are clips live videos that expire? I don't know why it says clip not available. I just followed the embed code URL format for clips as found in the Share button. But I'll check again.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostNo, do not replace the domain variable after the + sign.
I don't actually use Twitch. What's the difference between clips and videos/channels? Are clips live videos that expire? I don't know why it says clip not available. I just followed the embed code URL format for clips as found in the Share button. But I'll check again.
- Top
- Translate
- Bottom
Comment
-
According to Twitch Help, they said clips don't expire but the creator can delete it.
https://help.twitch.tv/s/article/how...uage=en_US#faq
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
I found the issue. Working on a fix...Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Ok, try this one. I think this fixes the clip issue.
HTML Code:<iframe onload="var domain='www.yourdomain.com';this.src='{param}'.includes('-')?`https://clips.twitch.tv/embed?clip={param}&parent=${domain}`:`https://player.twitch.tv/?${Number('{param}')>0?'video':'channel'}={param}&parent=${domain}`; this.onload=null;" src="" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" style="max-width:100%;"></iframe>
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by glennrocksvb View PostOk, try this one. I think this fixes the clip issue.
HTML Code:<iframe onload="var domain='www.yourdomain.com';this.src='{param}'.includes('-')?`https://clips.twitch.tv/embed?clip={param}&parent=${domain}`:`https://player.twitch.tv/?${Number('{param}')>0?'video':'channel'}={param}&parent=${domain}`; this.onload=null;" src="" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" style="max-width:100%;"></iframe>
- Top
- Translate
- Bottom
Comment
-
Thanks for confirming the latest code works. I have updated the code in the first post to reflect the latest changes.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Reply to Topic Starter Ribbon for vBCloudby MitchGood Day Glenn!! I implemented the above hook. My font style and size changed when typing a reply to a post. Not sure if it also changed in other instances....Today, 03:25 AM
-
Reply to Topic Starter Ribbon for vBCloudby glennrocksvbMitch I've added the fix for this mod. Please refer to the "Fix for vB 6.0.4 and later" section in the updated first post....Yesterday, 10:26 PM
Comment