首页 > CMS > 帝国Empire > 正文

帝国cms插件 二次开发设置随机会员头像

2024-08-28 12:26:20
字体:
来源:转载
供稿:网友

帝国CMS二次开发后的效果

帝国CMS随机会员头像功能开发步骤

1、首先把会员的“userpic”字段设置为文本类型,主要用来存头像路径。然后在新建一个“userpic2”字段,主要用来上传头像。

2、随机头像图片代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<table width="100%">
    <tr>
        <td valign="top">随机图像:</td>
        <td bgcolor='ffffff'>
            <img src='/e/template/Style/img/1.jpg' id='img2' width="180" height="180" />
        </td>
    </tr>
    <tr>
        <td colspan="2" height="20"></td>
    </tr>
    <tr>
        <td colspan="2"><a class="changeImg" href="javascript:void(0)" onclick="ChangeFace()">换一张</a>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="20"></td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <button class="editPassword-submit" type="submit" id="faceSubmit">使用头像</button>
        </td></tr>
</table>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表