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
-
by MahmoudE9Hello
How are you
After promotion version 6.0.4
I updated the counters and during the update the search index was rebuilt...05-05-2024, 06:50 AM
Comment