繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
標題:
[問題]
各大坛主 各大版主 2026大家新年好
[打印本頁]
作者:
huaekin
時間:
3 天前 11:33
標題:
各大坛主 各大版主 2026大家新年好
下載
(4.73 KB)
3 天前 11:32
我这段代码不显示人数
在原代码上修改 怎么都不显示
<div id="tongji">
<p class="chart"><em class="tj">{lang index_today}:13</em><em>$todayposts</em><span class="pipe">|</span><em class="tj">{lang index_yesterday}:21</em><em>$postdata[0]</em><span class="pipe">|</span><em class="tj">{lang index_posts}:1</em><em>$posts</em><span class="pipe">|</span><em class="tj">会员:</em> <em>{eval $xunirenshu=$totalmembers *468;}$xunirenshu</em><span class="pipe">|</span><em class="tj">欢迎新会员:</em><em><a href="space.php?username=$memberenc" target="_blank" class="xi2">{eval request('仿火狼X_新注册会员');}</a></em></p>
</div>
複製代碼
谢谢各位大神的解答
私人小站
http://tymir3.gain.tw
/
圖片附件:
QQ图片20260809112204.png
(
3 天前 11:32
, 4.73 KB) / 下載次數 1
http://joinbbs.net/discuz/attachment.php?aid=81601&k=0b76a2f27487d99f8251fb7fb0cafe35&t=1786467513&sid=EFGHI4
作者:
4rphotoclub
時間:
3 天前 14:23
可以用線上代碼測試器來測試代碼有否出錯
https://www.ifreesite.com/runcode.htm
作者:
4rphotoclub
時間:
3 天前 14:25
改用其他瀏覽器再試試吧!
作者:
huaekin
時間:
3 天前 16:47
下載
(24.7 KB)
3 天前 16:46
我刚刚用AI写了一下 可以了 谢谢
<div id="tongji">
<p class="chart">
<em class="tj">{lang index_today}:13</em><em>$todayposts</em><span class="pipe">|</span>
<em class="tj">{lang index_yesterday}:21</em><em>$postdata[0]</em><span class="pipe">|</span>
<em class="tj">{lang index_posts}:1</em><em>$posts</em><span class="pipe">|</span>
<em class="tj">会员:</em> <em>{eval $xunirenshu=$totalmembers *468;}$xunirenshu</em><span class="pipe">|</span>
<!-- 以下为替换后的“在线人数”部分,使用动态 AJAX 更新 -->
<em class="tj">在线人数:</em>
<a href='http://tymir3.gain.tw/member.php?action=online' target='_blank'>
<font color="#A800E9">目前在线: </font>
<font id="zxrs" color="red"></font>
<font color="#51A482">人</font>
</a>
<span class="pipe">|</span>
<em class="tj">欢迎新会员:</em>
<em><a href="space.php?username=$memberenc" target="_blank" class="xi2">{eval request('仿火狼X_新注册会员');}</a></em>
</p>
</div>
<!-- 在页面底部(或紧接其后)添加 AJAX 刷新脚本 -->
<script type="text/javascript">
// 如果您的系统已全局定义 ajaxget 函数(如 Discuz!),直接调用;否则需自行实现
ajaxget('misc.php?action=getonlines&inajax=1', 'zxrs');
</script>
複製代碼
圖片附件:
QQ图片20260809164601.png
(
3 天前 16:46
, 24.7 KB) / 下載次數 3
http://joinbbs.net/discuz/attachment.php?aid=81602&k=b2b4c024085e67a470b07f3eeca246d4&t=1786467513&sid=EFGHI4
作者:
huaekin
時間:
3 天前 16:57
放在huolangX模板
<div id="huolang">
下面即可
作者:
huaekin
時間:
3 天前 17:00
精简优化版
<div id="tongji">
<p class="chart">
<em class="tj">{lang index_today}:13</em><em>$todayposts</em><span class="pipe">|</span>
<em class="tj">{lang index_yesterday}:21</em><em>$postdata[0]</em><span class="pipe">|</span>
<em class="tj">{lang index_posts}:1</em><em>$posts</em><span class="pipe">|</span>
<em class="tj">会员:</em> <em>{eval $xunirenshu=$totalmembers *468;}$xunirenshu</em><span class="pipe">|</span>
<em class="tj">在线人数:</em>
<a href='http://tymir3.gain.tw/member.php?action=online' target='_blank'>
<font color="#A800E9">目前在线: </font>
<font id="zxrs" color="red"></font>
<font color="#51A482">人</font>
</a>
<span class="pipe">|</span>
<em class="tj">欢迎新会员:</em>
<em><a href="space.php?username=$memberenc" target="_blank" class="xi2">{eval request('仿火狼X_新注册会员');}</a></em>
</p>
</div>
<script type="text/javascript">
ajaxget('misc.php?action=getonlines&inajax=1', 'zxrs');
</script>
複製代碼
作者:
huaekin
時間:
前天 10:50
把这段
<em class="tj">在线人数:</em>
代码中的
在线人数:
删除
歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://joinbbs.net/discuz/)
Powered by Discuz! 7.2