歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 04, 2024, 06:34:22 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 安裝與設定 / Re: [請教] 整合 phpBB 後希望預設網誌為停用 於: 四月 15, 2008, 08:57:49 上午
各位大大

我的問題還沒解決,是不是我把問題描述得太複雜,簡單的說就是:
我啟用與 phpBB 的會員整合後,我希望網誌預設為「停用」狀態。
不曉得要如何處理?
2  支援 / 安裝與設定 / [請教] 整合 phpBB 後希望預設網誌為停用 於: 十一月 23, 2007, 08:35:06 上午
問題:
我的 LifeType 的會員是整合 phpBB 的會員系統,但是我希望在 phpBB 完成註冊的會員,其在 LifeType 的網誌是停用(不啟用)的狀態。

而我的理由(需求)是,該 LifeType(Blog)只開放給特定的會員(老師)使用。

我的處理(但是行不通)
我看了一下資料表: lt_blogs 的 status 欄位是作為設定帳號啟用「值=1」或停用「值=2」
於是我將 status 欄位的預設值改為「2」預設為停用的狀態。我本以為這樣就OK!
但是在phpBB新註冊會員後,結果資料表: lt_blogs 的 status 欄位被寫入的值還是「1」啟用的狀態。

我希望在phpBB新註冊的會員,其在資料表: lt_blogs 的 status 欄位被寫入的值還是「2」為停用的狀態。

▼ 資料表 lt_blogs 的 status 欄位資料結構


▼ 被寫入的值卻仍然為「1」


由於我對於程式不是很懂,還請各位前輩惠予指導,感激不盡。
3  開發 / 外掛程式 / Re: 默认启用外挂? 於: 三月 17, 2006, 10:55:47 上午
沒有別的辦法,因為每個模版都必須要有那一段程式碼
所以你必須一個個的加上去
謝謝 bibicall 前輩的回應。

另外,小弟已經在 plugins/authimage/pluginauthimage.class.php 的 function register() 修改為:
程式碼:
function register()
        {
            $config =& Config::getConfig();
            $this->cacheFolder = $config->getValue('temp_folder');
            $this->cacheFolder = $this->cacheFolder.'/authimage/'.$this->blogInfo->getId();
            if( !File::exists( $this->cacheFolder )) {
                File::createDir( $this->cacheFolder );
            }
           
            $blogSettings = $this->blogInfo->getSettings();

            // 由 $blogSettings 物件裡取出 plugin_authimage_enabled 的設定值
            $this->pluginEnabled = $blogSettings->getValue( "plugin_authimage_enabled" );

            // 如果取出的設定值不存在,代表還沒有設定過,
            // 將設定值設為 true ,
            // 並重新取得設定值。
            if ( empty($this->pluginEnabled) ) {
                $blogSettings->setValue( "plugin_authimage_enabled", true );
                $this->pluginEnabled = $blogSettings->getValue( "plugin_authimage_enabled" );
            }
            $this->length = $blogSettings->getValue( "plugin_authimage_length" );
            $this->key = $blogSettings->getValue( "plugin_authimage_key" );
            $this->expiredTime = $blogSettings->getValue( "plugin_authimage_expiredtime" );
            if ($this->expiredTime == "") $this->expiredTime = 3600;
            $this->default = $blogSettings->getValue( "plugin_authimage_default" );
        }
照理說應該已經「預設啟用」,可是如果使用者未經啟用,驗證碼的效果還是無法啟用。還是需要使用者自行設定啟用,驗證碼效果才能運作。

請問,我有疏漏什麼步驟嗎?
4  開發 / 外掛程式 / Re: 默认启用外挂? 於: 三月 16, 2006, 04:22:42 下午
前教各位前輩

有關迴響驗證的外掛,大致上可以運作,只是有很多模版裡並沒有有關 $authimage 的定義,所以是否必須一個一個模版裡去修改 commentform.template 加入以下程式碼!還是說 有其他的方法嗎?

程式碼:
Install:
Add the following code to commentform.template:
{if $authimage->isEnabled()}
<div><label for="authImage">AuthImage</label><input type="text" name="authImage" id="authImage" value="" />&nbsp;{$authimage->show()}</div>
{/if}
頁: [1]