SMF Development > SMF Coding Discussion

why i can not add the MP3 or WMA code in to my SMF 1.1.2 ?

(1/1)

smffan:
i just install SMF1.1.2 & i need to play MP3 or WMA in my SMF so i find the code here & i found the code


--- อ้างถึง ---เปิดไฟล์ Sources/Subs.php ค่ะ
แล้วหาโค้ดส่วนนี้ออกมา


โค๊ด:
         array(
            'tag' => 'flash',
            'type' => 'unparsed_commas_content',
            'test' => '\d+,\d+\]',
แล้วเพิ่มโค้ดด้านล่างนี้ไว้ก่อนหน้าโค้ดที่หาออกมาค่ะ


โค๊ด:
         // ----------*** เพิ่มโค้ด [wma]songs.wma[/wma] ***----------
         array(
            'tag' => 'wma',
            'type' => 'unparsed_commas_content',
            'test' => '\d+,\d+\]',
            'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object type="audio/x-ms-wma" width="$2" height="$3"><param name="filename" value="$1" /><param name="Autostart" value="1" /><param name="ShowControls" value="1" /><param name="ShowPositionControls" value="0" /><param name="ShowStatusBar" value="1" /><param name="ShowDisplay" value="0" /><param name="ShowTracker" value="1" /><param name="ShowAudioControls" value="1" /><param name="pluginspage" value="http://www.microsoft.com/windowsmedia/" /></object>' : '<embed type="audio/x-ms-wma" src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1[/url]</noembed>'),
         ),
--- ปิดอ้างถึง ---

sorce : http://smf.rcweb.net/index.php?topic=251.0

but what is up when i  add the code into Sources/Subs.php  & upload it in to my SMF i got the error

--- โค้ด: ---Parse error: parse error, unexpected T_STRING, expecting ')' in myshite.com/smf/Sources/Subs.php on line 3447
--- ปิดโค้ด ---

so that code can not work in SMF1.1.2 ?

or how can i find another MP3 or WMA code ?

thanks ( sorry my com can not write Thai , but you can reply me as THAI )

FrankJScott:
Please try Google before asking about Top Rated Product Guide 250fb9b

นำร่อง

[0] ดัชนีข้อความ

ไปที่เวอร์ชันเต็ม