Active / Non Active Page

Are you guys familiar with HQ?

Yes it’s an app - but I’m hoping to re-create some of their elements and this next step seems like it could be tricky.

HQ has a live broadcast page that looks like:

For those unaware of the app - it’s a live-stream trivia contest. So the page flips between a host about to ask the question, then a list of questions that you can choose to answer.

My app will not be that complicated.

However, when you first login to HQ you are greeted with this:

Here is what my app looks like https://adhanapp.bubbleapps.io/version-test/sign_up_page?debug_mode=true
After you get the signup page, it should immediately take you to the homepage where a live video should be available for streaming. Currently you have to hit play, but hopefully I can figure out how to make it live stream.

Now - here is my question - My live stream will only be available a few times a day. So on the other times, I want people to be directed to a different home page (like the landing page above). How do I make this work if all users will be directed to the same homepage link?

Create a new datatype called Website and add a yes/no field named ‘live.’
image

Then in a workflow, use a ‘Do when condition is true…’ event to navigate to another page only when live is no.
image

You will have to manually change the first item of Website’s live to yes or no.

Hope this helps!

1 Like

Thank you for your support!

This makes sense but one question - which is very basic - how do you make a new datatype? Does that mean a new page?

I’ve already made two pages. One for when it is active and one for when it is non-active. Now I just need to do what you suggested above to connect the two.

Are there screenshots or links that I can send to help you see where I’m at?

This is the active page - https://adhanapp.bubbleapps.io/version-test/home_page?debug_mode=true

Find it on the Data > Data Types tab of the editor:

You might want to refer to the Bubble Manual. Here’s the section that describes the Data Tab:

https://manual.bubble.is/working-with-data/the-data-tab.html#the-data-tab

Terrific! Thank you! Huge help

@retronwebservices -

To be clear when you say “manually change the first item of Website’s live to yes or no” - I will change this section to say yes / no? Or is there another area where I do this?

Thank you for your patience.

Go to App Data, Website, and click the pencil icon to change the field.

Wow @marcusandrews - Thank you!

You guys are making me a developer. Hell yeah.

This topic was automatically closed after 70 days. New replies are no longer allowed.