Page 1 of 1

[DEV]view kifu with goswf on phpbb3

Posted: Sun Aug 10, 2008 1:18 am
by covay.org
view kifu with goswf on phpbb3

Code: Select all

## 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><br />

			
#-----[ 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
Download:
http://www.fileden.com/files/2008/3/18/ ... phpbb3.rar

Re: view kifu with goswf on phpbb3

Posted: Sun Aug 10, 2008 7:10 am
by Paul
Hello,

Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a. This will allow people to see the development status of your modification at a glance.

Thank you,
The phpBB Modifications Team

view kifu

Posted: Tue Dec 02, 2008 6:58 pm
by Alexanderchina
show file .sgf?
Using popup to display kifu is more preeminent than other ways. when using normal way,loading file kifu and accessing to any topic which maintains kifu file waste you a lot of time. therefore, using popup to view kifu is outstanding.

Ex:

Code: Select all

http://covay.byethost32.com/forum/index.php?showtopic=4&view=getnewpost
How?

Re: [DEV]view kifu with goswf on phpbb3

Posted: Tue Dec 02, 2008 8:05 pm
by bonelifer
Could you please explain what "kifu" and "goswf" mean?

Re: [DEV]view kifu with goswf on phpbb3

Posted: Wed Dec 03, 2008 12:45 am
by darkonia
oh what the hell is going here, whats kiwfu? :?

Re: [DEV]view kifu with goswf on phpbb3

Posted: Wed Dec 03, 2008 7:14 am
by Diet Ebola Cola
bonelifer wrote:Could you please explain what "kifu" and "goswf" mean?
Kifu (棋譜) is the Japanese term for a game record for a game of Go or shogi. Kifu is traditionally used to record games on a grid diagram, marking the plays on the points by numbers.
-- Source http://en.wikipedia.org/wiki/Kifu

goswf appears to be a flash-based version of Go