MONEE:
How is the combined video create button called. It looks like is using the create_video.tpl on click to choose upload or import youtube video.
You won't be able to use the method that is currently in place for the Combined Video module.
MONEE:
I need to create a similar button for the bottom tab for mobile that has option for create audio or video.
I'm guessing it's using something like
a href="#" onclick="mis_modal('')"
How do I assign template to open on click?
You could try something like this:
<style>
.add-video-modal {
position: relative;
}
position: absolute;
background-color:
border: 1px solid
border-radius: 3px;
padding: 6px;
z-index: 999999;
overflow: visible;
box-shadow: 1px 1px 1px 1px
}
.video-item {
display:flex;
gap:1rem;
}
.video-item > * {
flex:1;
text-align: center;
}
</style>
<div class="add-video-modal">
<dialog id="videoDialog">
<div class="video-item">
{if jrCore_module_is_active('jrAudio')}
<a href="{$jamroom_url}/{jrCore_module_url module="jrAudio"}/create">
<div class="video-choice">
<img src="{$jamroom_url}/modules/jrAudio/icon.png" width="50" height="50" title="upload a new audio file" alt="upload a new audio file">
<br>
Upload Audio
</div>
</a>
{/if}
{if jrCore_module_is_active('jrVideo')}
<a href="{$jamroom_url}/{jrCore_module_url module="jrVideo"}/create">
<div class="video-choice">
<img src="{$jamroom_url}/modules/jrVideo/icon.png" width="50" height="50" title="upload a new video file" alt="upload a new video file">
<br>
Upload Video
</div>
</a>
{/if}
{if jrCore_module_is_active('jrYouTube')}
<a href="{$jamroom_url}/{jrCore_module_url module="jrYouTube"}/create">
<div class="video-choice">
<img src="{$jamroom_url}/modules/jrYouTube/icon.png" width="50" height="50" title="embed a youtube video" alt="embed a youtube video">
<br>
Embed YouTube
</div>
</a>
{/if}
</div>
<br>
<form method="dialog"><button class="form_button" style="float:right;">X</button></form>
</dialog>
<button class="form_button" onclick="videoDialog.show()">Add Media</button>
</div>
--
Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos