essai

Aller en bas

essai

Message  kaelkael09 le Dim 10 Aoû - 11:25

## Title: view kifu with goswf.swf on forum PHPBB3
## Author goswf.swf : Olivier Besson olive@gludion.com

## Author Mod view kifu with goswf.swf on forum PHPBB3:
hikaru- website covay.org , email: covay.org@gmail.com
Country: Vietnam.

Thanks to Olivier Besson.

## Description: Allows users view kifu on forum PHPBB3
To require: web of users use flash player v8.0
## Installation Level: Easy
## Installation Time: 1 minutes
##

## Files To Edit: 3
## include/functions_content.php
## styles/prosilver/template/attachment.htm
## styles/subsilver2/template/attachment.htm

Upload
forum/goswf.swf
#-----[ OPEN ]---------------------
#
forum/include/functions_content.php

#
#-----[ FIND ]----------------------
$block_array += array(
'S_FILE' => true,
);

#-----[In this code find]----------------
$block_array += array(

#-----[ AFTER, ADD ]----------------
'S_SGF' =>($attachment['extension'] == 'sgf') ? true : false,


#-----[ OPEN ]---------------------
forum/styles/prosilver/template/attachment.htm

#-----[ FIND ]----------------------
<a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</p>
<!-- ENDIF -->

#-----[ AFTER, ADD ]----------------
<!-- IF _file.S_SGF -->
<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="480" id="goswf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="goswf.swf" />
<param name="flashVars" value="c0=#83E9F3&c1=#E8F3FD&c2=#16AAD9&url={_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<EMBED src="goswf.swf" flashVars="c0=#83E9F3&c1=#E8F3FD&c2=#16AAD9&url={_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" quality="high" bgcolor="#ffffff" width="640" height="480" name="goswf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- ENDIF -->

#-----[ OPEN ]---------------------
forum/styles/subsilver2/template/attachment.htm

#-----[ FIND ]----------------------
<!-- IF _file.S_FILE -->
<span class="genmed">
<!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF -->
<a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]
</span>



#-----[ AFTER, ADD ]----------------
<!-- IF _file.S_SGF -->
<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="480" id="goswf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="goswf.swf" />
<param name="flashVars" value="c0=#83E9F3&c1=#E8F3FD&c2=#16AAD9&url={_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<EMBED src="goswf.swf" flashVars="c0=#83E9F3&c1=#E8F3FD&c2=#16AAD9&url={_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" quality="high" bgcolor="#ffffff" width="640" height="480" name="goswf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- ENDIF -->

#-----[ SAVE/CLOSE ALL FILES ]------
Login Admin CP: Allows users upload file .sgf

# EoM

kaelkael09
1 Pro
1 Pro

Messages : 147
Date d'inscription : 02/12/2007

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: essai

Message  LDL le Dim 28 Juin - 12:24

.


et ca donne quoi ?
car j'ai essaye de faire tourner le swf, pas possible...
Sad


.
avatar
LDL
10 kyu
10 kyu

Messages : 15
Date d'inscription : 26/06/2009
Age : 59
Localisation : KGS 8k - DGS 9k

Voir le profil de l'utilisateur http://ldldesign.com/

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum