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)
-   -   Play a midi file in profile (https://vborg.vbsupport.ru/showthread.php?t=41366)

Fuitad 07-20-2002 10:00 PM

Play a midi file in profile
 
This is the second hack I release. Hopefully, it will be useful to someone.

This hack allows your members select a midi file they want others to hear when they are viewing his/her profile. There is also a way for the admins to change/remove the midi the user entered.

For support, please post in this thread. Avoid PM or Emails if possible. If you're really bugged, try my AIM screenname (it's in my profile)

ChangeLog:

Version 1.02:
-------------
Fixed a bug in admin/user.php modification

Version 1.01:
-------------
Creation

Fuitad 07-21-2002 09:55 PM

Screenshots:

In admin CP, when adding a new user:

http://fuitad.com/vbhacks/play%20a%2...in_newuser.jpg

In admin CP, when editing an existing user:

http://fuitad.com/vbhacks/play%20a%2...istinguser.jpg

zachb 07-21-2002 10:02 PM

Cool, seems like it would slow down anyone on less than DSL by a lot, though.

Fuitad 07-21-2002 10:04 PM

Well midi files are usually very small... 4 or 5 k

afterlab 07-21-2002 10:29 PM

lol.. I was working on a hack myself to integrate with my own Shop hack where people could purchase certain MIDI files into their profile. Everything happens by coincidence.

Fuitad 07-21-2002 10:30 PM

This hack has actually been active in my forum for more than 6 months but I
just decided to release it today...

Neo 07-22-2002 01:34 AM

Good idea. I am currently making a Juke Box system that uses swf files... but I need to buy (steal) flash first

zachb 07-22-2002 07:47 PM

Quote:

Originally posted by Fuitad
Well midi files are usually very small... 4 or 5 k
ah, ok. :) great job.

Lovaboye 07-22-2002 07:48 PM

great hack, imn installing it

Chris M 07-22-2002 07:54 PM

*installs*

Cool hack!

Satan

Lovaboye 07-23-2002 03:17 PM

OOO, it now eems that i cannot update my users post count in the admin cp?

*found the problem*

PHP Code:

Still in admin/user.phpfind:

      
makeinputcode("Number of Posts","posts",$user[posts]);

and 
replace it with

       
// Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet
      
makeinputcode("Midi to play when viewing profile","miditoplay",$user[miditoplay]);
       
// End Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet 


this should read instead:

PHP Code:

Still in admin/user.phpfind:

      
makeinputcode("Number of Posts","posts",$user[posts]);

and 
add under it:

       
// Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet
      
makeinputcode("Midi to play when viewing profile","miditoplay",$user[miditoplay]);
       
// End Number of time a profile has been viewed by Pierre-Luc "Fuitad" Brunet 

DO NOT REPLACE! ONLY ADD UNDER, OR YOU WILL NOT BE ABLE TO MODIFY YOUR USERS POST IN THE ADMIN CP!

Fuitad 07-23-2002 03:44 PM

I edited the script, thanks!

Lovaboye 07-23-2002 04:44 PM

no problem!

Derek 08-06-2002 06:30 AM

Ok. Install perfectly, but I have a hack additions request since I am not yet skilled to do this.

Why not have a popup box where the user gets to choose his midis and when he clicks the link, the URL auto gets inputed into the box like smilies? Have the box we like a javascript popup.

Then just make an admin CP addon where those options to add, etc... to the popup are in the admin CP.

Fuitad 08-06-2002 06:46 AM

I have absolutly no clue what you mean, can you re-explain this?

Leo[GR] 08-11-2002 07:50 PM

]Wav files are also working. And they're too big :(

LOD-squa 09-08-2002 04:25 AM

is there a way this can be done by uploading?

NuclioN 09-08-2002 08:15 AM

Streaming swf files are much better, they require some knowledge about flash but then you can have every mp3 you can imagine in someones profile ( I prefer Cypress Hill). I can place a tutorial how you can stream mp3 in flash if you wish.

NuclioN 09-08-2002 08:50 AM

to do this with flash, just replace the code in the template getinfo_miditoplay with:

<embed src="$userinfo[swftoplay]" width="0" height="0">

You can replace all "midi" text with "swf". Works ok. ;)

Fuitad 09-15-2002 05:01 AM

it does require the flash plug in to be installed which I personally think is annoying sometimes, I hate flash and refuse to have it installed on my computers ;).

ryancooper 11-24-2002 11:23 PM

is it possabvle to allow only certain user groups to use this? I would like my premium members to be able to have the ability to add a midi but not he regulat users.

ddausch 02-06-2003 08:42 PM

Quote:

Originally posted by ryancooper
is it possabvle to allow only certain user groups to use this? I would like my premium members to be able to have the ability to add a midi but not he regulat users.

Jemand dran den hack so zu modifizieren das man Usergruppen w?hlen kann?

ryancooper 04-19-2003 09:48 PM

Quote:

11-25-02 at 01:23 PM ryancooper said this in Post #21
is it possabvle to allow only certain user groups to use this? I would like my premium members to be able to have the ability to add a midi but not he regulat users.


Anyone??

Master Computer 05-09-2003 11:25 AM

Pls., How can I make that feature works in the forum home and not in the user profile?
I mean, I wanna let the user to choose the midi file link in his control panel, then that midi file will be played in the forumhome background.

Fuitad 07-06-2003 04:06 PM

Quote:

04-19-03 at 06:48 PM ryancooper said this in Post #23
Anyone??

Would you still need it?

ryancooper 07-06-2003 04:33 PM

Quote:

Today at 06:06 AM Fuitad said this in Post #25
Would you still need it?

Yes most defiantly~

asasi 07-25-2003 05:24 AM

It's good Hack ... I Instaled that!
But It may play other format sounds that IE support them like (wma) or (wav) ???

agiacosa 01-20-2006 01:39 AM

Anyone care to port this to 3.5?

agiacosa 01-20-2006 05:54 PM

Figured it out. Thanks.


All times are GMT. The time now is 02:45 AM.

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.01096 seconds
  • Memory Usage 1,777KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete