Advertise Your Business With Us At Cheap Price, Call Or WhatsApp +2349021020979


[-]
Tags
in wordpress mp3 free code php tag

Hi Guest, kindly Login Or Register To Unlock More Advanced Features In Wapforum


Free Wordpress Mp3 Tag Code In Php
(4.3k )
#1
Note Am not Sharing The file but the codes....

You can create the dir by yourself 1) Index.php 2) music.jpg and tag directory , insert this code in index.php


Quote: /**
* @package Wapdite 2019
* @author Simple
* @version 1.0
*/
if ( !isset( $_GET['go'] ) ) {
die( 'Request Failed');
}
error_reporting(0);
require ( 'getid3/getid3.php' ) ;
if( isset($_POST['submit'])){
$now = time() ;
$default_mp3_directory = "../wp-content/uploads/";
$default_album = "@NairaTeam_NG";
$default_year = date("Y", $now);
$default_genre = "NairaTeam.com";
$default_producer = '';
$default_cover = './Wapdite.jpg';
$shownUrl = 'http://www.wapdite.com.ng/wp-content/uploads/';
# To the real uploads

$mp3_filepath = trim($_POST['url']);
$mp3_songname = trim($_POST['title']);
$mp3_comment = "Downloaded from NairaTeam.com";;
$mp3_artist = trim($_POST['artiste']);
$artiste = $mp3_artist;
$pFilename = trim($_POST['filename']);
$mp3_filename = empty( $pFilename ) ? $mp3_artist.' - '.$mp3_songname : $pFilename;
$mp3_album = empty ( $_POST['album'] ) ? $default_album : trim ( $_POST['album'] );
$mp3_year = empty ( $_POST['year'] ) || !is_numeric($_POST['year']) || strlen($_POST['year']) != 4 ? $default_year : $_POST['year'];
$mp3_genre = empty ( $_POST['genre'] ) ? $default_genre : $_POST['genre'];
$extra = array ( 'year' => $mp3_year, 'genre' => trim($_POST['genre']), 'album' => trim($_POST['album']), 'producer' => ! empty ( $_POST['producer']) ? trim($_POST['producer']) : $default_producer );
$error = '';

# Checking the mp3

if( !filter_var($mp3_filepath, FILTER_VALIDATE_URL)){
$error .= 'Invalid File URL
';
} else if ( empty($mp3_filename) OR empty ($mp3_songname) OR empty($mp3_artist)){
$error .= "Fields Marked * Are Required
";
} else if ( !file_exists($default_cover) ) {
$error .= 'The Photo Cover Has Not Been Uploaded';
} else {
$timeFolder .= date('Y', $now) . '/' . date('m', $now) . '/';
if(!file_exists($default_mp3_directory . $timeFolder)){ mkdir($default_mp3_directory . $timeFolder, 0777, true); }
$invalidchars = array("'", '"', '.', ',');
$storeName = str_replace($invalidchars, '', $mp3_filename); // . '_Wapdite.com.ng.mp3';
$storeName = preg_replace('/[^A-Z-a-z0-9\-_]/', '_', $storeName);
$storeName = preg_replace("/_{2,}/", "_", $storeName);
$storeName .= '_Wapdite.com.ng.mp3';
$sname = $default_mp3_directory . $timeFolder . $storeName;
if (file_exists($sname) ) {
$error = 'File Has Alread Been Uploaded As ' . $storeName . '';
} else {
if(copy($mp3_filepath, $sname)){
# Rewrite tags
$mp3_tagformat = 'UTF-8';
$mp3_handler = new getID3;
$mp3_handler->setOption(array('encoding'=>$mp3_tagformat));

# The writer class
require ( 'getid3/write.php' ) ;

$mp3_writter = new getid3_writetags;


$mp3_writter->filename = $sname;
$mp3_writter->tagformats = array('id3v1', 'id3v2.3');
$mp3_writter->overwrite_tags = true;
$mp3_writter->tag_encoding = $mp3_tagformat;
$mp3_writter->remove_other_tags = true;

$mp3_data['title'][] = $mp3_songname.' via Wapdite.com.ng';
$mp3_data['artist'][] = $mp3_artist;
$mp3_data['album'][] = $mp3_album;
$mp3_data['year'][] = $mp3_year;
$mp3_data['genre'][] = $mp3_genre;
$mp3_data['comment'][] = $mp3_comment;
$mp3_data['attached_picture'][0]['data'] = file_get_contents($default_cover);
$mp3_data['attached_picture'][0]['picturetypeid'] = "image/jpeg";
$mp3_data['attached_picture'][0]['description'] = "Downloaded from Wapdite.com.ng";
$mp3_data['attached_picture'][0]['mime'] = "image/jpeg";
$mp3_writter->tag_data = $mp3_data;

if ( $mp3_writter->WriteTags() ) {
$link = $sname ;
$shownUrl .= $timeFolder . $storeName;
} else {
unlink ( $sname );
$error .= "Failed To Write Tags!

" . implode( "

", $mp3_writter->errors ) . '

';
}
} else {
$error .= "Unable To Copy File please contact author info.wapdite@gmail.com";
}
}
}
}
?>

Wapdite Music Upload Via URL
<meta name="robots" content="noindex,nofollow">
<style>
body { width: 1024px; font-size: 100%; background: #DEDEDE; margin: 0 auto; text-align: center;}
.wrapper { background: #F5F5F5; padding: 50px 100px; margin-top: 50px;}
.help { font-size: 80%; font-style: italic; font-weight: normal; }
.label { font-weight: bold;}
input[type=text] { padding: 5px; width: 70%; border-radius: 3px; }
input[type=submit] { padding: 10px 40px; cursor: pointer; background-color: #3366CC; color: #FFF; font-weight: bold; border-radius: 20px; }
input[type=submit]:hover{ background-color: #000; }
.error { padding: 30px 50px; color: #000; background-color: #FFFFCC; border: 3px solid #000;}
.successbox { padding: 30px 50px; color: #000; background-color: #ffffcc; border: 3px solid #FF00FF; font-weight: bold; }
.successbox p input[type=text] { padding: 3px; width: 50%; border-radius: 7px; }
</style>

Welcome To Wapdite Upload Panel



File Uploaded Successfully





Link


*Required : URL To File(e.g http://www.mysite.com/music.mp3)

Artiste


*Required: Artiste's Name(e.g Eminem, Davido, Olades, Don Jazzy)

Title


Required: Track Name (e.g Crack A Bottle (ft. Olades & Dr Dre))

Album


Optional

Producer


Optional









Copy Using Quote


Credit : Olades

I copy and paste it nio from Olades post

re qoute bro
Quote: /**
* @package Wapdite 2019
* @author Simple
* @version 1.0
*/
if ( !isset( $_GET['go'] ) ) {
die( 'Request Failed');
}
error_reporting(0);
require ( 'getid3/getid3.php' ) ;
if( isset($_POST['submit'])){
$now = time() ;
$default_mp3_directory = "../wp-content/uploads/";
$default_album = "@NairaTeam_NG";
$default_year = date("Y", $now);
$default_genre = "NairaTeam.com";
$default_producer = '';
$default_cover = './Wapdite.jpg';
$shownUrl = 'http://www.wapdite.com.ng/wp-content/uploads/';
# To the real uploads

$mp3_filepath = trim($_POST['url']);
$mp3_songname = trim($_POST['title']);
$mp3_comment = "Downloaded from NairaTeam.com";;
$mp3_artist = trim($_POST['artiste']);
$artiste = $mp3_artist;
$pFilename = trim($_POST['filename']);
$mp3_filename = empty( $pFilename ) ? $mp3_artist.' - '.$mp3_songname : $pFilename;
$mp3_album = empty ( $_POST['album'] ) ? $default_album : trim ( $_POST['album'] );
$mp3_year = empty ( $_POST['year'] ) || !is_numeric($_POST['year']) || strlen($_POST['year']) != 4 ? $default_year : $_POST['year'];
$mp3_genre = empty ( $_POST['genre'] ) ? $default_genre : $_POST['genre'];
$extra = array ( 'year' => $mp3_year, 'genre' => trim($_POST['genre']), 'album' => trim($_POST['album']), 'producer' => ! empty ( $_POST['producer']) ? trim($_POST['producer']) : $default_producer );
$error = '';

# Checking the mp3

if( !filter_var($mp3_filepath, FILTER_VALIDATE_URL)){
$error .= 'Invalid File URL
';
} else if ( empty($mp3_filename) OR empty ($mp3_songname) OR empty($mp3_artist)){
$error .= "Fields Marked * Are Required
";
} else if ( !file_exists($default_cover) ) {
$error .= 'The Photo Cover Has Not Been Uploaded';
} else {
$timeFolder .= date('Y', $now) . '/' . date('m', $now) . '/';
if(!file_exists($default_mp3_directory . $timeFolder)){ mkdir($default_mp3_directory . $timeFolder, 0777, true); }
$invalidchars = array("'", '"', '.', ',');
$storeName = str_replace($invalidchars, '', $mp3_filename); // . '_Wapdite.com.ng.mp3';
$storeName = preg_replace('/[^A-Z-a-z0-9\-_]/', '_', $storeName);
$storeName = preg_replace("/_{2,}/", "_", $storeName);
$storeName .= '_Wapdite.com.ng.mp3';
$sname = $default_mp3_directory . $timeFolder . $storeName;
if (file_exists($sname) ) {
$error = 'File Has Alread Been Uploaded As ' . $storeName . '';
} else {
if(copy($mp3_filepath, $sname)){
# Rewrite tags
$mp3_tagformat = 'UTF-8';
$mp3_handler = new getID3;
$mp3_handler->setOption(array('encoding'=>$mp3_tagformat));

# The writer class
require ( 'getid3/write.php' ) ;

$mp3_writter = new getid3_writetags;


$mp3_writter->filename = $sname;
$mp3_writter->tagformats = array('id3v1', 'id3v2.3');
$mp3_writter->overwrite_tags = true;
$mp3_writter->tag_encoding = $mp3_tagformat;
$mp3_writter->remove_other_tags = true;

$mp3_data['title'][] = $mp3_songname.' via Wapdite.com.ng';
$mp3_data['artist'][] = $mp3_artist;
$mp3_data['album'][] = $mp3_album;
$mp3_data['year'][] = $mp3_year;
$mp3_data['genre'][] = $mp3_genre;
$mp3_data['comment'][] = $mp3_comment;
$mp3_data['attached_picture'][0]['data'] = file_get_contents($default_cover);
$mp3_data['attached_picture'][0]['picturetypeid'] = "image/jpeg";
$mp3_data['attached_picture'][0]['description'] = "Downloaded from Wapdite.com.ng";
$mp3_data['attached_picture'][0]['mime'] = "image/jpeg";
$mp3_writter->tag_data = $mp3_data;

if ( $mp3_writter->WriteTags() ) {
$link = $sname ;
$shownUrl .= $timeFolder . $storeName;
} else {
unlink ( $sname );
$error .= "Failed To Write Tags!

" . implode( "

", $mp3_writter->errors ) . '

';
}
} else {
$error .= "Unable To Copy File please contact author info.wapdite@gmail.com";
}
}
}
}
?>

Wapdite Music Upload Via URL
<meta name="robots" content="noindex,nofollow">
<style>
body { width: 1024px; font-size: 100%; background: #DEDEDE; margin: 0 auto; text-align: center;}
.wrapper { background: #F5F5F5; padding: 50px 100px; margin-top: 50px;}
.help { font-size: 80%; font-style: italic; font-weight: normal; }
.label { font-weight: bold;}
input[type=text] { padding: 5px; width: 70%; border-radius: 3px; }
input[type=submit] { padding: 10px 40px; cursor: pointer; background-color: #3366CC; color: #FFF; font-weight: bold; border-radius: 20px; }
input[type=submit]:hover{ background-color: #000; }
.error { padding: 30px 50px; color: #000; background-color: #FFFFCC; border: 3px solid #000;}
.successbox { padding: 30px 50px; color: #000; background-color: #ffffcc; border: 3px solid #FF00FF; font-weight: bold; }
.successbox p input[type=text] { padding: 3px; width: 50%; border-radius: 7px; }
</style>

Welcome To Wapdite Upload Panel



File Uploaded Successfully





Link


*Required : URL To File(e.g http://www.mysite.com/music.mp3)

Artiste


*Required: Artiste's Name(e.g Eminem, Davido, Olades, Don Jazzy)

Title


Required: Track Name (e.g Crack A Bottle (ft. Olades & Dr Dre))

Album


Optional

Producer


Optional





#2
Love it baba


#3
How to set it up please?
Im getting a response: Unable To Copy File please contact author 08129741578


#4
@ender, if it says, unable to copy file then, the mp3 URL you copied is not correct... Try another mp3 URL


#5
Great


ihostright

Share This Post To The World






Users browsing this thread: 1 Guest(s)
Goto First Post In This Thread



Possibly Related Threads...
Thread Author Replies Views Last Post
  CODE: Facebook Log In Page Code For Wapkiz hipodone 1 7.7k 28-04-2020, 10:55 AM
Last Post: litesloaded
  HELP: Please I Need The Multiple Rotating Ads Banner Code Prosperity 2 1.6k 28-04-2020, 10:54 AM
Last Post: litesloaded
  HELP: Wordpress Gurus Please Help Me Out Forumhub 8 2.8k 27-04-2020, 11:59 PM
Last Post: litesloaded
  Get Free Hosting With 10gb Ssd Secure Storage And 2tb Premium Bandwidth sahadatthed 3 6.7k 27-04-2020, 11:49 PM
Last Post: litesloaded
  HOT: How To Get Free Domain Name Profolaafe 7 8.5k 25-09-2019, 06:54 PM
Last Post: Logan
  COMING SOON: Php, Mysql, Css And Html Tutorial Rayne 3 3.8k 09-11-2018, 11:37 AM
Last Post: timidab
  HOT: Free Domain Name Contest Anonymous 2 5.5k 04-06-2018, 06:46 PM
Last Post: Fullygistloaded




Advertisement
ihostright