You are not logged in.

Sade.

Intermediate

  • "Sade." is female
  • "Sade." started this thread

Posts: 251

Date of registration: Sep 20th 2017

  • 1194
  • Send private message

1

Tuesday, March 24th 2026, 6:38pm

yayına oto tema

indexi oto temalı sectim bir tema deneme icin url sini koydum sam e yazarken mi yanlış yaptım bilmiyorum tema gelmıyor

Seyyah20

Intermediate

  • "Seyyah20" is male

Posts: 382

Date of registration: Jan 26th 2014

Location: DENİZLİ/Gönlünüze ektiğiniz her güzellik, bir gün size bereketli bir hasat olarak dönecektir.

  • 1023
  • Send private message

2

Tuesday, March 24th 2026, 7:52pm

indexi oto temalı sectim bir tema deneme icin url sini koydum sam e yazarken mi yanlış yaptım bilmiyorum tema gelmıyor
Tema Ayarınızın Olmamasının Sebebi Radyo Yayın Linkinizle Alakalıdır tema değiştiren sistemler ya casterfm yada fastcasta göre ayarlanmış ve onların

*https://eu8.fastcast4u.com/system/streaminfo.js * *https://sapircast.caster.fm:11071/status-json.xsl*

şeklinde Jason linkleri oluyor onların sayesinde temmaları lobiye aktarıyor kodlar sizin radyo linkiniz farklı bir jason linkiniz olması lazımki tema çekebilsin
sizin radyo yayın linkihttps://radyo1.radyo-dinle.tc/8252/stream bu yayın linkinin dj temalarını çeken js kodu olması gerekiyor üstekiler gibi

HTML

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script>
// --- AYARLAR VE DJ LİSTESİ ---
const defaultBackground = 'https://s1.directupload.eu/images/user/251214/pet7a787.jpg';

const djBackgrounds = {
    "EFSANE001": "https://i.ibb.co/XZJhxZZg/SAH-LDEK-EK.jpg",
    "DJ-aysen 01": "https://i.ibb.co/604Nz35m/DJ-AYSEN.jpg",
    "DJ_ISMI_1": "resim_linki.jpg",
    "DJ_ISMI_2": "resim_linki.jpg",
    "DJ_ISMI_3": "resim_linki.jpg"
};

// --- OTO TEMA MANTIĞI ---
async function updateTheme() {
    try {
        // Senin radyo sunucundan veriyi çeker
        const response = await fetch("https://radyo1.radyo-dinle.tc/status-json.xsl");
        const data = await response.json();

        // Yayındaki başlığı (DJ ismi veya Şarkı) al
        let source = data.icestats.source;
        if (Array.isArray(source)) source = source[0];
        let currentTitle = (source.title || source.server_name || "").toUpperCase();

        let newBg = defaultBackground;

        // Listedeki DJ isimlerini yayın başlığında ara
        for (const dj in djBackgrounds) {
            if (currentTitle.includes(dj.toUpperCase())) {
                newBg = djBackgrounds[dj];
                break;
            }
        }

        // Sayfadaki ana arka plan resmini (#image1 img) bul ve değiştir
        const bgElement = document.querySelector("#image1 img");
        if (bgElement && bgElement.src !== newBg) {
            bgElement.style.transition = "opacity 1s ease"; // Yumuşak geçiş efekti
            bgElement.src = newBg;
        }
    } catch (err) {
        console.log("Radyo verisi şu an çekilemiyor.");
    }
}

// Her 15 saniyede bir kontrol et (Sayfa yenilenmeden tema değişir)
setInterval(updateTheme, 15000);
updateTheme(); 
</script>

This post has been edited 2 times, last edit by "Seyyah20" (Mar 24th 2026, 10:45pm)


Sade.

Intermediate

  • "Sade." is female
  • "Sade." started this thread

Posts: 251

Date of registration: Sep 20th 2017

  • 1194
  • Send private message

3

Tuesday, March 24th 2026, 8:56pm

seyyah yardımın icin cok saol yapamadım musaıt olursan yappabılırsen dıe ındexı yolluom sana bıde sonıc panelde buldgıum kodu kopı edecem dedıgım gıbı vaktın olursa yapmasanda anlarım sorun yok

API URL https://radyo1.radyo-dinle.tc/cp/get_info.php?p=8252


If you are going to use AJAX calls, make sure to use at least 5-10 seconds interval.

<?php
// This is an example PHP code to call the JSON API.

// Available Data Output
// Now Playing Song Title
// Now Playing Song Album Image URL (High Quality)
// Online Listeners
// Unique Listeners
// Bitrate
// DJ Username if there is a DJ live streaming
// DJ Profile Picture if there is a DJ live streaming
// Last played 5 songs

$url = "https://radyo1.radyo-dinle.tc/cp/get_info.php?p=8252";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$return_json = curl_exec($ch);

$obj = json_decode($return_json);
$nowplaying = $obj->{'title'};
$image = $obj->{'art'};
$unique_listeners = $obj->{'ulistener'};
$online_listeners = $obj->{'listeners'};
$bitrate = $obj->{'bitrate'};
$djusername = $obj->{'djusername'};
$djprofile = $obj->{'djprofile'};
$played_last20 = $obj->{'history'};

foreach($played_last20 as $tracks)
{
echo $tracks; // Prints played last 20 tracks.
}

echo "<br><br>Now Playing: $nowplaying <br><br>";

echo "<img src='$image'>";


// Any data provided on this page can be used as you like.
?>
Sade. has attached the following file:
  • xx.rar (2.4 kB - 4 times downloaded - latest: Apr 13th 2026, 2:23pm)

Seyyah20

Intermediate

  • "Seyyah20" is male

Posts: 382

Date of registration: Jan 26th 2014

Location: DENİZLİ/Gönlünüze ektiğiniz her güzellik, bir gün size bereketli bir hasat olarak dönecektir.

  • 1023
  • Send private message

4

Tuesday, March 24th 2026, 10:29pm

Bu kodu bir deneyin bende dj teması gözüküyordu.


Efsane kadar anlamıyorum ama en azından denemelerimde tema geliyor olması lazım.
Hatalı birkaç yerini de düzenledim. Umarım doğru çalışır.

Kodların tamamını kopyalayıp değiştirin

Değiştirmeden Yedeğini Almayı unutmayın.
Seyyah20 has attached the following image:
  • Ekran Görüntüsü (2338).png
Seyyah20 has attached the following file:
  • tests.html (9.44 kB - 1 times downloaded - latest: Apr 2nd 2026, 2:41am)

Seyyah20

Intermediate

  • "Seyyah20" is male

Posts: 382

Date of registration: Jan 26th 2014

Location: DENİZLİ/Gönlünüze ektiğiniz her güzellik, bir gün size bereketli bir hasat olarak dönecektir.

  • 1023
  • Send private message

5

Tuesday, March 24th 2026, 10:41pm

Eğer bir aksilik yaşanırsa, bu genellikle kodun hatasından değil, şu iki dış etkenden kaynaklanabilir (bunları bilmenizde fayda var):
  1. CORS Engeli: Radyo sunucusu (radyo1.radyo-dinle.tc) dışarıdan veri çekilmesine izin vermiyorsa, tarayıcı güvenlik gereği fetch işlemini durdurabilir. Bu durumda "Radyo verisi alınamadı" hatası düşer.
  2. DJ İsim Eşleşmesi: listedeki isimleri (Örn: EFSANE001) radyo panelindeki yayın başlığıyla (Stream Title) birebir aynı (büyük/küçük harf yazım hatası olmamalı) Temadaki ismin Yayın esnasında da aynısı olmasına dikkat etmelisiniz.
  3. İndexte başka isim Yayın programında başka isim olmamalı .

Sade.

Intermediate

  • "Sade." is female
  • "Sade." started this thread

Posts: 251

Date of registration: Sep 20th 2017

  • 1194
  • Send private message

6

Tuesday, March 24th 2026, 11:53pm

slm

saolasnz