Flash+热贴+新贴+新回复贴

在这里讨论PHBB3.0.X MOD, 以及和其他系统的整合
woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-09-27 8:31

[img]
2008-9-26 17-26-49.png
[/img]
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-09-27 8:35

帖子调用部分运用了IO的MOD,上传文件显示原始文件名运用了IO的MOD,flash幻灯运用的是dedecms首页模板幻灯,flash幻灯调用借鉴了discuz MOD调用方式.
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

User avatar
IOsetting
论坛管理员
论坛管理员
Posts: 3645
Joined: 2006-10-17 1:48

Re: Flash+热贴+新贴+新回复贴

Post by IOsetting » 2008-09-27 22:20

Impressive! 没有Demo?

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-09-28 10:24

没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

User avatar
mymsn
技术组成员
技术组成员
Posts: 375
Joined: 2008-02-24 18:13

Re: Flash+热贴+新贴+新回复贴

Post by mymsn » 2008-09-29 12:24

日文??
不知道怎么喜欢上phpbb,但喜欢上就丢不开了 :(

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-09-30 9:18

mymsn wrote:日文??
安装的日文语言包。
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

User avatar
CRLin
汉化组成员
汉化组成员
Posts: 334
Joined: 2007-05-25 11:32

Re: Flash+热贴+新贴+新回复贴

Post by CRLin » 2008-09-30 10:58

woodychenzhuo wrote:帖子调用部分运用了IO的MOD,上传文件显示原始文件名运用了IO的MOD,flash幻灯运用的是dedecms首页模板幻灯,flash幻灯调用借鉴了discuz MOD调用方式.
已修改 html 及語言檔, 請參重新參考 http://phpbbchina.com/forum/viewtopic.php?f=23&t=3782
http://127.0.0.1/~gzqbyr/phpBB/forum/viewblog.php
http://web.dhjh.tcc.edu.tw/~gzqbyr/phpBB

四海一家,有容乃大
网路上来点幽默,能消除疲劳,化解误会紧张,但也要注意到...
俺家裡'抹油'安裝網路
周休二日及寒暑假没有辅导课不上网

hellojinjie
学有小成
学有小成
Posts: 199
Joined: 2007-12-05 22:18

Re: Flash+热贴+新贴+新回复贴

Post by hellojinjie » 2008-09-30 21:04

rainyjune 加油 :P

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-10-02 10:03

hellojinjie wrote:rainyjune 加油 :P
Thank you. :grin:
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

i散落
初来乍到
初来乍到
Posts: 16
Joined: 2008-09-11 18:30

Re: Flash+热贴+新贴+新回复贴

Post by i散落 » 2008-10-06 22:37

请问flash怎么实现的

User avatar
mymsn
技术组成员
技术组成员
Posts: 375
Joined: 2008-02-24 18:13

Re: Flash+热贴+新贴+新回复贴

Post by mymsn » 2008-10-07 2:46

漂亮!加油啊。

越来越像dz了?为什么要这样...... :(
不知道怎么喜欢上phpbb,但喜欢上就丢不开了 :(

User avatar
baba2145
初来乍到
初来乍到
Posts: 4
Joined: 2008-10-07 3:35

Re: Flash+热贴+新贴+新回复贴

Post by baba2145 » 2008-10-07 3:43

我也喜欢上PHPBB了哈哈

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-10-08 8:51

mymsn wrote:漂亮!加油啊。

越来越像dz了?为什么要这样...... :(
这是客户的要求, :redface:
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-10-08 8:59

i散落 wrote:请问flash怎么实现的
在styles/prosilver/template/index_body.html中需要显示Flash 幻灯的位置添加:

Code: Select all

<script type="text/javascript" src="flash.php"></script>
然后把flash.php上传到phpbb程序所在的目录,内含代码如下:

Code: Select all

linkarr = new Array();
picarr = new Array();
textarr = new Array();
var focus_width=250;
var focus_height=180;
var text_height=16;
var pics = "";
var links = "";
var texts = "";
var swf_height = 200;
var defJpeg = "/jpbbs/files/jpg.jpg";
<?php
//flash
	$lnk=mysql_connect("localhost","a0908094059","test");
	mysql_select_db('a0908094059');
	mysql_query("set names 'utf8'");
	
	$sql='select phpbb_attachments.attach_id as aid,phpbb_attachments.topic_id as t,phpbb_attachments.physical_filename as filename,phpbb_topics.topic_title as title,phpbb_topics.forum_id as f from phpbb_attachments inner join phpbb_topics 
on phpbb_attachments.topic_id=phpbb_topics.topic_id and phpbb_attachments.extension ="jpg" group by phpbb_attachments.topic_id order by phpbb_attachments.filetime desc limit 5';
/*
	$sql='select a.attach_id as aid,a.topic_id as t,a.physical_filename as filename,topic.topic_title as title, distinct topic.forum_id as f 
		  from (phpbb_attachments a,phpbb_topics topic) 
		  where a.topic_id=topic.topic_id and a.extension ="jpg" order by a.filetime 
		  desc limit 5';*/
	$result =mysql_query($sql);
	$nums=mysql_num_rows($result);
	$row =mysql_fetch_array($result);
	
	for ($i=1;$i<=$nums;$i++)
	{
		global $result;
		echo "linkarr[$i]='./viewtopic.php?f=".mysql_result($result,$i-1,'f').urlencode('&');
		echo 't='.mysql_result($result,$i-1,'t')."';";
		//echo "picarr[$i]='./download/file.php?id=".mysql_result($result,$i-1,'aid')."';";
		echo "picarr[$i]='/jpbbs/files/".mysql_result($result,$i-1,'filename')."';";
		echo "textarr[$i]='".mysql_result($result,$i-1,'title')."';";
	}
		
?>
for(i=1;i<picarr.length;i++){
  if(picarr[i].indexOf("jpg")==-1 && picarr[i].indexOf("JPG")==-1) picarr[i] = defJpeg;
  if(pics=="") pics = picarr[i];
  else pics += "|"+picarr[i];
}

for(i=1;i<linkarr.length;i++){
  if(links=="") links = linkarr[i];
  else links += "|"+linkarr[i];
}

for(i=1;i<textarr.length;i++){
  if(texts=="") texts = textarr[i];
  else texts += "|"+textarr[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/jpbbs/files/slide.swf">');
document.write('<param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="/jpbbs/files/slide.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
请注意:
1.代码中的jpbbs/files/jpg.jpg,jpbbs/files/slide.swf请替换成您自己的图片及swf文件。
2.找到$lnk,填写你自己的数据库信息。
3.代码不尽完美,欢迎留言改进。
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

woodychenzhuo
新手入门
新手入门
Posts: 38
Joined: 2008-01-01 21:38

Re: Flash+热贴+新贴+新回复贴

Post by woodychenzhuo » 2008-10-08 9:06

baba2145 wrote:我也喜欢上PHPBB了哈哈
欢迎新朋友。 :grin:
没有不可能的事。欢迎访问我的博客:http://www.rainyjune.cn

Post Reply