vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Midi hack (https://vborg.vbsupport.ru/showthread.php?t=56150)

Shiekron 08-12-2003 11:56 PM

Midi hack
 
I'm really into these sadistic hacks I've seen, and I was wondering if anyone could help me out with a hack or maybe already wrote it.

I was wondering if someone could write a hack where you can embed a midi on a certain user while they're browsing the forums? This would be a great way to keep people off my boards. Any help would be appreciated!

EvilLS1 08-13-2003 12:26 AM

They could always just turn the volume down. ;)

Create a new usergroup with all the same permissions as registered and make a note of the usergroup ID.

Then add this to the PHP parsed code: (under styles in the cp):
Code:

if ($bbuserinfo[usergroupid]==X) {
$midi = "<embed src=\"sound.mid\" autostart=\"true\" hidden=\"true\"></embed>";
} else {
$midi = "";
}

Replace the red X in the code above with the ID # for the usergroup you added. Then re-name your midi to sound.mid and upload it to your forums directory.

Then put $midi somewhere in the header.

To annoy the hell out of someone you would simply change their usergroup to the one you just added.

I didn't test it but it should work.

Shiekron 08-13-2003 10:53 PM

I love you.


All times are GMT. The time now is 01:41 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.00988 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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