Previous Thread
Next Thread
Print Thread
Hop To
Poll Manager Darken Background, Focused Window #262396 02/21/2019 6:56 PM
Joined: Mar 2015
Posts: 90
M4TT Offline OP
Journeyman
OP Offline
Journeyman
Joined: Mar 2015
Posts: 90
Hi,

I noticed that when you open the Poll Manager (for example), the popup comes into focus more by darkening the surrounding background... Where do I find this code? I'd like to use it for other areas, such as when a user clicks their username to open the menu for preferences, etc.

Thank you,

Matt

Attached Files effect.png

[Linked Image from imagizer.imageshack.com]
[Linked Image from aliendisc.net]
[Linked Image from aliendisc.net]
Re: Poll Manager Darken Background, Focused Window [Re: M4TT] #262402 02/24/2019 6:35 AM
Joined: Jul 2006
Posts: 105
Philipp Offline
Member
Offline
Member
Joined: Jul 2006
Posts: 105
UBB.threads is using Jack Moore's Colorbox plugin for jQuery for that:
Code
<link rel="stylesheet" property="stylesheet" href="/ubb/ubb_js/assets/colorbox.css">
<script src="/ubb/ubb_js/assets/jquery.colorbox.min.js"></script>
<script>
$(document).ready(function() {
	$(".cbpoll").colorbox({ iframe:true, maxWidth:"550px", innerWidth:"80%", innerHeight:"100px", transition:"none", fastiframe:false, overlayClose:false, close:"X" });
});
</script>
<i class="fas fa-chart-bar fa-fw fa-lg" aria-hidden="true"></i>&nbsp; <a class="cbpoll" href="/ubb/ubbthreads.php?ubb=pollmanager&amp;id=f155deb5437db1b43e92b7c0be3556f9">Poll Manager</a>

You find a documentation here: http://www.jacklmoore.com/colorbox/


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (isaac), 79 guests, and 378 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)