[DEV]view kifu with goswf on phpbb3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
Locked
covay.org
Registered User
Posts: 1
Joined: Sun Aug 10, 2008 1:12 am

[DEV]view kifu with goswf on phpbb3

Post by covay.org » Sun Aug 10, 2008 1:18 am

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
Last edited by covay.org on Sun Aug 10, 2008 2:04 pm, edited 1 time in total.

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25183
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: view kifu with goswf on phpbb3

Post by Paul » Sun Aug 10, 2008 7:10 am

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
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Alexanderchina
Registered User
Posts: 1
Joined: Tue Dec 02, 2008 6:54 pm

view kifu

Post by Alexanderchina » Tue Dec 02, 2008 6:58 pm

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?

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3463
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: [DEV]view kifu with goswf on phpbb3

Post by bonelifer » Tue Dec 02, 2008 8:05 pm

Could you please explain what "kifu" and "goswf" mean?
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [DEV]view kifu with goswf on phpbb3

Post by darkonia » Wed Dec 03, 2008 12:45 am

oh what the hell is going here, whats kiwfu? :?
Last edited by darkonia on Wed Dec 03, 2008 9:21 am, edited 1 time in total.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: [DEV]view kifu with goswf on phpbb3

Post by Diet Ebola Cola » Wed Dec 03, 2008 7:14 am

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
Diet Ebola Cola

Locked

Return to “[3.0.x] MODs in Development”