Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help : Mp3 Tag Plugin
01-24-2015, 05:52 PM,
Post: #1
Help : Mp3 Tag Plugin
Frnds
I wanted to show show more latters in Mp3 title tag, When i import from other sites it has been removing some words from title Mp3 tag.
Plz Suggest me how to increase value in mp3 title tag?
Reply
[-] The following 1 user Likes shekarkumar1's post:
  • sumirbd
01-25-2015, 08:07 AM,
Post: #2
RE: Help : Mp3 Tag Plugin
(01-24-2015, 05:52 PM)shekarkumar1 Wrote: Frnds
I wanted to show show more latters in Mp3 title tag, When i import from other sites it has been removing some words from title Mp3 tag.
Plz Suggest me how to increase value in mp3 title tag?

The solution code will be very appreciate able ..Thanks in advance
Reply
01-25-2015, 12:56 PM,
Post: #3
RE: Help : Mp3 Tag Plugin
Maybe you have to change maxlength in your desired length in required file... maybe tag.php or tags.php.
Reply
01-25-2015, 05:06 PM, (This post was last modified: 01-25-2015, 05:07 PM by shekarkumar1.)
Post: #4
RE: Help : Mp3 Tag Plugin
(01-25-2015, 12:56 PM)Junior Wrote: Maybe you have to change maxlength in your desired length in required file... maybe tag.php or tags.php.

There is no such "maxlenght" in tag or tags.php..
Is there any other way?????????
Reply
01-25-2015, 05:40 PM,
Post: #5
RE: Help : Mp3 Tag Plugin
I mean you have to change current maximum length.
Reply
01-25-2015, 05:49 PM, (This post was last modified: 01-25-2015, 05:51 PM by shekarkumar1.)
Post: #6
RE: Help : Mp3 Tag Plugin
(01-25-2015, 05:40 PM)Junior Wrote: I mean you have to change current maximum length.

Bro can u make that.. im new to php so
Plz

// show tags
function mp3tags_show($value) {
global $set, $lang, $icon, $show_icon, $file, $ext;
if ($file AND $set->plugins['show_tags'] == 1 AND file_exists(".".$file->path)) {
include_once "./lib/getid3/getid3.php";
$mp3_tagformat = 'UTF-8';
$filepath = ".".$file->path;
$mp3Tags = new getID3;
$mp3Tags->setOption(array('encoding'=>$mp3_tagformat, 'tempdir'=>'./temp/'));
$tagInfo = $mp3Tags->analyze($filepath);
$tags = mp3tags_get_tags($tagInfo);

$othersInfo = "<div class='title2'>$lang->tags_info </div>";
$mp3tagsInfo = "";

if ($tags['title'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_title : ".htmlentities($tags['title'])."</div>";
if ($tags['artist'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_artist : ".htmlentities($tags['artist'])."</div>";
if ($tags['album'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_album : ".htmlentities($tags['album'])."</div>";
if ($tags['genre'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_genre : ".htmlentities($tags['genre'])."</div>";
if ($tags['year'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_year : ".(int)$tags['year']."</div>";
if ($tags['track'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_track : ".htmlentities($tags['track'])."</div>";
if ($tags['band'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_band : ".htmlentities($tags['band'])."</div>";
if ($tags['publisher'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_publisher : ".htmlentities($tags['publisher'])."</div>";
if ($tags['composer'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_composer : ".htmlentities($tags['composer'])."</div>";
if ($tags['comment'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_comment : ".htmlentities($tags['comment'])."</div>";
if ($tags['playtime_string'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_playtime : ".htmlentities($tags['playtime_string'])."</div>";
if ($tags['kbps'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_bitrate : ".$tags['kbps']." kbps</div>";
if ($tags['audio_mode'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_channel : ".htmlentities($tags['audio_mode'])."</div>";
if ($tags['width'] AND $tags['height'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_resolution : ".$tags['width']." x ".$tags['height']."</div>";
if ($tags['file_format'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_fileformat : ".htmlentities($tags['file_format'])."</div>";
if ($tags['mime_type'])
$mp3tagsInfo .= "<div class='content".(++$i % 2 == 0 ? 2 : "")."'>$lang->tag_mime : ".htmlentities($tags['mime_type'])."</div>";

This is mp3tags_editor_plugin.php
Reply
01-25-2015, 06:52 PM,
Post: #7
RE: Help : Mp3 Tag Plugin
Can you please post /admincp/tags.php file?
Reply
01-25-2015, 07:45 PM, (This post was last modified: 01-25-2015, 07:46 PM by shekarkumar1.)
Post: #8
RE: Help : Mp3 Tag Plugin
<?php

/****************************************************************
*****************************************************************
** Mp3 Tags Editor Plugin ************************************************
*****************************************************************
** Author : azkha **
** Homepage : http://www.azkha.com **
** Contact: **
** Email : [email protected] | [email protected] | [email protected] **
** Facebook : http://www.fb.com/azkha.dira **
** Twitter : @azkha_dira **
** Description : This will be show file information like : **
** resolution (video or image file), **
** duration (video and audio file) **
** preview list (archive file) **
** mp3 tags like (title, artist, album, etc.) **
** and you can edit mp3 tags also. **
** Setting : Goto Admin Panel -> Plugin Manager -> Install this plugin **
** change setting for this plugin like **
** auto edit tags, show tags, add suffix, comment and cover image tags. **
** example suffix result like -> Artist : Britney Spears - http://www.azkha.com **
** you can add image by upload or import (upload http) as Album cover image (id3v2) **
** Created at : September 28, 2012 **
** Modified at : April 25, 2013 **
*****************************************************************
** Please do not change or remove all of azkha properties.. **
** if you remodify this file, enter your about here **
** Enjoy ;-) **
*****************************************************************
*****************************************************************/

include "../inc/init.php";

if(!is_admin()) {
header("Location: $set->url");exit;
}
$fid = (int)$_GET['id'];

$links[] = mai_img("arr.gif")." <a href='index.php'>$lang->admincp </a>";
$links[] = mai_img("arr.gif")." <a href='$set->url/index.php'>$lang->file_manager </a>";

require_once('../lib/getid3/getid3.php');
require_once('../lib/getid3/write.php');

if ($_GET['act'] == 'edit') {
$file = $db->get_row("SELECT * FROM `". MAI_PREFIX ."files` WHERE `id`='$fid'");
if (!$file) {
header("Location: $set->url");
exit;
} else {
$mp3_tagformat = 'UTF-8';
$mp3_handler = new getID3;
$mp3_handler->setOption(array('encoding'=>$mp3_tagformat));
$filepath = "..".$file->path;
$title = "Edit Tags " . $file->name;
$links[] = mai_img("arr.gif")." <a href='$set->url/data/file/$file->id/".mai_converturl($file->name).".html'>$file->name </a>";
$links[] = mai_img("arr.gif")." Edit Tags";
include "../header.php";
if(file_exists($filepath)) {
$infos = $mp3_handler->analyze($filepath);
$tag = mp3tags_get_tags($infos);

if (isset($_POST['submit'])) {
if ($_POST['mp3_image_default']) {
$_POST['mp3_image_url'] = $set->plugins['image_tag'];
$_FILES = null;
}
if ($_POST['mp3_image_remove']) {
$_POST['mp3_image_url'] = "";
$_FILES = null;
}
if(mp3tags_writter($filepath, $_POST, $_FILES))
echo"<div class='green'>Tags of $file->name edited.</div>";
else
echo"<div class='red'>Failed to write tags!<br></div>";
}
else {
echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'?act=edit&id='.$fid.'" enctype="multipart/form-data">
<input type="hidden" name="mass" value="1">';
if($tag['img_data']) {
echo '<div class="icon">
Cover album -><br>
<img src="'.$set->url.'/icon.php?src='.base64_encode(".".$file->path).'" style="max-width:128px;">
</div>';
}
echo '<div class="content">
Song Title: <input size="12" type="text" class="input" name="mp3_title" value="'.($tag['title'] ? htmlentities($tag['title']) : htmlentities($set->plugins['suffix_tag'])).'">
</div><div class="content2">
Artist: <input size="12" type="text" class="input" name="mp3_artist" value="'.($tag['artist'] ? htmlentities($tag['artist']) : htmlentities($set->plugins['suffix_tag'])).'">
</div><div class="content">
Album: <input size="12" type="text" class="input" name="mp3_album" value="'.($tag['album'] ? htmlentities($tag['album']) : htmlentities($set->plugins['suffix_tag'])).'">
</div><div class="content2">
Genre: <input size="12" type="text" class="input" name="mp3_genre" value="'.htmlentities($tag['genre']).'">
</div><div class="content">
Year:&nbsp;<input size="4" type="text" class="input" mini:hint="phone" name="mp3_year" value="'.($tag['year'] ? htmlentities($tag['year']) : htmlentities($tag2['year'][0])).'">&nbsp;|&nbsp;
Track:&nbsp;<input size="3" type="text" mini:hint="phone" class="input" name="mp3_track" value="'.htmlentities($tag['track']).'">
</div><div class="content2">
Band:&nbsp;<input size="12" type="text" class="input" name="mp3_band" value="'.($tag['band'] ? htmlentities($tag['band']) : htmlentities($set->name)).'">
</div><div class="content">
Publisher:&nbsp;<input size="12" type="text" class="input" name="mp3_publisher" value="'.($tag['publisher'] ? htmlentities($tag['publisher']) : htmlentities($set->url)).'">
</div><div class="content2">
Composer:&nbsp;<input size="12" type="text" class="input" name="mp3_composer" value="'.htmlentities($tag['composer']).'">
</div><div class="content">
Comment (max 25 char):<br>
<textarea name="mp3_comment" rows="2">'.($tag['comment'] ? htmlentities($tag['comment']) : htmlentities($set->plugins['comment_tag'])).'</textarea>
</div>';
echo '<div class="content">
Upload Image (jpg, png, or gif only):<br>
<input size="8" type="file" class="input" name="mp3_image_file">
</div><div class="content2">
Import Image from URL (jpg, png, or gif only):<br>
<input size="12" type="text" class="input" name="mp3_image_url" value="">
</div>';
if ($set->plugins['image_tag']) {
echo '<div class="icon">
<img src="'.$set->plugins['image_tag'].'" width="80">&nbsp;
<input type="checkbox" name="mp3_image_default" value="1"> Use default image ?</div>';
}
echo '<div class="content2">
<input type="checkbox" name="mp3_image_remove" value="1"> Remove Image Tags ?
</div><div class="content">
<input type="submit" name="submit" value="Edit Tags">
</div></form>';
}
} else {
echo"<div class='red'>File $file->name doesn't exists !<br></div>";
}
include "../footer.php";
}
}
else header('Location: '.$set->url);

?>

here it is
Reply
01-25-2015, 08:35 PM,
Post: #9
RE: Help : Mp3 Tag Plugin
This two php file has no relation with that problem. You better check write.php and getid3.php
Reply
01-27-2015, 07:25 AM,
Post: #10
RE: Help : Mp3 Tag Plugin
(01-25-2015, 08:35 PM)Junior Wrote: This two php file has no relation with that problem. You better check write.php and getid3.php

I uploaded Both files can plz check it....


Attached Files
.php   write.php (Size: 25.21 KB / Downloads: 19)
.php   getid3.php (Size: 61.21 KB / Downloads: 20)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)