Free Wordpress Mp3 Tag Code In Php - WapForum | No1 Online Public Forum - Page 1 - WapForum | No1 Online Public Forum - Page 1


Home
Advertise
Blog
Sell

All Wordpress Themes







You Are Currently Viewing This Forum As A GUEST!.
You Are Restricted In Some Area
Login Or Register
To Have Full Access To The Forum .


[-]
Tags
in wordpress mp3 free code php tag

Free Wordpress Mp3 Tag Code In Php


(638 Views )
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




Quote
Love it baba

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

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

Neva doubt me bcus, i can kill... (*Shits dont suck, you suck*)
Quote



Share This Post To The World




You Are Currently Viewing This Forum As A GUEST!.
You Are Restricted In Some Area
Login Or Register
To Have Full Access To The Forum .




Possibly Related Threads...
Thread
HOT: How To Get Free Domain Name
COMING SOON: Php, Mysql, Css And Html Tutorial
CODE: Facebook Log In Page Code For Wapkiz
HOT: Free Domain Name Contest
TUTORIAL: How to Install Free SSL Certificate With Let Enscript's On Abollyhost.com
Get Free Hosting With 10gb Ssd Secure Storage And 2tb Premium Bandwidth
TUTORIAL: How To Instantly Switch Between User Accounts In Wordpress

Wapforum.com.ng Is The Next Big Hits Online Public Forum In Nigeria




Users browsing this thread: 1 Guest(s)






Copyright © 2019 Wapforum.Com.Ng
Owned by Flexible


Powered by MyBB.