演示:
收起:
展开:
修改方法:
打开common.css
一、在最上面添加: @import url("sousuo.css");
二、打开:space_feed.htm
找到代码:
<div>
<h2>寻找好友</h2>
<ul>
<li><a href="cp.php?ac=friend&op=find">寻找好友</a>,发现更多志同道合的朋友</li>
<li>
<form method="post" action="cp.php?ac=friend">
<input type="text" name="username" value="请输入用户名<!--{if $_SCONFIG['realname']}-->或姓名<!--{/if}-->" class="t_input" />
<input type="hidden" name="findsubmit" value="true" />
<input type="submit" name="findsubmit_btn" value="快速定位" id="findsubmit_btn" class="submit" style="width:70px" />
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /></form>
</li>
</ul>
</div>
在下面添加以下代码或直接替换:
<div class="searchgo">
<h2>好友搜索</h2>
<div id="m_search"<!--{if !empty($gets) || !empty($_GET['view'])}--> <!--{/if}-->>
<form method="get" action="network.php">
<p><p>
用户名 <input type="text" name="username" value="$gets[username]" class="t_input" /><br /><br />
<input type="hidden" name="ac" value="space" />
<input type="hidden" name="searchmode" value="1" />
<input type="submit" name="findsubmit" value="找人" class="submit" />
<a href="javascript:;">高级搜索</a></p></p> </form>
</div>
<form method="get" action="network.php">
<table cellspacing="0" cellpadding="0" class="formtable" id="adv_search"<!--{if empty($gets)}--> style="display:none;"<!--{/if}-->>
<tr>
<th>用户名</th>
<td>
<input type="text" name="username" value="$gets[username]" class="t_input" />
</td>
</tr>
<tr>
<th>姓名</th>
<td>
<input type="text" name="name" value="$gets[name]" class="t_input" />
</td>
</tr>
<tr>
<th>性别</th>
<td>
<select id="sex" name="sex">
<option value="0">任意</option>
<option value="1"$sexarr[1]>男</option>
<option value="2"$sexarr[2]>女</option>
</select>
</td>
</tr>
<tr>
<th>生日</th>
<td>
<select id="birthyear" name="birthyear">
<option value="0">年</option>
$birthyeayhtml
</select>
<select id="birthmonth" name="birthmonth">
<option value="0">月</option>
$birthmonthhtml
</select>
<select id="birthday" name="birthday">
<option value="0">日</option>
$birthdayhtml
</select>
</td>
</tr>
<tr>
<th>血型</th>
<td>
<select id="blood" name="blood">
<option value="">任意</option>
$bloodhtml
</select>
</td>
</tr>
<tr>
<th>婚恋</th>
<td>
<select id="marry" name="marry">
<option value="0">任意</option>
<option value="1"$marryarr[1]>单身</option>
<option value="2"$marryarr[2]>非单身</option>
</select>
</td>
</tr>
<tr>
<th>出生地</th>
<td>
<script type="text/javascript" src="source/script_city.js"></script>
<script type="text/javascript">
<!--
showprovince('birthprovince', 'birthcity', '$gets[birthprovince]');
showcity('birthcity', '$gets[birthcity]');
//-->
</script>
</td>
</tr>
<tr>
<th>居住地</th>
<td>
<script type="text/javascript">
<!--
showprovince('resideprovince', 'residecity', '$gets[resideprovince]');
showcity('residecity', '$gets[residecity]');
//-->
</script>
</td>
</tr>
<tr>
<th>QQ</th>
<td>
<input type="text" name="qq" value="$gets[qq]" class="t_input" />
</td>
</tr>
<tr>
<th>MSN</th>
<td>
<input type="text" name="msn" value="$gets[msn]" class="t_input" />
</td>
</tr>
<tr>
<th>年龄段</th>
<td>
<input type="text" name="startage" value="$gets[startage]" style="width:70px;" />~<input type="text" name="endage" value="$gets[endage]" style="width:70px;" />
</td>
</tr>
<tr>
<th>群组</th>
<td colspan="3">
<select name="fieldid">
<option value="0">请选择</option>
<!--{loop $_SGLOBAL[profield] $fieldid $value}-->
<option value="$fieldid"$fieldids[$fieldid]>$value[title]</option>
<!--{/loop}-->
</select>
<input type="text" name="fieldname" value="$gets[fieldname]" class="t_input" />
</td>
</tr>
<!--{loop $fields $fkey $fvalue}-->
<!--{if $fvalue[allowsearch]}-->
<tr>
<th>$fvalue[title]</th>
<td>
$fvalue[html]
</td>
</tr>
<!--{/if}-->
<!--{/loop}-->
<tr>
<th> </th>
<td>
<input type="hidden" name="ac" value="space" />
<input type="hidden" name="searchmode" value="1" />
<input type="submit" name="findsubmit" value="找人" class="submit" /> <input type="button" value="返回" class="submit"onclick="document.getElementById('adv_search').style.display='none';document.getElementById('m_search').style.display='block'">
</td>
</tr>
</table>
</form>
</div>
三、下载附件sousuo.css 上传到模板目录 跟common.css放在同一目录
四、更新缓存 OK
===========================无=====敌=====分=====割=====线==================================
生日、血型、群组暂时不能选者 希望哪位朋友帮忙添加下
其中群组我知道怎么添加,但是会变形 (::97::) (::97::)
我把方法说下:
打开 source/space_feed.php
找到代码:
//至少显示一个未安装应用
if(empty($_SCONFIG['feedfilternum']) || $_SCONFIG['feedfilternum']<1) $_SCONFIG['feedfilternum'] = 1;
在上面添加以下代码:
@include_once(S_ROOT.'./data/data_profield.php');
我不怎么懂PHP ,技术有限,望高人指点,感激不尽
[ 本帖最后由 No.8Chief 于 2008-10-9 08:52 编辑 ] |
|