View Single Post
  #2391  
Old 09-21-2006, 11:04 PM
phenomenon phenomenon is offline
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was just a couple revisions of code in the local_links_include.php, I can just post my changes here.

This is for v2.2.1 (I haven't looked at your new version):

Line 103: defined $user_mac on line after $user_windows:
Code:
$user_windows = iif(strstr($_SERVER[HTTP_USER_AGENT],"Windows"), 1, 0);
$user_mac = iif(strstr($_SERVER[HTTP_USER_AGENT],"Macintosh"), 1, 0);
Line 2199: added $user_mac to global vars after $user_windows:
Code:
global $linkscat, $schemes, $modes, $icon_cache, $user_windows, $user_mac;
Line 2330: added $user_mac to if statement parameters:
Code:
$is_musicbox = iif(($user_mac or $user_windows) and get_mimetype($urlType) and in_array($urlType, $musicboxtypes), 1, 0);
ISSUES
  1. mp3's don't seem to stream in very well. My solution is to write a flash player to play mp3's. I'll have a look at your Wimpy code in the new version if I can't get it straight; basically I'm going to try to grab the $type in the play section of local_links.php, compare to mp3, and then have it load flash player, so no matter what OS or browser, it gets flash for music.
  2. Can't test for Linux, sorry
  3. Not sure if it's supposed to show the Quicktime Plugin like it says in the documentation. However, when user clicks the song title as the link, it pops open the jukebox, so I'm not worried about it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01276 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete