Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Golzarion music player in user profile - HTML 5 Details »
Golzarion music player in user profile - HTML 5
Mod Version: 1.00, by Golzarion (Coder/Designer) Golzarion is offline
Developer Last Online: Dec 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (1 vote - 5.00 average) Installs: 13
Released: 20 Sep 2013 Last Update: 20 Sep 2013 Downloads: 49
Not Supported Uses Plugins Template Edits Auto-Template Additional Files Translations  

Golzarion music player in user profile - html5 :

What does this mod do ?

This mod allows users to upload their desire mp3 music and play it in their own profile !

Each user can have only one mp3 music file on server and in order to change his /her mp3 file : he/she needs to upload a file and it would be replaced with the old mp3 file ...
NO silver light or No Flash player installation is needed! It just uses the power of HTML 5 on users' browser.

Install :

1.download the attached file and extract it on your pc

2. upload "mp3"folder and "mp3.php" file in your forum root directory . and be sure that "mp3" folder has the sufficient permission to upload files ( in most hosts 0777 permission ).

3. Admin Control Panel :
Style Manager=>Your Template=>MemberInfo Templates=>memberinfo_block_ministats

Find :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Before that , add :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

-
4. Add the product " product-Golzarion-mp3-player.xml " via Admincp => pruduct manager =>add new pruduct

5.(optional ) if your vb version is 4.2.X ==> Admin Control Panel => Navigation Manager then in "Forum" tab use the right Drop down menu and select " Add Link" then fill it like bellow :
Attachment 146458 (screenshot4 )
and Save the changes.

Notice : Your users should use "Google Chrome " web browser or Firefox 21 (running on Windows 7, Windows 8, Windows Vista, and Android ) or explorer 8 or higher ...

( No doubt that the latest version of web browser is better ! )

The Persian language(Farsi) translation is also attached .

Optional changes :
1.If you want to increase the size of the mp3 file : in " mp3.php" file search for "2097152" and replace it with your desire size ( the default is 2 mb).Your server also should allow your php to upload that amount of size of mp3 file ... you can change the " php.ini" file on your server or use ".htaccess" file.

2.You can edit the mp3 upload page by editing :"Golzarion_mp3" template it is under "forum Home" template in your style . (It is highly recommended not to change these codes unless you are completely sure of what you are going to do ... )

3.With small amount of changes this html 5 player has the potential to play video files,too. But I do not have enough time right now to do it ...

The player in Chrome :
Attachment 146459
The player in Firefox :
Attachment 146460
The upload page :
Attachment 146461

*** Please click Installed if you use this mode . ***
Golzarion:
http://forum.golzarion.com

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screenshot4.jpg
Views:	127
Size:	55.4 KB
ID:	146458   Click image for larger version

Name:	screenshot3.jpg
Views:	196
Size:	47.3 KB
ID:	146459   Click image for larger version

Name:	screenshot2.jpg
Views:	198
Size:	53.9 KB
ID:	146460   Click image for larger version

Name:	screenshot1.jpg
Views:	173
Size:	87.5 KB
ID:	146461  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements [SW] Music Player in User Profile SoltanWorld vBulletin 4.x Template Modifications 27 18 Oct 2012 23:31
Profile Enhancements LoudFusion Profile Music Player TheInsaneManiac vBulletin 3.8 Template Modifications 35 19 Nov 2009 17:28

Comments
  #2  
Old 20 Sep 2013, 20:18
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Optional :

If you want the users to add " the name of the music file " (like the screen shot bellow) :

screenshot6.jpg

First step (#1) :

Go to : Admincp / User Profile Fields / Add New User Profile Field

Then Select : Profile Field Type : Single-Line Text Box

then fill it like the next screen shot :

screenshot5.jpg

Next:

At last , (instead of the original code on first post, use the code bellow ) :

3. Admin Control Panel :
Style Manager=>Your Template=>MemberInfo Templates=>memberinfo_block_ministats
Find :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Before that , add :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace both bold red X with field number you have created in first step (#1).
and save the changes.

Note : Users can add the name of the music file in their User CP (settings) => Edit profile

w w w.yoursite.com/profile.php?do=editprofile
/
Attached Images
File Type: jpg screenshot5a.jpg (133.0 KB, 5 views)
File Type: jpg screenshot6a.jpg (36.3 KB, 7 views)

Last edited by Golzarion; 25 Sep 2013 at 18:04.
Reply With Quote
  #3  
Old 23 Sep 2013, 20:44
Animparadise's Avatar
Animparadise Animparadise is offline
 
Join Date: Sep 2007
Installed.
__________________
First iranian anime ,manga & animation professional forum.http://forums.animparadise.com
Reply With Quote
  #4  
Old 24 Sep 2013, 16:02
Shahed's Avatar
Shahed Shahed is offline
 
Join Date: Aug 2006
Installed
Nice !
Reply With Quote
  #5  
Old 01 Oct 2013, 13:05
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Originally Posted by Shahed View Post
Installed
Nice !
You are welcome.
Reply With Quote
  #6  
Old 14 Oct 2013, 03:05
OUTL4W OUTL4W is offline
 
Join Date: May 2013
installed...where does this mod place the upload link?
Reply With Quote
  #7  
Old 19 Oct 2013, 16:18
OUTL4W OUTL4W is offline
 
Join Date: May 2013
finally figured out the download link....read instructions....but no matter what I do...keep getting the eror
"Error! Check folder permission!"
even though I chmod'd the mp3 folder to 777....
used firefox 24.0 & chrome 30.0.1599.69 m

ugghhhhh....
Reply With Quote
  #8  
Old 25 Oct 2013, 21:29
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Originally Posted by OUTL4W View Post
installed...where does this mod place the upload link?
It is on your forum's root and the folder name is : "mp3";

Originally Posted by OUTL4W View Post
finally figured out the download link....read instructions....but no matter what I do...keep getting the eror
"Error! Check folder permission!"
even though I chmod'd the mp3 folder to 777....
used firefox 24.0 & chrome 30.0.1599.69 m
ugghhhhh....
It may be because of your server configuration ... double check the folder "mp3" permission (you should have sufficient permission to upload file via php on this folder ) and also check server " temp " folder name on your php.ini ...
If you do not access "php.ini" on your server ,please ask your hosting company about the temp folder for uploading via php and then on "mp3.php" find :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change "tmp_name" to the correct name of temp folder depending on your server configuration .

I hope it helps ...
/
I have installed this mod on two forums personally whith default setting and no chages was required !
It works perfect .

Last edited by Golzarion; 25 Oct 2013 at 21:34.
Reply With Quote
  #9  
Old 26 Oct 2013, 00:53
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Once you upload music yes it plays ok but if I upload another mp3 song it still plays the first one uploaded and won't change it no matter what is done
Reply With Quote
  #10  
Old 26 Oct 2013, 19:31
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Originally Posted by ForceHSS View Post
Once you upload music yes it plays ok but if I upload another mp3 song it still plays the first one uploaded and won't change it no matter what is done
It is because of your web browser cache !
Of course you will here the newest music if you clear your browser cache or I guess the next time you visit the profile ...
Any way , if I change the mod to reload the music for every refresh , then there would be 2 possible solutions :

1. Putting no-cache meta tag on user profile .

2. Creating a new table on database in order to store the file name and one query would be added on each page refresh for user profile ...
I have not decided yet, but I'll try to do some changes in future ..
Reply With Quote
  #11  
Old 28 Oct 2013, 04:23
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Originally Posted by Golzarion View Post
It is on your forum's root and the folder name is : "mp3";


It may be because of your server configuration ... double check the folder "mp3" permission (you should have sufficient permission to upload file via php on this folder ) and also check server " temp " folder name on your php.ini ...
If you do not access "php.ini" on your server ,please ask your hosting company about the temp folder for uploading via php and then on "mp3.php" find :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change "tmp_name" to the correct name of temp folder depending on your server configuration .

I hope it helps ...
/
I have installed this mod on two forums personally whith default setting and no chages was required !
It works perfect .
my php.ini is located in:
/usr/php4/lib/
snippet from php.ini
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 6M


my forum is not located under root....was changed long ago for security reasons....can I point the red text to any folder of my choosing where the forums are located?
Reply With Quote
  #12  
Old 31 Oct 2013, 16:42
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
my forum is not located under root....was changed long ago for security reasons....can I point the red text to any folder of my choosing where the forums are located?
I guess this is the point! Please check that the folder "mp3" exists on your forum main directory , I mean the place where your forum files and folders are existed.
and check the folder permission again.
for example if your forum path is something like :

www.yourdomain.com/forums/forum.php

Then your "mp3" folder should be on :

www.yourdoain.com/forums/mp3

I hope it would be helpful
Reply With Quote
  #13  
Old 15 Jan 2014, 03:17
mohammadxxx's Avatar
mohammadxxx mohammadxxx is offline
 
Join Date: Sep 2008
Hi
I did all the things you said in the first post to the last.
But still not playing music!
Why ?

(Description : I transferred your code into postbit_legacy)
__________________
My Persian vBulletin Forum
WWW.ALL4PERSIAN.NET
And
WWW.ALL4PERSIAN.COM

Last edited by mohammadxxx; 15 Jan 2014 at 03:41.
Reply With Quote
  #14  
Old 27 Jun 2015, 15:07
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Real name: Hazim M
when i upload another mp3 it not play

its play the old mp3 (not refresh to new mp3 )
Reply With Quote
  #15  
Old 28 Jun 2015, 12:55
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Originally Posted by hazem_aliraqi View Post
when i upload another mp3 it not play

its play the old mp3 (not refresh to new mp3 )
I have explained in this post : http://www.vbulletin.org/forum/showp...3&postcount=10

It is because of your web browser cache !
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:06.

Layout Options | Width: Wide Color: