|
列出文章
|
頁: [1]
|
1
|
開發 / 外掛程式 / Re: "啟用迴響認證"的問題!!
|
於: 九月 12, 2006, 04:05:12 下午
|
不好意思!!耽誤了大家寶貴時間!!昨日問題已解決!!
可能的原因在於我下載錯的authimage檔!! 後來我在http://sourceforge.net/project/showfiles.php?group_id=83964&package_id=100434&release_id=445089 再下載一次!!
目前,昨天的問題已解決!!祝 大家順利
|
|
|
2
|
開發 / 外掛程式 / "啟用迴響認證"的問題!!
|
於: 九月 11, 2006, 04:09:19 下午
|
各位同好: 煩請為小弟解決問題,感激不盡!! 小弟採用智邦生活的的虛擬主機,php4.1.8版本! 日前由1.0.6版本升級至1.1版本! 因想採用迴響認證模組,因此下載解壓縮後,用ftp將authimages上傳至plugins! 然後,再將templates/blueish中的comment.templates打開!! 其原始訊息如下: <div class="comments-body"> <form action="{$url->getIndexUrl()}" method="post" id="NewComment" name="NewComment"> <div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;"> <label for="subject">{$locale->tr("comment_topic")}:</label><br /> <input tabindex="1" id="subject" name="commentTopic" value="{$topic}" /><br /><br /> <label for="author">{$locale->tr("comment_username")}:</label><br /> <input tabindex="2" id="author" name="userName" /><br /><br /> <label for="email">{$locale->tr("comment_email")}:</label><br /> <input tabindex="3" id="email" name="userEmail" /><br /><br /> <label for="url">{$locale->tr("comment_url")}:</label><br /> <input tabindex="4" id="url" name="userUrl" /><br /><br /> </div> <div> <label for="text">{$locale->tr("add_comment")}:</label><br /> <div id="toolbar"> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'b');" src="{$url->getTemplateFile("bold.gif")}" width="16" height="16" align="middle" alt="Bold" /> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'i');" src="{$url->getTemplateFile("italic.gif")}" width="16" height="16" align="middle" alt="Italic" /> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="insertLink(document.comments_form.commentText);" src="{$url->getTemplateFile("link.gif")}" width="16" height="16" align="middle" alt="Link" /> </div> <textarea tabindex="5" id="text" name="commentText" rows="10" cols="50"></textarea><br /><br />
<input style="font-weight: bold;" type="submit" name="post" value=" {$locale->tr("comment_send")} " /><br /><br /> <input type="hidden" name="op" value="AddComment"/> <input type="hidden" name="articleId" value="{$post->getId()}"/> <input type="hidden" name="blogId" value="{$blog->getId()}"/> <input type="hidden" name="parentId" value="{$parentId}"/> </div> </form> </div>
貼上指定語法,訊息如下: <div class="comments-body"> <form action="{$url->getIndexUrl()}" method="post" id="NewComment" name="NewComment"> {if $authimage->isEnabled()} <div><label for="authImage">AuthImage</label><input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</div> {/if} <div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;"> <label for="subject">{$locale->tr("comment_topic")}:</label><br /> <input tabindex="1" id="subject" name="commentTopic" value="{$topic}" /><br /><br /> <label for="author">{$locale->tr("comment_username")}:</label><br /> <input tabindex="2" id="author" name="userName" /><br /><br /> <label for="email">{$locale->tr("comment_email")}:</label><br /> <input tabindex="3" id="email" name="userEmail" /><br /><br /> <label for="url">{$locale->tr("comment_url")}:</label><br /> <input tabindex="4" id="url" name="userUrl" /><br /><br /> </div> <div> <label for="text">{$locale->tr("add_comment")}:</label><br /> <div id="toolbar"> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'b');" src="{$url->getTemplateFile("bold.gif")}" width="16" height="16" align="middle" alt="Bold" /> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'i');" src="{$url->getTemplateFile("italic.gif")}" width="16" height="16" align="middle" alt="Italic" /> <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="insertLink(document.comments_form.commentText);" src="{$url->getTemplateFile("link.gif")}" width="16" height="16" align="middle" alt="Link" /> </div> <textarea tabindex="5" id="text" name="commentText" rows="10" cols="50"></textarea><br /><br />
<input style="font-weight: bold;" type="submit" name="post" value=" {$locale->tr("comment_send")} " /><br /><br /> <input type="hidden" name="op" value="AddComment"/> <input type="hidden" name="articleId" value="{$post->getId()}"/> <input type="hidden" name="blogId" value="{$blog->getId()}"/> <input type="hidden" name="parentId" value="{$parentId}"/> </div> </form> </div>
接著,小弟到全部站台管控裡的外掛,可以見到以下訊息: authimage Mark Wu This plugin offers extra comment authentication for pLog. The idea is inspired by WordPress AuthImage Plugin written by Gudlyf.
於是我到管理中心/迴響驗證外掛程式,將啟用打勾!按下更新,得下列訊息:
Fatal error: Call to a member function on a non-object in /raid/vhost/ripkenmou.idv.tw/www/blog/class/dao/blogs.class.php on line 106
將上述部份檔案打開,部份訊息如下(紅字為106行): /** * Updates the configuration of a blog * * @param blogId Blog identifier * @param blogInfo A BlogInfo object containing all the information of the blog * @param return Returns true if everything's ok or false otherwise */ function updateBlog( $blog ) { // load the previous version of this blog $prevVersion = $this->getBlogInfo( $blog->getId()); if( ($result = $this->update( $blog ))) { // reset the caches // TODO: jondaley: is this doing the right thing? $this->_cache->removeData( $blog->getCustomDomain(), CACHE_BLOGIDBYDOMAIN ); $this->_cache->removeData( $blog->getMangledBlogName(), CACHE_BLOGIDBYNAME ); $this->_cache->removeData( $blog->getId(), CACHE_BLOGINFOS );
請問我的缺失出現在那邊?該如何補救?
又及: 下列部份,我不知該如何運用,煩請協助!! In order to use, simply include the following: 1. $authimage->isEnabled() to check the plugin is enabled or not. 2. $authimage->show() to get the authentication image.
耽誤大家時間,深感抱歉;承蒙協助,不甚感激!
|
|
|
|
|
|