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;
Altına ekleyin;
Sonra şunu bulun;
Altına ekleyin;
Sonra şunu bulun;
Altına ekleyin;
Aşağıda verdiğim template leri sıfırdan oluşturup içlerine kodlarını ekleyin
postbit_attachmentflash
postbit_attachmentmp3
postbit_attachmentwma
postbit_attachmentwmv
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;
Altına ekleyin;
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....
organik81 e tesekkurler
functions_showthread.php'yi açıp bulun;
PHP:
function construct_postbit($post, $maintemplatename = 'postbit', $alternate = '')
{
Altına ekleyin;
PHP:
// flash attachment
global $flashid,$flashfilename,$flashextension,$flashfilenameandlocation,$flashfilesize;
// wma attachment
global $wmaid,$wmafilename,$wmaextension,$wmafilenameandlocation,$wmafilesize;
// wmv attachment
global $wmvid,$wmvfilename,$wmvextension,$wmvfilenameandlocation,$wmvfilesize;
// mp3 attachment
global $mp3id,$mp3filename,$mp3extension,$mp3filenameandlocation,$mp3filesize;
//default media tag
$media_controller= "$vboptions[bburl]/attachment.php?attachmentid=";
Sonra şunu bulun;
PHP:
$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;
PHP:
//flash attachment
$flashfilename=$attachment['filename'];
$flashextension=$attachment['attachmentextension'];
$flashfilesize=$attachment['filesize'];
$flashid=$post['userid'];
$flashfilenameandlocation=$media_controller . $attachmentid ;
//wma attachment
$wmaid=$post['userid'];
$wmafilename=$attachment['filename'];
$wmaextension=$attachment['attachmentextension'];
$wmafilenameandlocation=$media_controller . $attachmentid ;
$wmafilesize=$attachment['filesize'];
//wmv attachment
$wmvid=$post['userid'];
$wmvfilename=$attachment['filename'];
$wmvextension=$attachment['attachmentextension'];
$wmvfilenameandlocation=$media_controller . $attachmentid ;
$wmvfilesize=$attachment['filesize'];
//wmv attachment
$mp3id=$post['userid'];
$mp3filename=$attachment['filename'];
$mp3extension=$attachment['attachmentextension'];
$mp3filenameandlocation=$media_controller . $attachmentid ;
$mp3filesize=$attachment['filesize'];
Sonra şunu bulun;
PHP:
eval('$post[\'imageattachmentlinks\'] .= "' . fetch_template('postbit_attachment') . '";');
$show['imageattachmentlink'] = true;
}
break
Altına ekleyin;
PHP:
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;
break;
Aşağıda verdiğim template leri sıfırdan oluşturup içlerine kodlarını ekleyin
postbit_attachmentflash
PHP:
<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="$flashfilenameandlocation"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="$flashfilenameandlocation" 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
PHP:
<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="$mp3filenameandlocation" 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
PHP:
<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="$wmafilenameandlocation">
<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/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="$wmafilenameandlocation"
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
PHP:
<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="$wmvfilenameandlocation"> <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/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="$wmvfilenameandlocation" 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;
PHP:
$post[imageattachments]
</div>
</fieldset>
</if>
Altına ekleyin;
PHP:
<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....
organik81 e tesekkurler