Tanımlı Forumda Flash (swf) , mp3, wma, wmv izlettirmek

Saint Thanatos

Kıdemli Üye
1 Şub 2007
2,833
37
Kıbrıs
Forumda attachment olarak upload ederek değişik windows ortam dosyalarını ekleyip izlettirebilirsiniz (flash, mp3, wma, wmv...)... En altta eklediğim resimlerde görebilirsiniz..

functions_showthread.php'yi açıp bulun;

Kod:
Code:
function construct_postbit($post, $maintemplatename = 'postbit', $alternate = ''){
Altına ekleyin;

Kod:
Code:
// flash attachment
global $flashid,$flashfilename,$flashextension,$flashfilenameand********,$flashfilesize;

// wma attachment
global $wmaid,$wmafilename,$wmaextension,$wmafilenameand********,$wmafilesize;
// wmv attachment
global $wmvid,$wmvfilename,$wmvextension,$wmvfilenameand********,$wmvfilesize;
// mp3 attachment
global $mp3id,$mp3filename,$mp3extension,$mp3filenameand********,$mp3filesize;
//default media tag
$media_controller= "$vboptions[bburl]/attachment.php?attachmentid=";Sonra şunu bulun;

Kod:
Code:
$attachment['filename'] = fetch_censored_text(htmlspecialchars_uni($attachment['filename']));
$attachment['attachmentextension'] = strtolower(file_extension($attachment['filename']));
$attachment['filesize'] = vb_number_format($attachment['filesize'], 1, true);

Altına ekleyin;

Kod:
Code:
//flash attachment
$flashfilename=$attachment['filename'];
$flashextension=$attachment['attachmentextension'];
$flashfilesize=$attachment['filesize'];
$flashid=$post['userid'];
$flashfilenameand********=$media_controller . $attachmentid ;
//wma attachment
$wmaid=$post['userid'];
$wmafilename=$attachment['filename'];
$wmaextension=$attachment['attachmentextension'];
$wmafilenameand********=$media_controller . $attachmentid ;
$wmafilesize=$attachment['filesize'];
//wmv attachment
$wmvid=$post['userid'];
$wmvfilename=$attachment['filename'];
$wmvextension=$attachment['attachmentextension'];
$wmvfilenameand********=$media_controller . $attachmentid ;
$wmvfilesize=$attachment['filesize'];
//wmv attachment
$mp3id=$post['userid'];
$mp3filename=$attachment['filename'];
$mp3extension=$attachment['attachmentextension'];
$mp3filenameand********=$media_controller . $attachmentid ;
$mp3filesize=$attachment['filesize'];Sonra şunu bulun;

Kod:
eval('$post[\'imageattachmentlinks\'] .= "' . fetch_template('postbit_attachment') . '";');
$show['imageattachmentlink'] = true;
}

breakAltına ekleyin;

Kod:
case 'swf':
eval('$post[\'flashattachments\'] .= "' . fetch_template('postbit_attachmentflash') . '";');
$show['flashattachment'] = true;
break;

case 'wma':
eval('$post[\'wmaattachments\'] .= "' . fetch_template('postbit_attachmentwma') . '";');
$show['wmaattachment'] = true;
break;

case 'wmv':
eval('$post[\'wmvattachments\'] .= "' . fetch_template('postbit_attachmentwmv') . '";');
$show['wmvattachment'] = true;
break;

case 'mp3':
eval('$post[\'mp3attachments\'] .= "' . fetch_template('postbit_attachmentmp3') . '";');
$show['mp3attachment'] = true;

Aşağıda verdiğim template leri sıfırdan oluşturup içlerine kodlarını ekleyin

postbit_attachmentflash

Kod:
Code:
<br> <center> <table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="275"> <tr> <td class="thead" width="100%" height="25"> <center> <font color="#FFFFFF"> Flash Player (organik81) </font> </center> </td> </tr> <tr> <td width="100%" height="225"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/...version=6,0,0,0" WIDTH="450" HEIGHT="225" id="$flashid" ALIGN=""> <PARAM NAME=movie VALUE="$flashfilenameand********"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="$flashfilenameand********" quality=high bgcolor=#000000 WIDTH="450" HEIGHT="225" NAME="$flashid" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> </center></td> </tr> <tr> <td class="thead" width="100%" height="25"> <center> <font color="#6600FF"> </font> </center> </td> </tr> </table> </center> <br>
postbit_attachmentmp3

Kod:
Code:
<br> <center> <table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="100"> <tr> <td class="thead" width="100%" height="25"> <center> <font color="#FFFFFF"> mp3 Player (organik81) </font> </center> </td> </tr> <tr> <td width="100%" height="50" colspan="2"> <center> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="$mp3filenameand********" AutoStart=1 ShowStatusBar=1 volume=-1 enablecontextmenu=0 HEIGHT=50 WIDTH=400></embed> </center> </td> </tr> <tr> <td class="thead" width="100%" height="25" colspan="2" background="$vboptions[bburl]/images/note_bar.gif" align="center"> <center> <font color="#FFFFFF" size="1"> <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span> </font> </center> </td> </tr> </table> </center> <br> <center> <table border="0" width="400"> <tr> <td width="100%" colspan="2"> <center> </center> </td> </tr> <tr> <td width="50"> <center> </center> </td> <td width="350" align="left"> <font color="#6600FF" size="1"> <I> </I> </font> </td> </tr> </table> </center> <br>
postbit_attachmentwma

Kod:
Code:
<br>
<center>
<table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="250">
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#FFFFFF">
Windows Media Audio Plyaer (organik81)
</font>
</center>
</td>
</tr>

<tr>
<td width="100%" height="200">

<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="200"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">

<param name="URL" value="$wmafilenameand********">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="1">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="loop" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="200">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7938">
<param name="_cy" value="6482">

<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/*******s/wurecommended/s_wufeatured/mediaplayer/default.asp" src="$wmafilenameand********"
rate=1
balance=0
currentPosition=1
playCount=1
autoStart=1
loop=-1
currentMarker=0
invokeURLs=-1
volume=200
mute=0
uiMode=full
stretchToFit=0
windowlessVideo=0
enabled=-1
enableContextMenu=0
fullScreen=0
SAMIStyle
SAMILang
SAMIFilename
captioningID
enableErrorDialogs=0
_cx=7938
_cy=6482
width=400
height=200>
</embed>
</object>
</td>
</tr>postbit_attachmentwmv

Kod:
Code:
<br> <center> <table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="350"> <tr> <td class="thead" width="100%" height="25"> <center> <font color="#FFFFFF"> Windows Media Player (organik81) </font> </center> </td> </tr> <tr> <td width="100%" height="200"> <object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="300"> <param name="URL" value="$wmvfilenameand********"> <param name="rate" value="1"> <param name="balance" value="0"> <param name="currentPosition" value="1"> <param name="defaultFrame" value> <param name="playCount" value="1"> <param name="autoStart" value="-1"> <param name="loop" value="-1"> <param name="currentMarker" value="0"> <param name="invokeURLs" value="-1"> <param name="baseURL" value> <param name="volume" value="100"> <param name="mute" value="0"> <param name="uiMode" value="full"> <param name="stretchToFit" value="0"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="0"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"> <param name="_cx" value="7938"> <param name="_cy" value="6482"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/*******s/wurecommended/s_wufeatured/mediaplayer/default.asp" src="$wmvfilenameand********" rate=1 balance=0 currentPosition=1 playCount=1 autoStart=1 loop=-1 currentMarker=0 invokeURLs=-1 volume=100 mute=0 uiMode=full stretchToFit=0 windowlessVideo=0 enabled=-1 enableContextMenu=0 fullScreen=0 SAMIStyle SAMILang SAMIFilename captioningID enableErrorDialogs=0 _cx=7938 _cy=6482 width=400 height=300> </embed> </object> </td> </tr> <tr> <td class="thead" width="100%" height="25"> <center> <font color="#FFFFFF" size="1"> <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span> </font> </center> </td> </tr> </table> </center>
<br>Alttaki sözcük gruplarını (Add Phrase - Sözcük Grubu Ekle) bölümünden GLOBAL kısmına girin;

Var: attach_wmv
Text: Window Media Video

Var: attach_mp3
Text: MPEG-1 layer 3 Audio Encoding :

Var: attached_flash
Text: Attached Flash File:

Var :attach_wma
Text : Window Media Audio :

postbit_legacy isimli templatede bulun;

Kod:
Code:
post[imageattachments]
</div>
</fieldset>
</if>

Altına ekleyin;

Kod:
Code:
<if condition="$show[flashattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attached_flash] $flashfilename </legend> <div style="padding:$stylevar[formspacer]px"> $post[flashattachments] </div> </fieldset> </if> <if condition="$show[wmaattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wma] $wmafilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmaattachments] </div> </fieldset> </if> <if condition="$show[wmvattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wmv] $wmvfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmvattachments] </div> </fieldset> </if> <if condition="$show[mp3attachment]"> <fieldset class="fieldset"> <legend> $vbphrase[attach_mp3] $mp3filename</legend> <div style="padding:$stylevar[formspacer]px"> $post[mp3attachments] </div> </fieldset> </if>
Admincp >> Eklentiler (Attachments) >> Uzantılar >> Bu formatları tek tek ekleyin (mp3, swf vs....)

izletmek veya dinletmek istediğiniz dosyaları foruma attachment şeklinde ekleyeceksiniz ve upload ettıgınız konunun içinde izlenebilicek iyi forumlar....
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.