<!-- TinyPortal Simple Multi-Time Banners Kernal Coded 2026 -->
<div id="tpBanners" style="text-align:center; margin:10px 0;"></div>
<script>
(function() {
var now = new Date();
var currentDay = now.getDay(); // 0=Sun, 1=Mon...
var currentHour = now.getHours(); // 0-23
// ===== CONFIGURE YOUR BANNERS HERE OK =====
var banners = [
{
image: "BANNER1-IMAGE.jpg",
day: 1, // Monday
start: 19, // 7pm
end: 23 // 11pm
},
{
image: "BANNER2-IMAGE.jpg",
day: 5, // Friday
start: 18, // 6pm
end: 22 // 10pm
}
// Add more banners here as needed simple
];
// ========================================
var container = document.getElementById("tpBanners");
banners.forEach(function(banner) {
if(currentDay === banner.day && currentHour >= banner.start && currentHour < banner.end){
var div = document.createElement("div");
div.style.margin = "10px 0";
div.style.textAlign = "center";
div.innerHTML = '<img src="' + banner.image + '" alt="Event Banner" style="max-width:100%; height:auto;">';
container.appendChild(div);
}
});
})();
</script>
Quote from: stylix on February 11, 2026, 01:21:43 AMTurning off a custom block fixed it, I'll try to see what's causing the issue in it. Thank you!
Quote from: lurkalot on February 10, 2026, 03:38:53 PMI suspect you have another block with some broken code in it causing the issue. Try temporarily turning off the left panel (in Panels) Then the right panel and see if the center and front panels work.Turning off a custom block fixed it, I'll try to see what's causing the issue in it. Thank you!
Or you could turn off your custom blocks one at a time and see if you have one causing the issue.
Page created in 0.216 seconds with 20 queries.