1 頁 (共 1 頁)

[問題] pay_mod_extra 0.1.1 與 File Attachment Mod V2.3.14 是否有衝突??

發表於 : 2005-08-05 03:38
minotaur
先貼一下 File Attachment Mod V2.3.13 升級至 File Attachment Mod V2.3.14 部分原始碼\r
attach_mod/displaying.php
FIND - Line 789

代碼: 選擇全部


					$img_source = $filename;
					$download_link = FALSE;
REPLACE WITH

代碼: 選擇全部


					// Check if we can reach the file or if it is stored outside of the webroot
					if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
					{
						$img_source = append_sid('download.' . $phpEx . '?id=' . $attachments['_' . $post_id][$i]['attach_id']);
						$download_link = TRUE;
					}
					else
					{
						$img_source = $filename;
						$download_link = FALSE;
					}
FIND - Line 845

代碼: 選擇全部


					$thumb_source = $thumbnail_filename;
REPLACE WITH

代碼: 選擇全部


					// Check if we can reach the file or if it is stored outside of the webroot
					if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
					{
						$thumb_source = append_sid('download.' . $phpEx . '?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1');
					}
					else
					{
						$thumb_source = $thumbnail_filename;
					}
這部分與倉大大pay_mod_extra 0.1.1
有無衝突阿??
倉大大的

代碼: 選擇全部

$img_source = $filename;
是被//註銷的
而外掛

代碼: 選擇全部

$download_link = FALSE;
這行有改變
倉大有變的是\r

代碼: 選擇全部

if (!$download_link && $showatt <> 'no')
想請問有人升級了嗎?是否有問題?

Attachment Mod 2.3.13 to Attachment Mod 2.3.14 Code Changes
http://www.opentools.de/board/download.php?id=735

發表於 : 2005-08-05 05:06
~倉木麻衣~
沒有衝突
在新版的pay_mod_extra釋出之前, 您可以先針對Attachment Mod 2.3.14自行做升級的動作
升級方式就如您所貼的程式碼

Re: [問題] pay_mod_extra 0.1.1 與 File Attachment Mod V2.3.14 是否有衝突

發表於 : 2005-08-05 05:26
心靈捕手
minotaur 寫:想請問有人升級了嗎?是否有問題?
就我個人的升級( File Attachment Mod V2.3.14) 經驗而言, 是沒有問題的;
誠如 ~倉木麻衣~ 兄所言, " 您可以先針對Attachment Mod 2.3.14自行做升級的動作".

--
To ~倉木麻衣~ 兄:
建議您:
如果 pay_mod_extra 再有更新版的話, 可以取消" attach_mod_fix" 這部份!

主要原因是我發覺 Attachment Mod 更新速度蠻快的,
而您在" attach_mod_extra.txt" 裡頭, 已經寫得很詳細囉!

只要日後, 再有發現 bug, 或需要隨著 Attachment Mod 更新而修正時,
再做升級的動作即可, 應該可以省去不少麻煩吧! ;-)