vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   With optional store hack intergration (https://vborg.vbsupport.ru/showthread.php?t=50873)

DPoole 03-31-2003 01:47 AM

not sure if u still readin this hack

but when playing an mp3

the top 10 aint correct

i have a song that been played 13 times and yet the number 1 trax is a song that only been played twice??

trafix 03-31-2003 02:09 AM

Quote:

Today at 01:47 PM DPoole said this in Post #81
not sure if u still readin this hack

but when playing an mp3

the top 10 aint correct

i have a song that been played 13 times and yet the number 1 trax is a song that only been played twice??


Im not completly sure why it is doing that, i actually noticed it on another site that i just visited.....hmmmm....check this line it appears twice

PHP Code:

$mostplayed=$DB_site->query_first("SELECT songsid,sname,surl,splay FROM jukebox ORDER BY splay desc LIMIT 1"); 

or try the desc in caps....dont know if it is caps sencitive but

The most played works fine for me.....it should not mater what format you are playing from.

Sebastian 03-31-2003 02:21 AM

LoL. this must use tons of bandwidth :|

this will take down your server if you have 50 members listening to music :p

trafix 03-31-2003 02:23 AM

Quote:

Yesterday at 07:10 PM Marzas said this in Post #76
any idea?
I see that you still havnt got it working.

Another thought.......have you added the templates to the right / all template groups?

trafix 03-31-2003 02:27 AM

Quote:

Today at 02:21 PM Sebastian said this in Post #83
LoL. this must use tons of bandwidth :|

this will take down your server if you have 50 members listening to music :p

Sebastian....this is a request in the other forum

https://vborg.vbsupport.ru/showthrea...threadid=51014

Areku 04-01-2003 06:49 AM

Isn't it ilegal to hook up mp3 filez for public audition? ;)

Areku 04-01-2003 06:49 AM

Isn't it ilegal to hook up mp3 filez for public audition? ;)

Areku 04-01-2003 06:49 AM

Isn't it ilegal to hook up mp3 filez for public audition? ;)

Marzas 04-01-2003 09:54 AM

yeah, but as he mentioned on the first post, its not really made to play mp3s, its was mainly amde for midi's, but some times there are things in mp3 who dont give a crap if you take it, like personal stuff, well anyway, he didnt as you to put on mp3's, did he?

Marzas 04-01-2003 09:56 AM

yo trafix, man, i was looking in the jukebox.php, it looks alot similar to the buy a midi for your profile option in lesanes store hack, is it me or is some of it copyed and edited?

DPoole 04-01-2003 03:42 PM

Areku and Marzas you really need to learn to chill

One yes it is Illegal but not all mp3`s are illegal esp if u make your own (if u have the talent that is) and if it is based on the buy a midi then good as i dont care as this does the job i want it for.Maybe encouraging hackers and not putting em down is what is needed.If u can do better then lets see it.

DPoole 04-01-2003 03:43 PM

Areku and Marzas you really need to learn to chill

One yes it is Illegal but not all mp3`s are illegal esp if u make your own (if u have the talent that is) and if it is based on the buy a midi then good as i dont care as this does the job i want it for.Maybe encouraging hackers and not putting em down is what is needed.If u can do better then lets see it.

DPoole 04-01-2003 03:43 PM

Areku and Marzas you really need to learn to chill

One yes it is Illegal but not all mp3`s are illegal esp if u make your own (if u have the talent that is) and if it is based on the buy a midi then good as i dont care as this does the job i want it for.Maybe encouraging hackers and not putting em down is what is needed.If u can do better then lets see it.

DPoole 04-01-2003 03:44 PM

crap,mods can u delete all the repeat posts

real sorry about that - i hit submit and it seemed to lock hence all the repeat posts.

auz1111 04-02-2003 10:59 PM

Quote:

03-28-03 at 10:33 PM NuclioN said this in Post #40
You can convert mp3 to swf with flash (5 or mx). Now, it's not easy to explain how to do this, but i shall try to make a tutorial for it.
You can import a mp3 in flash and then click window/library. After that click with the right mousebutton on your mp3 and choose properties and set this as output:

- compression = mp3
- unmark (do not select) convert stereo to mono
- bitrate = 128 kps
- quality =fast

Now, after you've done this you must doubleclick on the first keyframe on the timeline and a sound editwindow apears. Choose the sound from the display and set this:

- effect = none
- sync = stream

Ok, after this you must stretch the output over the whole timeline untill there is no grafical output visible, so make frames (somethimes 2 to 3000 or more) untill all the output is visible. Remove the empty frames after the last visible output. Your streaming swf file is now ready to export. Export the swf as it is, so don't make changes in the output.

Upload this swf file to your server and listen to it in your forum (html enabled or you must have the swf vb code tags installed) with this code:

<embed width="0" height="0" src="http://www.yourserver.com/yourfile.swf">

Or when you have the swf vb code installed:
{SWF=http://www.yourserver.com/yourfile.swf} width="0" height="0"{/SWF}

Remember the { tags must be replaced with [ to let that work.

Screendump flashsettings:

I'm not understanding. Is this a way to integrate .swf's with the jukebox or just for stand alone playing? If it is to work with the jukebox could you explain where to place the tags? thanks

trafix 04-02-2003 11:23 PM

im sorry, i cant help you with your question...i have built this hack for midi files for legal reasons.

Jitway 04-04-2003 04:02 PM

Ok heres one for ya. I got everything installed and all the templates. I uploaded a mp3 and loaded it into the jukebox. It shows up and when you click on it the number of times requested goes up as it should but it does not play. Why?

DPoole 04-04-2003 05:06 PM

Quote:

Yesterday at 12:59 AM auz1111 said this in Post #95
I'm not understanding. Is this a way to integrate .swf's with the jukebox or just for stand alone playing? If it is to work with the jukebox could you explain where to place the tags? thanks

my post for converting mp3`s to swf works fine and ive used it many times since that post.Also if u read though there is a tag to insert in one of the posts that allows you to play SWF files.

Crazy Pete 04-07-2003 08:38 PM

What I think would make this hack even better is if it would start out by playing whatever the person before them to use it is playing, if applicable. Kind of like a regular jukebox where you hear whatever songs are queued up to go next, and if you walk in the room in the middle of a song, that's what you hear.

Kurayami 04-11-2003 03:09 AM

An interesting idea for those of us that have a great deal of bandwidth to spare: Can this hack possibly be edited to become a theater of sorts?
I.E. A user can browse through a selection of clips instead of music, and 'tickets' can be purchased... then you view a movie complete with mini-player instead of the song coming on.

I know that I'd definitely be interested in such a system. My users are loving the jukebox! (Got almost 30 mp3s on there already. :))

ricoche 04-11-2003 03:19 AM

Yes, excellent idea! I'm into video production so this would be a useful modification.

Indeed the Jukebox addon works very well, especially with SWF as it streams very well.

trafix 04-11-2003 03:26 AM

I agree, however i dont have the knoledge required to build a video addon :(

Its great that this hack is getting a lot of use, perhaps you could post in the requests forum with your addon idea.

Rusty_Boi 04-13-2003 10:09 PM

i have read the whole thread.. and i still have problems playing swf files.. =/

Gutspiller 04-14-2003 04:12 AM

Can somebody explain to me why the heck you would ever want to serve MP3s? Just use Kazaa and save yourself and your users all sorts of trouble. Now if a user could use your forum as a "middle man" to share files with other users, that would be something, but to just have a list seems almost pointless with programs such as kazaa and many others.

Mickie D 04-14-2003 02:51 PM

i cant use your jukebox queries php script .. i dunno why :(

could you post the queries so i can use phpmyadmin ... i tried to get your queries from the php file but when i goto enter them i get an error :(

Mickie D 04-14-2003 03:07 PM

ok i managed to get the queries out from the php .. silly me lol

here they are if any one else needs them and cant get the jukeboxquerie.php script to work :)

CREATE TABLE jukebox (
songsid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
sname varchar(255) NOT NULL,
surl varchar(255) NOT NULL,
splay varchar(5) NOT NULL,
PRIMARY KEY (songsid)
)


CREATE TABLE jukeboxadmin (
event smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
playtype smallint(5) DEFAULT '0',
defultsong varchar(255) NOT NULL,
defultdetail varchar(255) NOT NULL,
defultaudio smallint(5) DEFAULT '0',
storehack smallint(5) DEFAULT '0',
PRIMARY KEY (event)
)


INSERT INTO jukeboxadmin VALUES (NULL,'2', 'http://www.xxxx.xxx/midi/midi/xxxx.xxx', 'Description', '1', '0')


right that lot should sort you out ok :)

Mickie D 04-14-2003 03:10 PM

also a question about the jukebox :)

right as you have said b4 when i read posts the bandwidth will be very high for busy boards... i was wondering i have appache running a test vbulletin for me on my home machine and windows XP... could i point the url to my test site for the mp3's ????

so all bandwidth would be taken from my adsl connectin i mean it does nothing really lol so i would not be bothered about it ???

trafix 04-14-2003 03:29 PM

Rusty_Boi:

Sorry, I cant help you as I know nothing about swf files.

Gutspiller:

Your opionion! I saw a request for a jukebox hack, so I built one :) It was build to play midi files but I can only warn them regarding other music formats and I will not be help responsible if members loose their websites because they broke the law.

Mickie D:

Yeah sure, you should be able to link the music file url's to your local system :) let me know how you get on.

Mickie D 04-14-2003 03:42 PM

cheers m8 for the quick reply ... to be honest thats the fastest ever reply to hack i have posted on vbulletin.org lol

ok that is gr8 and yes it is running gr8 from my local machine :) to my main website

but now i have a more complicated question m8y :(

can it stream the audio instad of downloading the whole file to play it ????

Mickie D 04-14-2003 03:46 PM

and maybe it should work in a popup window so people can browse your site (anyones site) at the same time :)

just an idea as if you leave the page or put it down to the task bar it goes off :(

trafix 04-14-2003 03:54 PM

Yep, great to here, Some users have been streaming swf files... but as i said i wouldnt know how to go about it lol

as for the the other i have added a request tot the request forum if someone could build a force to close addon for it as again im not sure how to go about it....go bump the thread :)

Mickie D 04-14-2003 04:01 PM

post me the thread and away i go lol

but thanks it is a gr8 hack and when it takes the tunes from my machine i dont care about the bandwidth :)

thanks again .... ps with the swf thing how do i make my tunes swf .. do i change the .mpg to .swf sorry i dont have a clue what i am talking about :)

trafix 04-14-2003 04:10 PM

hmmmmm, swf is flash format the music files must be converted, see earlies pages of the thread. Glad you like the hack :)

Mickie D 04-14-2003 04:31 PM

yeah i got that programme to convert them m8y

i know you dont have much idea about the swf formats :( but for the guys that got it working ... please tell me why mine wont stream it still downloads the whole swf b4 it plays it :(

Airs 04-17-2003 06:42 AM

Everything is installed properly but none of my songs will play :( please help!

trafix 04-17-2003 06:49 AM

OK put it in freeplay mode and PM a link to me!

NuclioN 04-17-2003 11:48 AM

Quote:

04-14-03 at 05:31 PM Mickie D said this in Post #114
yeah i got that programme to convert them m8y

i know you dont have much idea about the swf formats :( but for the guys that got it working ... please tell me why mine wont stream it still downloads the whole swf b4 it plays it :(

If you mail me the fla file i can make it for you in the form of a mal, so all you have to do is import, adjust settings, export and don't save the original..then you can stream mp3 as much as you wish.

Crazy Pete 04-18-2003 05:25 AM

Ok I've got the streaming swf thing working well, but I just have one question. I've noticed that once a song stops ends, it then starts to play again. Is there an easy way to not make them loop?

NuclioN 04-18-2003 12:02 PM

Yes, at the end of the timeline on the last frame add a keyframe and in that put a stop action.

I've found also a handy script to stream mp3 without the whole procedure to stream it in swf. Url: http://www.moock.org/asdg/codedepot/...dPreloader.zip

What it does is cut the loadtime seriously by streaming the mp3 in your browser.
Now, i've first tried to place the jukebox variable $playsong in that script but i realized that the swf can not read this. There must be another way. When i find it out i let you know, if you know how to do this i hope you can help. :)

Lethal 04-23-2003 11:14 AM

Well I think I got the Top 10 working the way its supposed to. In jukebox.php replace all occurances of:

PHP Code:

$mostplayed=$DB_site->query_first("SELECT songsid,sname,surl,splay FROM jukebox ORDER BY splay desc LIMIT 1"); 

With:


PHP Code:

$mostplayed=$DB_site->query_first('SELECT * FROM `jukebox` ORDER BY `splay` DESC LIMIT 0, 30'); 

Takes awhile to load the songs thou. Even on cable. Is that normal? Takes like 1-2 minutes. Will the songs be cached in ur browser after you play them a few times that way they will or should play right away?


All times are GMT. The time now is 01:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,832KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete