[問題] Advanced Link Mod 1.2.2

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
AL37
星球普通子民
星球普通子民
文章: 18
註冊時間: 2005-07-29 16:25

[問題] Advanced Link Mod 1.2.2

文章 AL37 »

問題外掛:Advanced Link Mod 1.2.2
參考連結:
使用版本:phpBB 2.0.17
網站位置:localhost
狀況描述:

小弟用 Easymod 裝了 Advanced Link Mod

可是裝了以後,進入 index.php 就一片空白了...

之後我手動再裝一次,也不行

究竟發生什麼問題呢?

附:

代碼: 選擇全部

############################################################## 
## MOD Title: Advanced Links Mod 
## MOD Author: stefan2k1 < sp@phpbb2.de > (Stefan Paulus) http://www.phpbb2.de
##	       CRLin (Demo 1: http://mail.dhjh.tcc.edu.tw/~gzqbyr/Hestia/links.php)
##                   (Demo 2: http://mail.dhjh.tcc.edu.tw/~gzqbyr/phpBB/links.php)
## MOD Description: Display links (with logo) on the forum index page. 
## MOD Version: 1.2.2 
## 
## Installation Level: (Easy) 
## Installation Time: 8-10 Minutes
## Files To Edit: index.php, constants.php, index_body.tpl, lang_admin.php 
## Included Files: links.php
## 		   links.js.php
##		   link_register.php
##		   admin/admin_links.php
##		   admin/admin_links_cat.php
##		   admin/admin_links_config.php
##		   language/lang_english/lang_main_link.php
##		   language/lang_english/lang_admin_link.php
##		   language/lang_english/email/link_add.tpl
##		   templates/subSilver/links_body.tpl
##		   templates/subSilver/links_index.tpl
##		   templates/subSilver/links_popnew.tpl
##		   templates/subSilver/links_search.tpl
##		   templates/subSilver/links_js_body.tpl
##		   templates/subSilver/admin/admin_links_body.tpl 
##		   templates/subSilver/admin/admin_links_edit_body.tpl
##		   templates/subSilver/admin/admin_link_cat_body.tpl
##		   templates/subSilver/admin/admin_link_cat_delete_body.tpl
##		   templates/your_template/admin/admin_link_cat_edit_body.tpl
##		   templates/your_template/admin/admin_link_cat_new_body.tpl
##		   templates/your_template/admin/admin_link_config_body.tpl
##		   images/links/web_logo88a.gif
##		   images/links/phpBB_88a.gif
##		   images/links/phpbb-tw_logo88a.gif
##		   images/links/phpbb2_de_logo.gif
##		   images/links/forum_images_banner_88x31.gif
##		   images/links/no_logo88a.gif
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: This Mod was originally created by OOHOO, most Credits are given to him.
##		 Credits also go to ddonker from www.portedmods.com to help with the Admin Stuff.
## 		 The Mod got several enhancements and Bugfixes since Version 1.1.0.
##		 Administration has more comfort and no need of editing Config Files anymore.
## 
############################################################## 
## MOD History: 
## 
##   2002-04-25 - Version 1.1.0 
##      - initial Release by OOHOO
##   2003-01-19 - Version 1.1.1
##      - added links_install.php and missing Code in readme
##   2003-06-15 - Version 1.2.0 
##      - Enhancements and Bugfixes, phpBB 2.0.4 compatible
##   2003-12-03 - Version 1.2.1 
##      - enhancements, Site Category showed first and Search Site
##      - while Link added, send e-mail or notify on private message to site admins
##   2004-05-10 - Version 1.2.2 
##      - lock user submit site, Administration can submit site from ACP
##      - allow submit site without banner
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ COPY ]------------------------------------------ 
# 

copy links.php to your forums root directory, i.e. /phpBB2/
\ncopy links_js.php to your forums root directory, i.e. /phpBB2/
copy link_register.php to your forums root directory, i.e. /phpBB2/
copy admin_links.php to admin/admin_links.php
copy admin_links_cat.php to admin/admin_links_cat.php
copy admin_links_config.php to admin/admin_links_config.php
copy lang_main_links.php to language/lang_english/lang_main_links.php
copy lang_admin_links.php to language/lang_english/lang_admin_links.php
copy link_add.tpl to language/lang_english/email/link_add.tpl
copy links_index.tpl to templates/subSilver/links_index.tpl
copy links_body.tpl to templates/subSilver/links_body.tpl
copy links_popnew.tpl to templates/subSilver/links_popnew.tpl
copy links_search.tpl to templates/subSilver/links_search.tpl
copy links_js_body.tpl to templates/subSilver/links_js_body.tpl
copy admin_links_body.tpl to templates/subSilver/admin/admin_links_body.tpl
copy admin_links_edit_body.tpl to templates/subSilver/admin/admin_links_edit_body.tpl
copy admin_link_cat_body.tpl to templates/subSilver/admin/admin_link_cat_body.tpl
copy admin_link_cat_delete_body.tpl to templates/subSilver/admin/admin_link_cat_delete_body.tpl
copy admin_link_cat_edit_body.tpl to templates/subSilver/admin/admin_link_cat_edit_body.tpl
copy admin_link_cat_new_body.tpl to templates/subSilver/admin/admin_link_cat_new_body.tpl
copy admin_link_config_body.tpl to templates/subSilver/admin/admin_link_config_body.tpl
copy web_logo88a.gif to images/links/web_logo88a.gif
copy phpBB_88a.gif to images/links/phpBB_88a.gif
copy phpbb-tw_logo88a.gif to images/links/phpbb-tw_logo88a.gif
copy phpbb2_de_logo.gif to images/links/phpbb2_de_logo.gif
copy forum_images_banner_88x31.gif to images/links/forum_images_banner_88x31.gif
copy no_logo88a.gif to images/links/no_logo88a.gif

# 
#-----[ COPY ]------------------------------------------ 
#

copy links_install.php to your forums root directory and run it from your browser

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/constants.php

# 
#-----[ FIND ]------------------------------------------ 
#

define('PAGE_GROUPCP', -11);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

define('PAGE_LINKS', -14);

# 
#-----[ FIND ]------------------------------------------ 
# 

define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

define('LINKS_TABLE', $table_prefix.'links');
define('LINK_CATEGORIES_TABLE', $table_prefix.'link_categories');
define('LINK_CONFIG_TABLE', $table_prefix.'link_config');

# 
#-----[ OPEN ]------------------------------------------ 
#

language/lang_english/lang_admin.php

# 
#-----[ AT THE END, ADD ]------------------------------- \r
#

$lang['Links'] ='Links Admin';

# 
#-----[ OPEN ]------------------------------------------ 
#

index.php

# 
#-----[ FIND ]------------------------------------------ 
#

init_userprefs($userdata);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_link.' . $phpEx);

# 
#-----[ FIND ]------------------------------------------ 
#

$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

$sql = "SELECT *
		FROM ". LINK_CONFIG_TABLE;
	if(!$result = $db->sql_query($sql))
	{
		message_die(GENERAL_ERROR, "Could not query Link config information", "", __LINE__, __FILE__, $sql);
	}
	
	while( $row = $db->sql_fetchrow($result) )
	{
		$link_config_name = $row['config_name'];
		$link_config_value = $row['config_value'];
		$link_config[$link_config_name] = $link_config_value;
		$link_self_img = $link_config['site_logo'];
		$site_logo_height = $link_config['height'];
		$site_logo_width = $link_config['width'];
	}

# 
#-----[ FIND ]------------------------------------------ 
#

'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

		'L_LINKS' => $lang['Site_links'],
		'U_LINKS' => append_sid("links.$phpEx"),
		'U_LINKS_JS' => "links.js.$phpEx",
		'U_SITE_LOGO' => $link_self_img,
		'SITE_LOGO_WIDTH' => $site_logo_width,
		'SITE_LOGO_HEIGHT' => $site_logo_height,

# 
#-----[ OPEN ]------------------------------------------ 
#

templates/subSilver/index_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
#

<!-- BEGIN switch_user_logged_out --> 
<form method="post" action="{S_LOGIN_ACTION}">

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catLeft" width="100%" height="22"><span class="cattitle"><a href="{U_LINKS}" class="cattitle">{L_LINKS}</a></span></td>
	<td class="catRight" nowrap="nowrap" align="center"><span class="cattitle">{SITENAME}</span></td>
  </tr>
  <tr> 
	<td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td>
	<td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" /></td>
  </tr>
</table>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
多謝各位幫忙!
Kill
竹貓忠實會員
竹貓忠實會員
文章: 874
註冊時間: 2003-07-31 12:40
來自: CKD Studio
聯繫:

文章 Kill »

請檢查是否執行過links_install.php
喜歡...就是淡淡ㄉ愛... ...則是深深ㄉ喜歡...
圖檔
提供phpBB代架服務以及外掛安裝

有付費服務的問題請移駕至CKD Studio發問 ╮( ̄▽ ̄)╭
AL37
星球普通子民
星球普通子民
文章: 18
註冊時間: 2005-07-29 16:25

文章 AL37 »

k122417901 寫:請檢查是否執行過links_install.php


已做過了 Database update
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

這個外掛沒有說可以用EasyMod安裝吧?!
建議你移除再安裝一次試試看或許會有改善 ;-)
AL37
星球普通子民
星球普通子民
文章: 18
註冊時間: 2005-07-29 16:25

文章 AL37 »

問題狂 寫:這個外掛沒有說可以用EasyMod安裝吧?!
建議你移除再安裝一次試試看或許會有改善 ;-)
我已經還原所有檔案再手動安裝了...

可惜還是不能解決 :-(
charis
星球普通子民
星球普通子民
文章: 13
註冊時間: 2005-01-22 02:29

文章 charis »

我的問題跟你一樣, 在執行 links_install.php 的時候就是一片空白. 我已經在別處跟帖了:
http://phpbb-tw.net/phpbb/viewtopic.php?t=38293
如果找到解決方法請告訴我.
過山雲
竹貓忠實會員
竹貓忠實會員
文章: 390
註冊時間: 2002-09-05 20:11
來自: 東都.承天府.萬年縣治.拱辰門北
聯繫:

文章 過山雲 »

您的帳號一定要用管理員登入\r
一般的帳號是無用的
圖檔
主題已鎖定

回到「外掛問題討論」