4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2014, 11:04:38 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [Mod]Flash Mp3 Player
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 2 [3] 4 » »» Print
Current Topic Rating: *****
Author Topic: [Mod]Flash Mp3 Player  (Read 29752 times)
baerke
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 1


View Profile
« 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
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 3980

Thank You
-Given: 99
-Receive: 833

Vienna


View Profile WWW
« 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.
Question 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:
insert above:
1
2
{if user_loggedout}<b class="title">Please Login or Register</b><br>{endif user_loggedout}
{if user_loggedin}
search:
insert below:
1
{endif user_loggedin}

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
baerke
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 1


View Profile
« 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 » Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 3980

Thank You
-Given: 99
-Receive: 833

Vienna


View Profile WWW
« Reply #33 on: July 30, 2010, 06:36:34 PM »

hmm... good question, to time i have not a answer, sorry
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
baerke
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 1


View Profile
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 549

mmm PHP...


View Profile WWW
« 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.
Logged

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
Moderator
4images Guru
*****
Offline Offline

Posts: 3980

Thank You
-Given: 99
-Receive: 833

Vienna


View Profile WWW
« 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

* fsmp3playerv15.rar (28.13 KB - downloaded 12 times.)
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
baerke
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 1


View Profile
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 549

mmm PHP...


View Profile WWW
« 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:
1
2
3
4
5
<?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 Wink

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?
Logged

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
Moderator
4images Guru
*****
Offline Offline

Posts: 3980

Thank You
-Given: 99
-Receive: 833

Vienna


View Profile WWW
« 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 ?  Smile
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
baerke
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 1


View Profile
« 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 Wink"

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

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


* fsmp3playerv15.zip (10.35 KB - downloaded 16 times.)
Logged
peyv
Pre-Newbie

Offline Offline

Posts: 9

Thank You
-Given: 3
-Receive: 0


View Profile
« Reply #41 on: August 09, 2010, 03:13:58 PM »

 Smile 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  Neutral


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 » Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 3980

Thank You
-Given: 99
-Receive: 833

Vienna


View Profile WWW
« 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:
1
2
3
4
5
	
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:
1
2
3
4
5
	
//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";
//}
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
peyv
Pre-Newbie

Offline Offline

Posts: 9

Thank You
-Given: 3
-Receive: 0


View Profile
« 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 Very Happy
Logged
yousaf
Jr. Member
**
Offline Offline

Posts: 59

Thank You
-Given: 8
-Receive: 0


View Profile
« 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?
Logged
Pages: «« « 1 2 [3] 4 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos
Page created in 0.226 seconds with 20 queries.
Post your comments here