1 頁 (共 1 頁)

[問題]有人會作東森速報的結構嗎?

發表於 : 2004-03-24 05:44
無敵肉腳
之前我在網站建置百寶箱那有看到教人自己做一個像東森速報的結構
來代替網站的logo,(宣傳網站用的)
現在找不到那個站的連結....
那php可以做到\r
版主推薦他討論區的文章
系管審查通過後
會在網站速報上出現該文章標題
在速報上按下那文章標題會開新視窗連結到你的網站上該文章內容的頁面\r
php可以做到嗎????

因為速報是代替了你的logo在別人的網站
我想找之前教人自己做自己的東森速報找不到...我記得那個不是php的語法...
本來想說找到就用那個手動加入.....

剛剛發現http://forum.iron-heart.com/forum/
在這個站裡左下有個近來主題...很合我用....那個是什麼mod
可以改變文字方向跟每一題停頓時間嗎??

發表於 : 2004-03-25 02:08
無敵肉腳
請問一下
在phpbb資料夾中....
那一個文件是顯示每一個討論區內的討論標題??
討論區的php標籤是什麼\r

還是說做一頁php把路徑指向資料庫...那討論區的討論標題
在資料庫中要怎指定???

發表於 : 2004-03-25 04:44
看這篇主題都沒有人回!那我就以我目前所學習到的來回答你吧!(獻醜啦~.~||)

1、的確是可以做到你所說的!由板主來新增資料等...!
2、點選主題開新文章?那不是html嗎?target="_blank"
3、至於你說代替Logo?我只能說...難!
4、資料皆是儲存於資料庫,主題所存放的表格是"phpbb_topics"
5、其他問題有看沒有懂!

這是我剛凌晨無聊花了一兩個小時研究的(研究它的跑馬燈XD)=.=||...看看吧!

http://www.gamehack.idv.tw/forum/showtopic.php

本範例為本站希望板的十篇最新主題(因為我只是好奇+測試而已...故非常簡陋)

其實我很早以前就已經有看過類似的東西出現了!好像是叫跑馬燈公告還是什麼的!


以上僅供參考

發表於 : 2004-03-31 21:00
無敵肉腳
好棒.....
可以跟我說要怎做嗎???
謝謝
對了...有一個問題....
如果該版面只限註冊會員進入\r
那該版面的主題又送上跑馬燈
那點進去時..是否會跳過須要註冊的手續呢\r
我第一次點時沒有出現(我那時還沒在你的站註冊)
當我註冊好時...也進了你的登錄了帳號...
然後回竹貓點你上面那個連結....就出現了那個跑馬燈了..很不錯....
我想看裝裝看
可以跟我說怎做嗎??

發表於 : 2004-03-31 22:10
alexpan
在你要顯示的地方插入這段與法.....

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="white">
<tr><td bgcolor=#ffffff width=65>
<img src="原為東森速報的那個圖片,改成你要的圖片位置" width="57" height="24">
</td><td>
<iframe src="要連結的網頁" width="340" height="18" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe>
</td></tr></table>

要連結的網頁...你就自製吧,做一個網頁裡面只有一個跑馬燈的就ok了....
跑馬登裡面的文字你再給他做連結......

這個如果成功了我可以貼到非官方外掛嗎O.o?~(妄想中..還沒測試,好像也不夠格貼^^")

發表於 : 2004-04-01 06:03
無敵肉腳 寫:如果該版面只限註冊會員進入\r
那該版面的主題又送上跑馬燈
那點進去時..是否會跳過須要註冊的手續呢
我所寫的判定並沒有到那麼細,只是單純的判定有無登入而已。不過這部份是我忘記拿掉的...=.=||

ps:若板面權限有做設定...連結主題後還是會跳入登入畫面...
無敵肉腳 寫:可以跟我說怎做嗎??
至於怎麼做可以參考這篇http://phpbb-tw.net/phpbb/viewtopic.php?t=21464

速報主要的跑馬結構大概是這樣的!
A先列出所有主題=>B再以跑馬燈的方式將A讀入=>最後C再以iframe的方式將B讀入=>完成


最後想講的是我們板主閒聊的結果...基本上因該是沒什麼人會放這種東西到自己的網頁上...

發表於 : 2004-04-01 16:55
無敵肉腳
謝謝啦\r
那一篇很實用\r
至少能教我語法的羅輯.....
語法標籤.........這等偶的書回到偶手中時....再來改.....
(借朋友了)

發表於 : 2004-04-01 20:10
 
這個給你參考一下 ~

代碼: 選擇全部

################################################################# 
## Title: Recent Topics Block for Smartor's ezPortal
## Author: Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com
## Description: This file explains you how to create Recent Topics block on ezPortal
##
## Files To Edit: 3
##	portal.php
##	templates/subSilver/portal_body.tpl
##	language/lang_english/lang_main.php
##
## Included Files: N/A
##
################################################################# 

#
#-----[ OPEN ]-------------------------------------------------------
#
portal.php

#
#-----[ FIND: in configuration section ]-------------------
#
// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';

#
#-----[ AFTER ADD ]---------------------------------------
# You could config it as well
#
// Number of Recent Topics (not Forum ID)
$CFG['number_recent_topics'] = '10';

// Exceptional Forums for Recent Topics, eg. '2,4,10' (note: my Recent Topics script has its own permission checking, so you can leave this variable blank)
$CFG['exceptional_forums'] = '';

#
#-----[ FIND ]---------------------------------------------
#
else
{
	$l_total_user_s = $lang['Registered_users_total'];
}

#
#-----[ AFTER ADD ]---------------------------------------
#
//
// Recent Topics
//
$sql = "SELECT * FROM ". FORUMS_TABLE . " ORDER BY forum_id";
if (!$result = $db->sql_query($sql))
{
	message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
$forum_data = array();
while( $row = $db->sql_fetchrow($result) )
{
	$forum_data[] = $row;
}

$is_auth_ary = array();
$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);

if( $CFG['exceptional_forums'] == '' )
{
	$except_forum_id = '\'start\'';
}
else
{
	$except_forum_id = $CFG['exceptional_forums'];
}

for ($i = 0; $i < count($forum_data); $i++)
{
	if ((!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_read']) or (!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']))
	{
		if ($except_forum_id == '\'start\'')
		{
			$except_forum_id = $forum_data[$i]['forum_id'];
		}
		else
		{
			$except_forum_id .= ',' . $forum_data[$i]['forum_id'];
		}
	}
}
$sql = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
		FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . USERS_TABLE . " AS u
		WHERE t.forum_id NOT IN (" . $except_forum_id . ")
			AND t.topic_status <> 2
			AND p.post_id = t.topic_last_post_id
			AND p.poster_id = u.user_id
		ORDER BY p.post_id DESC
		LIMIT " . $CFG['number_recent_topics'];
if (!$result = $db->sql_query($sql))
{
	message_die(GENERAL_ERROR, 'Could not query recent topics information', '', __LINE__, __FILE__, $sql);
}
$number_recent_topics = $db->sql_numrows($result);
$recent_topic_row = array();
while ($row = $db->sql_fetchrow($result))
{
	$recent_topic_row[] = $row;
}
for ($i = 0; $i < $number_recent_topics; $i++)
{
	$template->assign_block_vars('recent_topic_row', array(
		'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
		'L_TITLE' => $recent_topic_row[$i]['topic_title'],
		'U_POSTER' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $recent_topic_row[$i]['user_id']),
		'S_POSTER' => $recent_topic_row[$i]['username'],
		'S_POSTTIME' => create_date($board_config['default_dateformat'], $recent_topic_row[$i]['post_time'], $board_config['board_timezone'])
		)
	);
}
//
// END - Recent Topics
//

#
#-----[ FIND ]---------------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ AFTER ADD ]----------------------------------------
#
	// Recent Topics
	'L_RECENT_TOPICS' => $lang['Recent_topics'],


#
#-----[ OPEN ]-------------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------------------
#
$lang['No_poll'] = 'No poll at the moment';

#
#-----[ AFTER ADD ]----------------------------------------
#
$lang['Recent_topics'] = 'Recent topics'; // Recent Topics


#
#-----[ OPEN ]-------------------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ FIND ]---------------------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_STATISTICS}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS}<br />{NEWEST_USER}<br /><br/>{TOTAL_POSTS} {TOTAL_TOPICS}<br /> </span></td>
		   </tr>
		  </table>
		  
		  <br />
#
# Scrolling Version
#-----[ AFTER ADD ]----------------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_RECENT_TOPICS}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">
			<marquee id="recent_topics" behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2">
			<!-- BEGIN recent_topic_row -->
			» <a href="{recent_topic_row.U_TITLE}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.L_TITLE}</a><br />
			by <a href="{recent_topic_row.U_POSTER}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.S_POSTER}</a> on {recent_topic_row.S_POSTTIME}<br /><br />
			<!-- END recent_topic_row -->
			</marquee>
			</span></td>
		   </tr>
		  </table>
		  
		  <br />
#
# Classical Version
#-----[ OR ]------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_RECENT_TOPICS}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">
			<!-- BEGIN recent_topic_row -->
			» <a href="{recent_topic_row.U_TITLE}">{recent_topic_row.L_TITLE}</a><br />
			by <a href="{recent_topic_row.U_POSTER}">{recent_topic_row.S_POSTER}</a> on {recent_topic_row.S_POSTTIME}<br /><br />
			<!-- END recent_topic_row -->
			</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------ 
#
# EoF