1. Welcome to Tundras.com!

    You are currently viewing as a guest! To get full-access, you need to register for a FREE account.

    As a registered member, you’ll be able to:
    • Participate in all Tundra discussion topics
    • Transfer over your build thread from a different forum to this one
    • Communicate privately with other Tundra owners from around the world
    • Post your own photos in our Members Gallery
    • Access all special features of the site

Looking for a bb code expert

Discussion in 'Off-Topic Discussion' started by jwatt, Mar 8, 2021.

  1. Mar 8, 2021 at 10:20 PM
    #1
    jwatt

    jwatt [OP] I heart men

    Joined:
    Jan 10, 2020
    Member:
    #40985
    Messages:
    1,301
    Gender:
    Male
    First Name:
    Jack
    Oregon
    Vehicle:
    Salsa Red 2007 Tundra DC @91k.
    7" BDS Coilover Suspension Lift/BDS UCAs/XB LED Headlights/Nitto trail Grappler tires on Black Rhyno Armory wheels
    Im trying to use bb code editor to modify links of a video, and bb code is not cooperating. This code below works, but I get 2 instances of the video. I want to be able to link multiple starting points using a single video.
    Code:
    [Spoiler][URL]https://www.youtube.com/watch?v=wOZhz-UEkD0[/URL]
    [URL]https://www.youtube.com/watch?v=wOZhz-UEkD0&t=346s[/URL][/Spoiler]
     
  2. Mar 8, 2021 at 10:44 PM
    #2
    ColoradoTJ

    ColoradoTJ Certified tow LEO Staff Member

    Joined:
    Feb 24, 2016
    Member:
    #2766
    Messages:
    35,870
    Gender:
    Male
    Colorado
    Vehicle:
    LML 3500HD
    Calibrated Power 5 Tune pack, Allison 1000 tune, PPE deep trans pan, Cold/Hot CAC pipes, Banks CAI, PCV reroute, resonator delete, S&B 62 gal fuel tank, B&W GN hitch
  3. Mar 9, 2021 at 7:11 AM
    #3
    Kung

    Kung [Insert Custom Title Here]

    Joined:
    Mar 10, 2020
    Member:
    #43761
    Messages:
    3,446
    Gender:
    Male
    First Name:
    Matt
    KG, VA
    Vehicle:
    2020 SR5 CM 4WD, TRD Off-Road, Voodoo Blue
    Spiffy console tray Spiffy N-Fab steps Spiffy Katzkin seats
    I thought the code was supposed to be more like:

    Code:
    [Spoiler="Spiffy description here!"]https://www.youtube.com/watch?v=wOZhz-UEkD0&t=346s[/Spoiler]
    (Full disclosure - I don't work with BB code though I used to with php.)

    When I typed the above, I got a 'Spoiler' button that showed a video when I clicked on it, so that might be it. I had to actually type the [ code ] brackets to get the button to NOT show up. lol
     
  4. Mar 9, 2021 at 9:17 AM
    #4
    Bob

    Bob Member Staff Member

    Joined:
    Jan 4, 2014
    Member:
    #1
    Messages:
    4,058
    Gender:
    Male
    First Name:
    Bob
    SoCal
    Vehicle:
    07 Tacoma PreRunner Black
    That looks correct... @jwatt is this what you wanted or something different?

     
  5. Mar 9, 2021 at 11:57 AM
    #5
    jwatt

    jwatt [OP] I heart men

    Joined:
    Jan 10, 2020
    Member:
    #40985
    Messages:
    1,301
    Gender:
    Male
    First Name:
    Jack
    Oregon
    Vehicle:
    Salsa Red 2007 Tundra DC @91k.
    7" BDS Coilover Suspension Lift/BDS UCAs/XB LED Headlights/Nitto trail Grappler tires on Black Rhyno Armory wheels
    Actually something different. I can do the spoiler with the video inside. My goal is to add multiple video starting points using only one video. This what I have now;
    Code:
    [Spoiler][URL]https://www.youtube.com/watch?v=wOZhz-UEkD0[/URL]
    [URL]https://www.youtube.com/watch?v=wOZhz-UEkD0&t=346s[/URL][/Spoiler]
    The way youtube links work, (if you don t already know) is the starting point can be established by adding it to the end of the link. In the example above, the second link in my spoiler starts 346 seconds after the beginning. The problem is I get a new instance of the video every new starting point. If I wanted to link 10 different starting points I would get 10 instances of the same video. I want to code it to use only 1 video for the multiple starting points. If could declare a simple interger varible, and use a conditional statement it would be so much easier, but i m doubting bb code has that capability. My reasoning in this particular video; It shows about 15-20 different cars and their crash tests. Some are worse than others, but I wanted to link the 5 five worst in the spoiler. I could make a simple list. Each item in the list cooresponds to a specific number/starting point, and then have one link. I would just need a way to merge the link and number together.
     
    Last edited: Mar 9, 2021
  6. Mar 9, 2021 at 12:16 PM
    #6
    jwatt

    jwatt [OP] I heart men

    Joined:
    Jan 10, 2020
    Member:
    #40985
    Messages:
    1,301
    Gender:
    Male
    First Name:
    Jack
    Oregon
    Vehicle:
    Salsa Red 2007 Tundra DC @91k.
    7" BDS Coilover Suspension Lift/BDS UCAs/XB LED Headlights/Nitto trail Grappler tires on Black Rhyno Armory wheels
    You are correct though I wasn t concerned with adding a lable to the spoiler, but I didn t know it would work without the URL tags.
     
  7. Mar 9, 2021 at 1:01 PM
    #7
    Kung

    Kung [Insert Custom Title Here]

    Joined:
    Mar 10, 2020
    Member:
    #43761
    Messages:
    3,446
    Gender:
    Male
    First Name:
    Matt
    KG, VA
    Vehicle:
    2020 SR5 CM 4WD, TRD Off-Road, Voodoo Blue
    Spiffy console tray Spiffy N-Fab steps Spiffy Katzkin seats
    I'm *just* good enough with bbcode to know that I have no clue if it has that capability. LOL I did indeed know about being able to establish a different starting point (though I did not realize that's what you were asking); but I'm not sure how one could code it to use one video w/multiple starting points at all, let alone with bbcode. :/ Apologies.

    I did cruise on over to StackExchange (because it's been too long since anyone has told me 'Well THAT was a dumb question' lol) and this link seems to suggest you'd basically just have to use the code again and specify a different starting point for the next link.

    https://webapps.stackexchange.com/q...tart-end-times-of-a-youtube-video-using-embed
     

Products Discussed in

To Top