Scriptidee

Gestart doorJosnl27 reacties51 weergaven

28 berichten · pagina 2 van 2

Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Krijg nog steeds als output van de $youtube_code alleen maar 0, 1 of 2... sadley Kan iemand helpen? yummie
EDIT: Werkt nu wel, dankje Milan. smile
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Josnl check mijn post.
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Had m al gelezen, dankjewel!

Iemand een idee hoe ik kan checken welke code als laatste is afgespeeld?santabaard
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan ook

Wacht:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

[COLOR= #0000BB]$codes[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]6r2YlYP77zs[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]AAdEkqT3En8[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]3tQxE0jMwQs[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Laatst gespeeld: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatstgespeeld[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br /><iframe title="Randomhits YouTube Speler" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$codes[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/array_rand"]array_rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$codes[/COLOR][COLOR= #007700])] .[/COLOR] [COLOR= #DD0000]?rel=0&autoplay=1" frameborder="0"></iframe>[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatstgespeeld[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$codes[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/array_rand"]array_rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$codes[/COLOR][COLOR= #007700])];[/COLOR]

?>
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik denk dat je me verkeerd begrijpt.

Ik wil dat de pagina refresht als het nummer voor de 2e keer achter elkaar word afgespeeld.

Dus ongeveer zo (nr 1 en nr 2 zijn aparte nrs):

1, 2, 1, 2, 2, 1

Dus als twee keer achter elkaar nr 2 word afgespeeld, moet in dit geval het andere nummer (nr 1) af worden gespeeld.

Ik hoop dat je me nu begrijpt, als het je lukt krijg je 0.25! biggrin
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zo? Weet niet of werkt...

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

[COLOR= #0000BB]$codes[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]6r2YlYP77zs[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]AAdEkqT3En8[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]3tQxE0jMwQs[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$random[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$codes[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/array_rand"]array_rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$codes[/COLOR][COLOR= #007700])];[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatstgespeeld[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$random[/COLOR][COLOR= #007700])
{[/COLOR]
    
    [COLOR= #0000BB]$random[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$codes[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/array_rand"]array_rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$codes[/COLOR][COLOR= #007700])];
    
}[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<iframe title="Randomhits YouTube Speler" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$random[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]?rel=0&autoplay=1" frameborder="0"></iframe>[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatstgespeeld[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$random[/COLOR][COLOR= #007700];[/COLOR]

?>
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, werkt prima hier! Dankjewel Milan! biggrin Je krijgt de 0.25 opgestuurd.

Is er ook een functie die ervoor zorgt dat er gerefreshed word als het nr is afgelopen?
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan moet je youtube functies gaan gebruiken..
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je kan misschien zoiets als youtube maken.
Mensen laten registreren en dan kunnen mensen videos uploaden.
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Milan, zijn die functies moeilijk te gebruiken? En waar vind ik die? bloos
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
paypal banner rotator
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nah, ben hier nog wel een tijdje zoet mee. hypocrite
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren