本帖最后由 mels 于 2010-3-27 20:18 编辑
主贴。
136468936 发表于 2010-3-27 19:21
主帖在哪?
不過手工裝方法我寫好了,需要一個個去對照:- 安裝方法:
- 手動修改 template/default/space_index.htm
- 將
- <!--{if $_SCONFIG[videophoto]}-->
- <!--{if $space[videostatus]}-->
- <img src="image/videophoto_yes.gif" align="absmiddle" alt="已通過視頻認證"> <a id="a_space_videophoto" href="space.php?uid=$space[uid]&do=videophoto" onclick="ajaxmenu(event, this.id, 1)"><span style="color:red;font-weight:bold;font-size:12px;">查看視頻認證照</span></a>
- <!--{else}-->
- <img src="image/videophoto_no.gif" align="absmiddle" alt="未通過視頻認證"> <span class="gray"><a href="cp.php?ac=videophoto">視頻未認證</a></span>
- <!--{/if}-->
- <!--{/if}-->
- 修改為
- <!--{if $space[videostatus]}-->
- <img src="image/videophoto_yes.gif" align="absmiddle" alt="已通過視頻認證"> <a id="a_space_videophoto" href="space.php?uid=$space[uid]&do=videophoto" onclick="ajaxmenu(event, this.id, 1)"><span style="color:red;font-weight:bold;font-size:12px;">查看視頻認證照</span></a>
- <!--{else}-->
- <img src="image/videophoto_no.gif" align="absmiddle" alt="未通過視頻認證"> <span class="gray"><a href="license.php">視頻未認證</a></span>
- <!--{/if}-->
- 就是去掉<!--{if $_SCONFIG[videophoto]}-->和與其相對應的<!--{/if}-->還有把cp.php?ac=videophoto改為license.php
- 在 template/space_videophoto.htm
- 找到
- <p><a href="$videophoto" target="_blank"><img src="$videophoto" alt="視頻認證照" width="400"></a></p>
- 修改為
- <p>{$videophoto}</p>
- 在source/space_videophoto.php
- 找到
- if(empty($_SCONFIG['videophoto'])) {
- showmessage('no_open_videophoto');
- }
- 將其刪除
- 再找到
- ckvideophoto('viewphoto', $space);
- $videophoto = getvideopic($space['videopic']);
- 修改為
- include_once("./xphoto/php/lele.inc.php");
- $uid = empty($_GET['uid'])?'':$_GET['uid'];
- $query = $_SGLOBAL['db']->query("select id,pic,active,time from {$leletang}authentication where id='".$uid."'");
- $license_num = $_SGLOBAL['db']->num_rows($query);
- if($license_num=='1')
- {
- $gb_license = $_SGLOBAL['db']->fetch_array($query);
- if($gb_license[active]=='1')
- {
- $videophoto = '<a href="./xphoto/'.$gb_license[pic].'" target="_blank"><img src="./xphoto/'.$gb_license[pic].'" alt="視頻認證照" width="400"></a>';
- }
- else
- {
- $videophoto = '非法操作';
- }
- }
- else
- {
- $videophoto = '非法操作';
- }
- 上傳所有檔案至uchome根目錄,運行xphoto/installsky.php安裝即可。
复制代码 |