Author Topic: [Mod]Flash Mp3 Player  (Read 68714 times)

0 Members and 1 Guest are viewing this topic.

Offline baerke

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #30 on: July 30, 2010, 12:02:36 AM »
Hello, i am using this mod since one year. I found out that it is possible to access the player directly without logging in on the site by typing the direct adress of the player.
Is it possible to block this? I do not want that people who did not log in can access the player.
Thanks for the respons

Rembrandt

  • Guest
Re: [Mod]Flash Mp3 Player
« Reply #31 on: July 30, 2010, 06:29:31 AM »
.. I do not want that people who did not log in can access the player.
:?: that is the same as in the pictures

go in the ACP/Categories/Edit Categories and set restriction for the music categories.

or search in templates/YourTemplates/media/ mp3.html:
Code: [Select]
<div>insert above:
Code: [Select]
{if user_loggedout}<b class="title">Please Login or Register</b><br>{endif user_loggedout}
{if user_loggedin}
search:
Code: [Select]
</div>insert below:
Code: [Select]
{endif user_loggedin}
mfg Andi

Offline baerke

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #32 on: July 30, 2010, 02:55:17 PM »
.. I do not want that people who did not log in can access the player.


Thanks for the reply.

I have tried the changes you have proposed. But without succes.

When people go directly to http://mysite/fsmp3playerv15.swf they see the player and the playlist.
There is no logon screen.
Is it because the player is in the root directory?


I have tried it on your demosite and its the same, although i think that you haven't secured it with a password.


 

« Last Edit: July 30, 2010, 05:58:32 PM by baerke »

Rembrandt

  • Guest
Re: [Mod]Flash Mp3 Player
« Reply #33 on: July 30, 2010, 06:36:34 PM »
hmm... good question, to time i have not a answer, sorry

Offline baerke

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #34 on: July 30, 2010, 11:39:42 PM »
ok, doesn't matter, you cannot know it all.
I hear from you when you have a clou, i will try for myself and keep you informed..
greetings, Rob  :wink:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod]Flash Mp3 Player
« Reply #35 on: July 31, 2010, 04:41:16 AM »
@Rembrandt:
do you have .fla file for your version of the player? (it looks like your player is different then any other version I could find)
If you do, then you can change auidolist.xml file to audiolist.php in FSMP3Playerv1 component definition. After that you can remove all changes from details.php and move everything into audiolist.php This way it should fix the problem baerke described and also a possible cross-user problem I mentioned in my very first reply.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Rembrandt

  • Guest
Re: [Mod]Flash Mp3 Player
« Reply #36 on: July 31, 2010, 06:59:58 AM »
Hi!

to time, i have no programm to edit the file.
i think it was flash mx, not mx 2004.
i have added the attachment

mfg Andi

Offline baerke

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #37 on: August 01, 2010, 02:18:19 PM »
@V@no:
"do you have .fla file for your version of the player? (it looks like your player is different then any other version I could find)"

Hi V@no, i have tried this but the playlist will not load in the player anymore.
I think that there are some codes i have forgotten. I am not used work with php. (just copy and paste will not work)

Can you advise me what to do?

thanks for your answer. Rob

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod]Flash Mp3 Player
« Reply #38 on: August 01, 2010, 03:18:45 PM »
I installed 30 days trial of adobe flash, opened .fla file and realized that I have no idea what to do with it...

If managed to make it actually use use audiolist.php then create that file with this following content:
<?php
echo '
put content from audiolist.xml file here
'
;
?>

see if it works. if it does, would be nice have that .swf file for further testings ;)

P.S.

You know what, all this also could be done via mod_rewrite if such available on your server...

P.P.S.
@Rembrandt:
Maybe it's better use more powerful, highly customizable JW Player instead?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Rembrandt

  • Guest
Re: [Mod]Flash Mp3 Player
« Reply #39 on: August 01, 2010, 05:28:00 PM »
...
Maybe it's better use more powerful, highly customizable JW Player instead?
can you do it ?  :)

Offline baerke

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #40 on: August 01, 2010, 10:46:07 PM »
"see if it works. if it does, would be nice have that .swf file for further testings ;)"

Hi V@no, i've tested it still without succes.

The file i used (audiolist.php)  is attached.


Offline peyv

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #41 on: August 09, 2010, 03:13:58 PM »
 :) Hallo leute vielen Dank , für den Mod sehr schöne sache , ich habe installiert und läuft sehr gut , aber leider der player spielt alle MP3 in der kategorie ab, ich will aber nu das angeklickte sonsg abgespielt wird
bitte um hilfe , meine seite besteht nur als mp3 und finde keine lösung  :|


Hello people,  very nice  mod , thank you
 I have installed and runs very well, but unfortunately the player plays all songs in the category, but I want Only the selected  sonsg  played
please help, my site is only as mp3 and find no solution
« Last Edit: August 09, 2010, 03:27:44 PM by peyv »

Rembrandt

  • Guest
Re: [Mod]Flash Mp3 Player
« Reply #42 on: August 09, 2010, 05:20:10 PM »
ich will aber nu das angeklickte sonsg abgespielt wird....
versuche mal das:
suche im code:

	
while (
$image_row $site_db->fetch_array($result,MYSQL_ASSOC)){
	
$zeichen = array('"',"'",'#''?''§''$''%''&''/''('')''=''^''°''*''@');
	
$img_name str_replace($zeichen,"",$image_row['image_name']);
	
$text .= "<song path=\"./data/media/".$image_row['cat_id']."/".$image_row['image_media_file']."\" bild=\"./data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\" artist=\"".$image_row['image_keywords']."\" title=\"".$img_name."\" />\n";
}

und ersetze es mit:

	
//while ($image_row = $site_db->fetch_array($result,MYSQL_ASSOC)){
	
$zeichen = array('"',"'",'#''?''§''$''%''&''/''('')''=''^''°''*''@');
	
$img_name str_replace($zeichen,"",$image_row['image_name']);
	
$text .= "<song path=\"./data/media/".$image_row['cat_id']."/".$image_row['image_media_file']."\" bild=\"./data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\" artist=\"".$image_row['image_keywords']."\" title=\"".$img_name."\" />\n";
//}

Offline peyv

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #43 on: August 09, 2010, 06:18:58 PM »
WOW Du bist ein Held Danke Danke Danke 1000 mal danke problem gelöst ,, ich bin wirklich dir dankbar :D

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [Mod]Flash Mp3 Player
« Reply #44 on: October 03, 2011, 08:05:34 PM »
Thanks Andi for sharing.
There are a few things I must point out at:

1) the mod saves .xml file into root of 4images, which means it will be shared with other visitors and also might conflict if two visitors opened two different .mp3 files.
2) the mod doesn't support search results
3) it might produce invalid .xml if image name contains quotes
4) the playlist will always be sorted by...image_id I guess.
5) if(empty($image_id_sql)) is unnecessary

i am using the old MP3 mod by KurtW and i am facing .xml file issue pointed by V@NO, my visitor listen to different tracks instead of the one opened, How to prevent it? and does this mod act the same? anyone has faced such issue with this mod yet?