SCLUB免費論壇申請-使用者論壇's Archiver

梅子爱阿政 發表於 2018-8-20 13:38

【请版主删除此贴】楼中楼的排序改为升序?

[i=s] 本帖最後由 梅子爱阿政 於 2019-9-1 16:41 編輯 [/i]

如题(*/ω\*)

——————————
已解决。

网雨霏霏 發表於 2018-8-20 15:15

[i=s] 本帖最後由 网雨霏霏 於 2018-8-20 15:18 編輯 [/i]

我用的就是爱秀的,效果如下:
[attach]79098[/attach]

最新的回复在最顶端
这个效果应该就是大家普遍接受的效果吧
不知道这是 升序还是降序?

梅子爱阿政 發表於 2018-8-20 15:22

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294128&ptid=34683]2#[/url] [i]网雨霏霏[/i] [/b]


    这个是降序。
    升序是最先发表的放在最前面,后面发表的在后面显示。

    能改吗??

梅子爱阿政 發表於 2018-8-20 15:23

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294128&ptid=34683]2#[/url] [i]网雨霏霏[/i] [/b]


    章鱼之家的就是升序,但是我不会代码找不出他是怎么设置的升序。{:9_374:}

网雨霏霏 發表於 2018-8-20 15:28

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294129&ptid=34683]3#[/url] [i]梅子爱阿政[/i] [/b]


    哦?我觉得是可以改的,等待无界来说明吧。
因为他将爱秀社区封印了,不一定能找到源码,我这里贴粗来:
应该是编辑viewthread_node模版的吧,只贴这一块的代码

【一】查找:<td class="postcontent postbottom">
在其下面添加:[code]<!-- 仿X3点评 -->
{eval $q2=$db->query("SELECT * FROM zy_postinner WHERE pid = " . $post[pid] . " ORDER BY ptid DESC LIMIT 5");}
{eval $zyhomeshow=Array();}
{eval $i=0;}
{eval while ($asdfgh=$db->fetch_array($q2)) $zyhomeshow[$i++] = $asdfgh ; }
<div id="zypi_$post[pid]" class="zypi">
<div class="zypi_show">
<!--{if ($post[zy_postinner] != 0)}-->
        <h3><span class="icon_ring vm"></span>点评</h3>
<!--{/if}-->
        <!--{loop $zyhomeshow $thing}-->
                <div id="zypostinner_<!--{echo $thing[ptid]}-->" class="zypi_in" onmouseover="zypi_showover(this)" onmouseout="zypi_showout(this)" style="clear: left;
padding: 0.5em 0;">
                        <div class="zypi_in1"><img src="uc_server/avatar.php?uid=<!--{echo $thing[uid]}-->&size=small" /></div>
                        <div class="zypi_in2">


<p class="zypi_in2_in1">
<span style="float: left;">
<a href="space.php?uid=<!--{echo $thing[uid]}-->"><!--{echo $thing[name]}--></a>
  
</span>
<div style="margin-left: 100px;">
<em class="zypi_in2_in2"><!--{echo discuzcode(preg_replace("/\s?\[at\](.+?)\[\/at\]\s?/ies", "", $thing[msg]), 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0);}--></em>
  
<span style="color: #999;">{eval $postime=dgmdate("$dateformat $timeformat", $thing[time] + $timeoffset * 3600);}发表于 <!--{echo $postime;}--> {eval $lastip = $db->fetch_array($db->query("SELECT * FROM cdb_members WHERE uid=".$thing[uid]));}<!--{if $discuz_uid && $adminid >= 1}-->IP:$lastip[lastip]<!--{/if}--></span><!--{if ($thing[uid] ==$discuz_uid || $discuz_uid == 1)}--><a onclick="zypi_delete($thing[ptid],$post[pid]);" style="cursor: pointer;color:#999;">删除</a><!--{/if}--></div>
</p>


                        </div>
                        <div class="zypi_in3"></div>
                       <div class="zypi_in4"><button onclick="zypi_reply(this)">回复</button></div>
                </div>
        <!--{/loop}-->
        <div class="zypi_btmbar">
                <!--{if $post[zy_postinner]>5}--><div class="zypi_showevery"><a class="nxt" onclick="zypi_showall(this)">下一页</a></div><!--{/if}-->
<!--{if ($discuz_uid)}-->
                <div class="zypi_postbox_btn"><a href="javascript:void 0" onclick="zypi_togglebox(this)" id="gtrf_$post[pid]" style="display:none;">我也说一句</a></div>
<!--{/if}-->
        </div>
        </div>
<div class="s_clear"></div>
<div class="zypi_postbox dialog">
<div class="dialog-title" style="width: 580px!important;"></div>
<em id="return_comment" fwin="comment">点评</em>
<div style="width: 600px;  border: 1px solid;  border-color: #999 #CCC #CCC #999;margin: 35px 0 0 8px;">
<div class="bar_cm">
<div class="fpd">
<cite href="javascript:;" title="{lang e_bold}" class="tb_bold" onclick="seditor_insertunit('gtrf_$post[pid]', '[b]', '[/b]')">B</cite>
<cite href="javascript:;" title="{lang e_forecolor}"  class="tb_color" id="gtrf_$post[pid]forecolor" onclick="showColorBox(this.id, 2, 'gtrf_$post[pid]')">Color</cite>
<cite href="javascript:;" class="tb_smilies" id="gtrf_$post[pid]smilies" onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false">Smilies</cite>
<script type="text/javascript" src="forumdata/cache/smilies_var.js?{VERHASH}" reload="1"></script>
<script type="text/javascript" reload="1">smilies_show('gtrf_$post[pid]smiliesdiv', $smcols, 'gtrf_$post[pid]');</script>
</div>
</div>
</div>

<SCRIPT LANGUAGE="JavaScript">   
   function textCounter(field, countfield, maxlimit) {   
   if (field.value.length > maxlimit)  
   field.value = field.value.substring(0, maxlimit);  
   else   
   countfield.value = maxlimit - field.value.length;  
   }  
</SCRIPT>

<p>
<form name=myform action="">
<textarea name="message" cols="28" rows="5" onKeyDown="textCounter(message,remLen,80);" onKeyUp="textCounter(message,remLen,80);" id="gtrf_$post[pid]message"></textarea>
<div class="dp_shuru">您还可以输入:<input class="dp_num" name="remLen" type="text" value="80" size="5" readonly="readonly">个字符</div>
</form>
<a href="javascript:void 0" class="float_close_a" onclick="document.getElementById('gtrf_$post[pid]').click();" style="float:right;display:block!important;">X</a></p>
<p style="padding: 8px 10px;  height: 26px;border-top: 1px solid #CCC;  background: #F2F2F2;"><button class="dp_fb">发布</button><span></span><span class="zypi_ptid_hide"></span> <a href="javascript:void 0" onclick="zypi_unreply(this)" style="display:none">X</a></p>
</div>
</div>
<!-- 仿X3点评end --> [/code]【二】查找:
<!--{if $allowpostreply}-->
在其上面添加:[code]<!--{if $discuz_uid}--><a class="zypi_postbox_btn cmmnt" href="javascript:;" onclick="document.getElementById('gtrf_$post[pid]').click();">点评</a><!--{/if}-->[/code]

网雨霏霏 發表於 2018-8-20 15:29

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294130&ptid=34683]4#[/url] [i]梅子爱阿政[/i] [/b]


    纳尼?  我去看看

网雨霏霏 發表於 2018-8-20 16:05

头大如斗,毫无所获
还是等无界来吧{:9_392:}

梅子爱阿政 發表於 2018-8-20 16:10

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294131&ptid=34683]5#[/url] [i]网雨霏霏[/i] [/b]


    源码我有的,就是不知道怎么改。

梅子爱阿政 發表於 2018-8-20 16:11

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294133&ptid=34683]7#[/url] [i]网雨霏霏[/i] [/b]


    好吧╮(╯-╰)╭

网雨霏霏 發表於 2018-8-20 16:40

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294134&ptid=34683]8#[/url] [i]梅子爱阿政[/i] [/b]


    我的意思是给无界看的。{:9_403:}

梅子爱阿政 發表於 2018-8-20 16:41

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294136&ptid=34683]10#[/url] [i]网雨霏霏[/i] [/b]


    {:9_384:}好吧,理解错了

macheng 發表於 2018-8-20 19:05

我第一次看到这个代码,你们应该还有很多好的代码,能分享出来吗?

梅子爱阿政 發表於 2018-8-20 19:18

楼中楼是在章鱼之家得到的,他那里也有其他插件,你可以去看看。
[url]http://zyhome.66rt.com/[/url] 建议用火狐浏览器打开

OOCN论坛也有好代码:[url]http://oocn.258club.com/[/url]

美化的点评插件是爱秀论坛,[url]http://tlb.258club.com/index.php[/url]  现在已经可以访问了。

梅子爱阿政 發表於 2018-8-20 19:19

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=294139&ptid=34683]12#[/url] [i]macheng[/i] [/b]


    忘了选择回复你,你看看我楼上发的链接就可以了

macheng 發表於 2018-8-20 20:10

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294141&ptid=34683]14#[/url] [i]梅子爱阿政[/i] [/b]


    感谢你的及时提醒

bossll 發表於 2018-8-20 20:12

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294139&ptid=34683]12#[/url] [i]macheng[/i] [/b]


    請問會員妳要什麼樣代碼呢?,

macheng 發表於 2018-8-20 20:21

[i=s] 本帖最後由 macheng 於 2018-8-20 20:24 編輯 [/i]

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294143&ptid=34683]16#[/url] [i]bossll[/i] [/b]


    home页,瀑布流,版主大人你可有?

之前5d6d见过,有论坛与home页之间切换的教学,以及免费论坛home页的制作
可能我要的东西太深奥了。

bossll 發表於 2018-8-20 20:25

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294144&ptid=34683]17#[/url] [i]macheng[/i] [/b]


    妳好。
有阿
會員想要此代碼
妳發短訊息告訴妳?

macheng 發表於 2018-8-21 07:54

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294145&ptid=34683]18#[/url] [i]bossll[/i] [/b]


    请问版主大人,我要发短信息告诉谁?

無名. 發表於 2018-8-21 08:37

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=294152&ptid=34683]19#[/url] [i]macheng[/i] [/b]

他是叫你发短讯息给他,他就会告诉你。

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.