comming up 1 artiest

PHP, HTML, Joomla, WordPress, etc..
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

comming up 1 artiest

Ongelezen bericht door John2023 »

Wie weet hoe je bij comming up 1 artiest en titel krijgt, ik krijg telkens 2 te zien en numer 1 en 2 ervoor. ik wil enkel op die plek artiest en titel zou blij zijn met een beetje hulp.
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Deze is wat aangepast aan mijn eigen ( niet openbare) website maar misschien kun je er wat mee...

Code: Selecteer alles

<!-- BEGIN:COMING UP -->
			<div id="coming-up_wrapper">
				<div id="coming-up">
					<table cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th colspan="1" align="left">
									Zodadelijk
								</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>
									<?php
										$counter = 1;
										$doCounter = count($comingSongs) > 1;
										foreach ($comingSongs as $comingSong): ?>
										<div>
											<?php if($doCounter) : ?><span class="comingIndex"><?php echo $counter++;?></span><?php endif; ?>
											<a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
												<?php echo $comingSong->artist; ?> - <?php echo $comingSong->title; ?> 
												
											</a>
										<?php if($comingSong->isRequested): ?>
											&nbsp; &nbsp; <font color="yellow"><i><b></b></font></p></i>
										<?php endif; ?>
										</div>
									<?php endforeach; ?>
									<hr style="width:100%;border:none;"/>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<!-- END:COMING UP -->
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

https://www.broadcasterforum.nl/screenshots/Naamloos.jpg
Gebruikersavatar
radioomega
******
Berichten: 285
Lid geworden op: 18 dec 2020, 22:20
SAM-versie: 2025.3
Database: MariaDB
Windows: 11
Locatie: dordrecht
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door radioomega »

maar dat kan ook met sam zelf

in gedeelte playlist rotation rules

dan bij keep songs in de queue als die op 1 zet
of heb ik het verkeert !!! ???
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Hij bedoelt het op de website.
Staat los van het aantal nummers wat in de queue staat.
Gebruikersavatar
radioomega
******
Berichten: 285
Lid geworden op: 18 dec 2020, 22:20
SAM-versie: 2025.3
Database: MariaDB
Windows: 11
Locatie: dordrecht
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door radioomega »

kees ik heb het in de config gedaan bij sta hij op 2
bij define('COMING_UP_COUNT', 2);
en op site laad hij maar 2 nr zien als hij op 1 sta maar 1 nummer op de site
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Yes dat werkt kees, alleen krijg ik ze niet in het midden, precies zoals onze collega avalon heeft.

Dat is wat ik zou willen?.

Groetjes
Johnny
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Nee, werkt niet blijven 2 artiesten bij comminug up staan. 1 artiest+ titel en dan in het midden

Dus <div align="center>Frank Galan<br />
Mi amor</div>
Zo ongeveer.

alleen voor het comming up gedeelte. hij blifjt song 1 en 2 weergeven ..
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Deze veranderen in config.php

Code: Selecteer alles

define('COMING_UP_COUNT', 2);
naar

Code: Selecteer alles

define('COMING_UP_COUNT', 1);
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Kees schreef: 15 nov 2025, 23:17 Deze veranderen in config.php

Code: Selecteer alles

define('COMING_UP_COUNT', 2);
naar

Code: Selecteer alles

define('COMING_UP_COUNT', 1);

Had ik ook gedaan, maar dan is ie totaal weg op de site?.
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Vreemd, op mijn site werkt het prima.
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Kees schreef: 16 nov 2025, 09:03 Vreemd, op mijn site werkt het prima.
Kan dat aan de sam versie liggen? 2022.6? hij laat hem nu niet meer zien. zit echt wel ermee :)
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Het werkt, eigelijk in het midden uit elkaar krijg ik hem nu niet, de q was niet gevuld :)
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Super !
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Alleen de artiest en titel in het midden lukt niet hij blijft 50 cm links staan dan. Ik zou het graag willen zoals bij wew.avalonradio.nl
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

John2023 schreef: 16 nov 2025, 13:44 Alleen de artiest en titel in het midden lukt niet hij blijft 50 cm links staan dan. Ik zou het graag willen zoals bij wew.avalonradio.nl
Probeer deze

Code: Selecteer alles

<a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
te wijzigen in

Code: Selecteer alles

<p align="center"><a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
Gebruikersavatar
John2023
*****
Berichten: 181
Lid geworden op: 11 jul 2019, 07:09
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 10

Re: comming up 1 artiest

Ongelezen bericht door John2023 »

Kees schreef: 16 nov 2025, 15:14
John2023 schreef: 16 nov 2025, 13:44 Alleen de artiest en titel in het midden lukt niet hij blijft 50 cm links staan dan. Ik zou het graag willen zoals bij wew.avalonradio.nl
Probeer deze

Code: Selecteer alles

<a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
te wijzigen in

Code: Selecteer alles

<p align="center"><a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
Geen succes is nu niet leesbaar ik had ook al <div align="center"> geprobeerd maar werkte ook niet dan springt hij uit het blauwe veld. en blijft links staan.
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Dan zou ik het helaas niet weten.
Ik ben geen php deskundige dus kan je helaas niet verder helpen.
Gebruikersavatar
Kees
Beheerder
Berichten: 3165
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: comming up 1 artiest

Ongelezen bericht door Kees »

Ik heb hier het complete script van de display.playing.php van mijn prive website.
Misschien kun je daar iets mee.

Code: Selecteer alles

<!-- UTF-8 codering begin -->
<?php
session_start();
mb_internal_encoding("iso-8859-1");
mb_http_output( "utf-8" );
ob_start("mb_output_handler");
header("Content-Type: text/html; charset=UTF-8",true);
?>
<!-- UTF-8 codering einde -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
<?php require_once('display.header.php'); ?>

		<?php if ($currentSong instanceof Song) : ?>

			<!-- BEGIN:CURRENTLY PLAYING -->
			<div id="currently_playing_wrapper">
				<div id="currently_playing">
					<table cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th align="left" style="width: 170px;">
									Nu te horen
								</th>
								<th align="center">
								</th>
								<th align="left">
								</th>
								<th align="right" style="width: 50px;">
									Tijdsduur
								</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td align="center">
									<?php if(SHOW_PICTURES && !empty($currentSong->picture)) : ?>
									
										<img id="cpPictureMainSong" onload="showPicture(this, true)" width="100" height="100" src="<?php echo $currentSong->picture; ?>" alt="Buy CD!" title="Buy CD!" />
									</a>
									<br />
									<?php endif; ?>

									</a>

								</td>
								<td colspan="2">
									<p align="center"><span id="currently-playing-title"><?php echo $currentSong->artist; ?>
									<?php if(!empty($currentSong->artist)) : ?><br /><span id="currently-playing-artist"><?php echo $currentSong->title; ?></a></span> <?php endif; ?><font color="#800000"><b><i></span>&nbsp;<?php if ($currentSong->isRequested) echo 
" ## VERZOEKJE ## "; ?></b></i></font></p>
									<?php if(!empty($currentSong->album)) : ?><br /><span id="currently-playing-artist"></a></span><?php endif; ?>

									<?php if (ALLOW_REQUESTS && $currentSong->isDedication): ?><p><b><font size="4"><i><font color="BLUE">
									<!-- BEGIN:DEDICATION --><marquee scrollamount="6" scrolldelay="1">

									 
									 
									 Nummer is aangevraagd door <font color="RED"><span id="dedication-name">"<?php echo $currentSong->dedicationName; ?>"
										 <?php if(!empty($currentSong->dedicationMessage)) : ?>
											
</span><p style="margin-top: 0; margin-bottom: -1"><font color="BLUE">Bestemd voor <font color="RED"><span id="dedication-message">"<?php echo $currentSong->dedicationMessage; ?>"</span>
										 <?php endif; ?></p></font></i></marquee></p>
									<!-- END:DEDICATION -->
									<?php endif; ?></B></p></font>

								</td>
								<td align="right">
									<span id="currently-playing-duration"><?php echo $currentSong->durationDisplay; ?></span>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<!-- END:CURRENTLY PLAYING -->
		<?php endif; ?>


			<?php if(is_array($comingSongs) && count($comingSongs)>0) : ?>
			<!-- BEGIN:COMING UP -->
			<div id="coming-up_wrapper">
				<div id="coming-up">
					<table cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th colspan="1" align="left">
									Zodadelijk
								</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>
									<?php
										$counter = 1;
										$doCounter = count($comingSongs) > 1;
										foreach ($comingSongs as $comingSong): ?>
										<div>
											<?php if($doCounter) : ?><span class="comingIndex"><?php echo $counter++;?></span><?php endif; ?>
											<a href="javascript:songinfo(<?php echo $comingSong->ID; ?>)" title="<?php echo $comingSong->artist_title; ?>">
												<p align="center"><?php echo $comingSong->artist; ?> - <?php echo $comingSong->title; ?> 
												
											</a>
										<?php if($comingSong->isRequested): ?>
											&nbsp; &nbsp; <font color="yellow"><i><b></b></font></p></i>
										<?php endif; ?>
										</div>
									<?php endforeach; ?>
									<hr style="width:100%;border:none;"/>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<!-- END:COMING UP -->
			<?php endif; ?>


			<?php if(is_array($recentSongs) && count($recentSongs)>0) : ?>
			<!-- BEGIN:RECENTLY PLAYED -->
			<div id="recently_played_wrapper">
				<div id="recently_played">
					<table cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th colspan="2" align="left">
									Recentelijk gedraaid
								</th>
								<th class="links" align="center">
									
								</th>
								<th align="left">
									
								</th>
								<th align="right">
									Tijdsduur
								</th>
							</tr>
						</thead>
						<tbody>
						<?php foreach ($recentSongs as $key => $recentSong): ?>
							<tr>
								<td>
									<?php if(SHOW_PICTURES && !empty($recentSong->picture)) : ?>
									
										<img class="rpPicture" id="rpPicture<?php echo $key; ?>" onload="showPicture(this, <?php echo SHOW_PICTURES; ?>)" width="60" height="60" src="<?php echo $recentSong->picture; ?>" alt="Buy CD!" title="Buy CD!" />
									</a>
									<?php endif; ?>
								</td>

								<td>
									<?php echo $recentSong->artist_title; ?>
									<?php if ($recentSong->isRequested): ?>
									<p><font color="#800000"><i><b>## DIT WAS EEN VERZOEKJE ##</b></i></font></p>
									<?php endif; ?>
								</td>
								<td align="center">
									
									</a>
									
									</a>
									
									</a>
								</td>

								<td>
									
								</td>
								<td align="right">
									<?php echo $recentSong->durationDisplay; ?>
								</td>
							</tr>
						<?php endforeach; ?>
						</tbody>
					</table>
				</div>
			</div>
			<!-- END:RECENTLY PLAYED -->
			<?php endif; ?>


		<?php require_once('display.footer.php'); ?>



		</div>
		<!-- END:PAGE -->

		<script type="text/javascript">
		//<![CDATA[
		<?php if(CHECK_INTERVAL > 0) : ?>
			//Check if song changed every CHECK_INTERVAL milliseconds
			setInterval("DoCheckRefresh()", <?php echo CHECK_INTERVAL; ?>);

			function DoCheckRefresh()
			{
				var url = 'songcheck.js.php?songID=<?php echo ($currentSong instanceof Song) ? $currentSong->ID : 0; ?>&buster=' + (new Date().getTime());
				$.getScript(url); //jQuery call to call remote javascript
			}

			//This function is called by remote javascript above if the song changed
			function doSongChanged()
			{
				DoRefresh();
			}

			function DoRefresh()
			{
				//Reload this page with the new data
				document.location.href = "playing.php?buster=<?php echo date('dhis').rand(1,1000); ?>";
			}
		<?php endif; ?>
		//]]>
		</script>













		<!-- JQuery to round corners some of the HTML items on the page -->
		<script type="text/javascript">
		//<![CDATA[
		// Make sure the DOM is ready
		$(document).ready(function() {
			// Rounding of corners (Cross-browser compatible)
			// See http://jquery.malsup.com/corner/ for different Styles.

			// Rounds the page corners
			$('#page').corner();

			// Rounds the Navigation Menu Corners
			$('#navigation dl').corner();

			// Rounds the Currently Playing Table Corners
			$('#currently_playing').corner();

			// Rounds the Coming Up Corners
			$('#coming-up').corner();

			// Rounds the Recently Played Table Corners
			$('#recently_played').corner();
			// Style odd and even rows in Currently Playing Table (Cross-browser compatible)
			$('#recently_played table tbody tr:nth-child(odd)').addClass('recently_played_odd');
			$('#recently_played table tbody tr:nth-child(even)').addClass('recently_played_even');

			// Round the Dedication Corners
			$('#dedication dl').corner('tl tr').corner();

			// Round the Top Request Corners
			$('#top_requests dl').corner();
		});
		//]]>
		</script>

</body>
Plaats reactie
  • Vergelijkbare Onderwerpen
    Reacties
    Weergaves
    Laatste bericht