Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2002, 07:07 AM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multiple file attachments?

Is there a multiple file attachment hack out yet? I've searched up and down with nothing.

I've also been looking for a way to play random sounds (.wav) from anywhere on vB when recieving a PM.
Reply With Quote
  #2  
Old 12-08-2002, 12:49 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Is there a multiple file attachment hack out yet? I've searched up and down with nothing.
https://vborg.vbsupport.ru/showthrea...441#post313441

Quote:
I've also been looking for a way to play random sounds (.wav) from anywhere on vB when recieving a PM.
This code will produce the file name in this format : "soundX.wav". X will be randomly between 1 to 10. I guess you can insert it to this hack
PHP Code:
function make_seed() {list($usec$sec) = explode(' 'microtime());return (float) $sec + ((float) $usec 100000);}
    
srand(make_seed()); $srand_code rand (1,10);
$wav_file='sound'.$srand_code.'.wav'
Use "$wav_file" variable instead of file name in that hack..
Reply With Quote
  #3  
Old 12-08-2002, 01:30 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sinan, I tried to get that function to work with that hack but couldn't get it to do it.
Reply With Quote
  #4  
Old 12-08-2002, 01:44 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Sinan, I tried to get that function to work with that hack but couldn't get it to do it.
Can u please post the code u used?

BTW. long time no see, where have u been?
Reply With Quote
  #5  
Old 12-08-2002, 02:02 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the block of code I tried to use. It works with his sound file.

PHP Code:
 if ($newpm['messages']==0) {
    
$lightbulb='off';
  } else {
    
$lightbulb='on';
  }

function 
make_seed() {list($usec$sec) = explode(' 'microtime());return (float) $sec + ((float) $usec 100000);}
    
srand(make_seed()); $srand_code rand (1,10);
$wav_file='sound'.$srand_code.'wav';

//new PM sound hack
if ($unreadpm['messages']==0) {
$sound='';
} else {
$sound='<embed src="$wav_file" autostart="true" hidden="true">';
}
//end new PM sound hack 
Yeah, it's been a while. The wife just gave birth to twin boys about 4 weeks ago. She was on complete bedrest for the last couple of months of the pregnancy, due to complications, so I was taking care of her and our 5-year-old.
Reply With Quote
  #6  
Old 12-08-2002, 03:07 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Holy crap I can't believe I missed that! Many many thanks!
Reply With Quote
  #7  
Old 12-08-2002, 07:53 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Cannot redeclare make_seed() (previously declared in /var/home/ls6/www/htdocs/forums/index.php:75) in /var/home/ls6/www/htdocs/forums/index.php on line 275

Yup, didn't work for me either.
Reply With Quote
  #8  
Old 12-08-2002, 08:16 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@boofo:

change this line
PHP Code:
$sound='<embed src="$wav_file" autostart="true" hidden="true">'
like this:
PHP Code:
$sound='<embed src="'.$wav_file.'" autostart="true" hidden="true">'
also congratulations!

@350Chevy: remove this line:
PHP Code:
function make_seed() {list($usec$sec) = explode(' 'microtime());return (float) $sec + ((float) $usec 100000);} 
I guess you are using my birthday greetings hack or another hack which uses the exact function, that's why you got this error..
Reply With Quote
  #9  
Old 12-08-2002, 08:38 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the congratulations. It has been well worth the trip.

I still get no sound for pms from the code you had me change.
Reply With Quote
  #10  
Old 12-08-2002, 10:56 PM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
@350Chevy: remove this line:
PHP Code:
function make_seed() {list($usec$sec) = explode(' 'microtime());return (float) $sec + ((float) $usec 100000);} 
I guess you are using my birthday greetings hack or another hack which uses the exact function, that's why you got this error..
You are correct but it still plays no sound. I've also tried to change the line to something like this:

PHP Code:
srand(make_seed()); $srand_snd rand (1,18); 
$sound='<embed src="audio\sound'.$srand_snd.'wav" autostart="true" loop="0" hidden="true"></embed>'
And still nothing.. I've used $srand_code = rand (1,10) with no results, then changed it to $srand_snd thinking I needed a different string name considering the birthday mod installed and still nada. So I dunno...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 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.04532 seconds
  • Memory Usage 2,284KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete