SOCIAL SHARE 1.0 - Condividere il box On Air su Facebook, Twitter e G+

  • azzurrapalermo
08 May 2011 04:59 #56354 by azzurrapalermo
Replied by azzurrapalermo on topic Re: SCRIPT - Condividere su facebook il box On Air
Arlo, non avendo una conoscenza dettagliata della situazione sarebbe fantastico se tu riuscissi a crearmi questa cosa anche dietro compenso, fammi sapere anche in privato grazie.

Please Log in or Create an account to join the conversation.

  • gdisanzodj
10 Aug 2011 10:25 #58341 by gdisanzodj
Cia scusa la mia ignoranza non riesco a farlo funzionare.        E COMPILATO BENE!!!!

<?php
function generoidhref() {
$gammaDeiCaratteri = "abcdefghiljkmnopqrstuvwxyz0123456789";    :&#039;( CHE DATI METTO!!!!
srand((double)microtime()*1000000);
$elaborazione = &#039;&#039; ;
for ($contatore=0; $contatore<15; $contatore++) {
$numeroCasuale = rand(0, strlen($gammaDeiCaratteri)-1);
$carattere = substr($gammaDeiCaratteri, $numeroCasuale, 1);
$elaborazione = $elaborazione . $carattere;
}
return $elaborazione;
}
$idhref = generoidhref();
?>
<a href="condividi.php?id=<?php echo($idhref) ?>">CONDIVIDI SU FACEBOOK - CLICCA QUI</a>

<?php
$referrer = $_SERVER[&#039;HTTP_REFERER&#039;];        :&#039;( CHE DATI METTO!!!!

if($referrer!="www.esystemsrl.it/joomla/"){
echo &#039;<meta http-equiv="refresh" content="0;url=http://www.esystemsrl.it/joomla/">';
}
include(&#039;lnx.esystemsrl.it/joomla/OnAir.txt';);
function generoidimg() {
$gammaDeiCaratteri = "abcdefghiljkmnopqrstuvwxyz0123456789";    :&#039;( CHE DATI METTO!!!!

srand((double)microtime()*1000000);
$elaborazione = &#039;&#039; ;
for ($contatore=0; $contatore<15; $contatore++) {
$numeroCasuale = rand(0, strlen($gammaDeiCaratteri)-1);
$carattere = substr($gammaDeiCaratteri, $numeroCasuale, 1);
$elaborazione = $elaborazione . $carattere;
}
return $elaborazione;
}
$idimg = generoidimg();
?>


<title>ORA IN ONDA: <?php echo($brano) ?></title>
<meta name="title" content="ORA IN ONDA: <?php echo($brano) ?>" />
<meta name="description" content="Se vuoi ascoltare <?php echo($brano) ?> collegati su inClub Italia!
Social & Radio. Tanti nuovi amici stanno aspettando proprio te!" />
<link rel="image_src" href="lnx.esystemsrl.it/joomla/OnAir.jpg=" />


<a name="fb_share" type="button_count" href="www.facebook.com/sharer.php">
Condividi</a><script src="static.ak.fbcdn.net/connect.php/js/FB.Share"
type="text/javascript"></script>
<?php
$brano="WHAM - LAST CHRISTMAS";
$artista="";
$album="";
$anno="2010";
$immagine="OnAir.jpg";
?>

Please Log in or Create an account to join the conversation.

  • arlo
  • arlo's Avatar Topic Author
  • Offline
  • www.matteoarlotti.it
More
20 Sep 2011 10:17 #58907 by arlo

Cia scusa la mia ignoranza non riesco a farlo funzionare.        E COMPILATO BENE!!!!

<?php
function generoidhref() {
$gammaDeiCaratteri = "abcdefghiljkmnopqrstuvwxyz0123456789";    :&#039;( CHE DATI METTO!!!!
srand((double)microtime()*1000000);
$elaborazione = &#039;&#039; ;
for ($contatore=0; $contatore<15; $contatore++) {
$numeroCasuale = rand(0, strlen($gammaDeiCaratteri)-1);
$carattere = substr($gammaDeiCaratteri, $numeroCasuale, 1);
$elaborazione = $elaborazione . $carattere;
}
return $elaborazione;
}
$idhref = generoidhref();
?>
<a href="condividi.php?id=<?php echo($idhref) ?>">CONDIVIDI SU FACEBOOK - CLICCA QUI</a>

<?php
$referrer = $_SERVER[&#039;HTTP_REFERER&#039;];         :&#039;( CHE DATI METTO!!!!

if($referrer!="www.esystemsrl.it/joomla/"){
echo &#039;<meta http-equiv="refresh" content="0;url=http://www.esystemsrl.it/joomla/">';
}
include(&#039;lnx.esystemsrl.it/joomla/OnAir.txt';);
function generoidimg() {
$gammaDeiCaratteri = "abcdefghiljkmnopqrstuvwxyz0123456789";    :&#039;( CHE DATI METTO!!!!

srand((double)microtime()*1000000);
$elaborazione = &#039;&#039; ;
for ($contatore=0; $contatore<15; $contatore++) {
$numeroCasuale = rand(0, strlen($gammaDeiCaratteri)-1);
$carattere = substr($gammaDeiCaratteri, $numeroCasuale, 1);
$elaborazione = $elaborazione . $carattere;
}
return $elaborazione;
}
$idimg = generoidimg();
?>


<title>ORA IN ONDA: <?php echo($brano) ?></title>
<meta name="title" content="ORA IN ONDA: <?php echo($brano) ?>" />
<meta name="description" content="Se vuoi ascoltare <?php echo($brano) ?> collegati su inClub Italia!
Social & Radio. Tanti nuovi amici stanno aspettando proprio te!" />
<link rel="image_src" href="lnx.esystemsrl.it/joomla/OnAir.jpg=" />


<a name="fb_share" type="button_count" href="www.facebook.com/sharer.php">
Condividi</a><script src="static.ak.fbcdn.net/connect.php/js/FB.Share"
type="text/javascript"></script>
<?php
$brano="WHAM - LAST CHRISTMAS";
$artista="";
$album="";
$anno="2010";
$immagine="OnAir.jpg";
?>

Ciao, dove hai messo a lato CHE DAtI METTO, non devi mettere nulla, ma lasciarlo invariato, quelli sono dei caratteri che lo script usa per generare stringhe casuali.
Attenzione alle ultime righe PHP dove citi wham last christmas. Quello è un esempio di composizione del file OnAir txt da caricare sul server per permettere allo script di funzionare correttamente.

Please Log in or Create an account to join the conversation.

  • 90 Dance Radio
03 Oct 2011 15:11 - 04 Oct 2011 17:20 #59423 by 90 Dance Radio
Replied by 90 Dance Radio on topic Re: SCRIPT - Condividere su facebook il box On Air
Ciao..prima che mi cimenti con questo script, chiedo se alla data attuale è ancora funzionante.
Grazie.
Last edit: 04 Oct 2011 17:20 by .

Please Log in or Create an account to join the conversation.

04 Oct 2011 08:37 #59437 by

Ciao..prima che mi cementi con questo script, cheiedo se alla data attuale è ancora funzionante.
Grazie.


Cemento a presa rapida??  ;D

Please Log in or Create an account to join the conversation.

  • napolilounge
  • napolilounge's Avatar
  • Offline
  • Suoni sofisticati dal cuore di Napol
More
04 Oct 2011 16:35 #59448 by napolilounge
Replied by napolilounge on topic Re: SCRIPT - Condividere su facebook il box On Air

Ciao..prima che mi cementi con questo script, cheiedo se alla data attuale è ancora funzionante.
Grazie.


Cemento a presa rapida??  ;D


ahahahah speriamo che non sia mischiato alla sabbia :D

Please Log in or Create an account to join the conversation.

  • arlo
  • arlo's Avatar Topic Author
  • Offline
  • www.matteoarlotti.it
More
04 Oct 2011 19:04 #59449 by arlo
Lo script è sempre funzionante. scusate il ritardo sulla risposta :)

Please Log in or Create an account to join the conversation.

  • 90 Dance Radio
04 Oct 2011 22:11 #59452 by 90 Dance Radio
Replied by 90 Dance Radio on topic Re: SCRIPT - Condividere su facebook il box On Air
Perfetto . Grazie Arlo.

Please Log in or Create an account to join the conversation.

More
05 Dec 2012 14:00 #67360 by andydj
ciao io ho fatto tutto a dovere ma vengo reindirizzato all&#039;instante e no riesco a condividere come faccio ?....


DAB+ marche: CANALE 10B
FM marche: 104.5 Mhz
www.radiofm.biz

Please Log in or Create an account to join the conversation.

  • arlo
  • arlo's Avatar Topic Author
  • Offline
  • www.matteoarlotti.it
More
05 Dec 2012 14:46 - 05 Dec 2012 14:48 #67362 by arlo

ciao io ho fatto tutto a dovere ma vengo reindirizzato all&#039;instante e no riesco a condividere come faccio ?....


L&#039;errore di andy può tornare utile a tutti.

Praticamente, la stringa
$referrer = $_SERVER[&#039;HTTP_REFERER&#039;];
ci restituisce da che cartella stiamo richiamando...

supponiamo di avere i file (landing e condividi) dentro la cartella "condividi".. il codice sarà il seguente:

if($referrer!="www.nostroindirizzo.ext/condividi/"){
 echo &#039;<meta http-equiv="refresh" content="0;url=http://www.indirizzodidestinazione.ext">';
}

altrimenti se ad esempio è www.miodominio.ext/wordpress/fb:
la stringa diventa: if($referrer!="www.miodominio.ext/wordpress/fb/"){

per finire se i file (landing e condividi) sono nella root del sito www.miodominio.ext:
la stringa è: if($referrer!="www.miodominio.ext/"){

Spero di essermi spiegato al meglio
Last edit: 05 Dec 2012 14:48 by .

Please Log in or Create an account to join the conversation.

More
05 Dec 2012 15:09 #67363 by andydj

ciao io ho fatto tutto a dovere ma vengo reindirizzato all&#039;instante e no riesco a condividere come faccio ?....


L&#039;errore di andy può tornare utile a tutti.

Praticamente, la stringa
$referrer = $_SERVER[&#039;HTTP_REFERER&#039;];
ci restituisce da che cartella stiamo richiamando...

supponiamo di avere i file (landing e condividi) dentro la cartella "condividi".. il codice sarà il seguente:

if($referrer!="www.nostroindirizzo.ext/condividi/"){
 echo &#039;<meta http-equiv="refresh" content="0;url=http://www.indirizzodidestinazione.ext">';
}

altrimenti se ad esempio è www.miodominio.ext/wordpress/fb:
la stringa diventa: if($referrer!="www.miodominio.ext/wordpress/fb/"){

per finire se i file (landing e condividi) sono nella root del sito www.miodominio.ext:
la stringa è: if($referrer!="www.miodominio.ext/"){

Spero di essermi spiegato al meglio



comunque continuo ad essere reindirizzato  subito

www.radiofm.fm/orainondafacebook/landing.php

DAB+ marche: CANALE 10B
FM marche: 104.5 Mhz
www.radiofm.biz

Please Log in or Create an account to join the conversation.

  • arlo
  • arlo's Avatar Topic Author
  • Offline
  • www.matteoarlotti.it
More
06 Dec 2012 23:57 #67420 by arlo
Aggiornato lo script alla versione 2.0
Trovate la guida in prima pagina

www.mbradio.it/public/forum/index.php/to...g53612.html#msg53612

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds

MB STUDIO HOME / LITE / PRO

MB STUDIO PRO / LITE MB STUDIO is a radio automation software that will allow you to create and manage your own radio station playing all your media files: jingles, commercials, news, songs, Files from internet, live streams, live inputs from your sound card, satellite feeds. Automatically download news and shows from Internet. Multiple overlapping files and/or live sources (mic, line, aux). Voice tracking. Integrated CD Ripper. Integrated jukebox to play songs requested via sms / email messages. Display current playlist on your web site.

MB RECASTER PRO

video reel32MB RECASTER features an audio recorder with scheduler, a webcast module to send streams to any Shoutcast, Icecast or Windows Media server, AutoDJ function to play randomly your own audio files from up to 4 folders, a stream receiver allowing to record or recast to your server (transcoder), an audio converter from/to any format.

MB LIVE

MB LIVEMB LIVE is a software that stream a live audio\video feed from any place to an MB STUDIO PRO automation in the main radio studio. MB LIVE make use of a TCPIP connection. This program is free for MB STUDIO PRO users