首页 技术·教程

收集不易,请礼貌白嫖,白嫖成功请留言!

效果展示



整整150个表情包!

AC娘添加教程

  • 从乔治のCloud下载
  • 修改/usr/themes/Cuteen/static/emoji/emoji.json
  • 修改/usr/themes/Cuteen/inc/ctx.php
  • 将ac文件夹全部放入/usr/theme/Cuteen/static/emoji/
  • 在主题设置里找到➡自定义设置➡自定义样式Css新增以下代码:

    /* ac娘表情包的样式 */
       .emotion-ac{width:50px;}
  • 完成以上步骤就可以了~敬请使用吧!

问题解决

  • 请确定你的emoji.json填写是否正确
  • 4.0主题新增缓存策略ServiceWork请检查是否有缓存
  • 有可能是你的浏览器缓存,请清空缓存或者打开无痕模

下载

此处内容需要评论回复后方可阅读

emoji.json修改

在emoji.json中加入代码

 },
    "AC娘": {
        "type": "image",
        "container":[

        {

          "icon":"emoji/ac/01.png",
          "data":"",
          "text":"01"

        },{

          "icon":"emoji/ac/02.png",
          "data":"",
          "text":"02"

        },{

          "icon":"emoji/ac/03.png",
          "data":"",
          "text":"03"

        },{

          "icon":"emoji/ac/04.png",
          "data":"",
          "text":"04"

        },{

          "icon":"emoji/ac/05.png",
          "data":"",
          "text":"05"

        },{

          "icon":"emoji/ac/06.png",
          "data":"",
          "text":"06"

        },{

          "icon":"emoji/ac/07.png",
          "data":"",
          "text":"07"

        },{

          "icon":"emoji/ac/08.png",
          "data":"",
          "text":"08"

        },{

          "icon":"emoji/ac/09.png",
          "data":"",
          "text":"09"

        },{

          "icon":"emoji/ac/010.png",
          "data":"",
          "text":"010"

        },{

          "icon":"emoji/ac/011.png",
          "data":"",
          "text":"011"

        },{

          "icon":"emoji/ac/012.png",
          "data":"",
          "text":"012"

        },{

          "icon":"emoji/ac/013.png",
          "data":"",
          "text":"013"

        },{

          "icon":"emoji/ac/014.png",
          "data":"",
          "text":"014"

        },{

          "icon":"emoji/ac/015.png",
          "data":"",
          "text":"015"

        },{

          "icon":"emoji/ac/016.png",
          "data":"",
          "text":"016"

        },{

          "icon":"emoji/ac/017.png",
          "data":"",
          "text":"017"

        },{

          "icon":"emoji/ac/018.png",
          "data":"",
          "text":"018"

        },{

          "icon":"emoji/ac/019.png",
          "data":"",
          "text":"019"

        },{

          "icon":"emoji/ac/020.png",
          "data":"",
          "text":"020"

        },{

          "icon":"emoji/ac/021.png",
          "data":"",
          "text":"021"

        },{

          "icon":"emoji/ac/022.png",
          "data":"",
          "text":"022"

        },{

          "icon":"emoji/ac/023.png",
          "data":"",
          "text":"023"

        },{

          "icon":"emoji/ac/024.png",
          "data":"",
          "text":"024"

        },{

          "icon":"emoji/ac/025.png",
          "data":"",
          "text":"025"

        },{

          "icon":"emoji/ac/026.png",
          "data":"",
          "text":"026"

        },{

          "icon":"emoji/ac/027.png",
          "data":"",
          "text":"027"

        },{

          "icon":"emoji/ac/028.png",
          "data":"",
          "text":"028"

        },{

          "icon":"emoji/ac/029.png",
          "data":"",
          "text":"029"

        },{

          "icon":"emoji/ac/030.png",
          "data":"",
          "text":"030"

        },{

          "icon":"emoji/ac/031.png",
          "data":"",
          "text":"031"

        },{

          "icon":"emoji/ac/032.png",
          "data":"",
          "text":"032"

        },{

          "icon":"emoji/ac/033.png",
          "data":"",
          "text":"033"

        },{

          "icon":"emoji/ac/034.png",
          "data":"",
          "text":"034"

        },{

          "icon":"emoji/ac/035.png",
          "data":"",
          "text":"035"

        },{

          "icon":"emoji/ac/036.png",
          "data":"",
          "text":"036"

        },{

          "icon":"emoji/ac/037.png",
          "data":"",
          "text":"037"

        },{

          "icon":"emoji/ac/038.png",
          "data":"",
          "text":"038"

        },{

          "icon":"emoji/ac/039.png",
          "data":"",
          "text":"039"

        },{

          "icon":"emoji/ac/040.png",
          "data":"",
          "text":"040"

        },{

          "icon":"emoji/ac/041.png",
          "data":"",
          "text":"041"

        },{

          "icon":"emoji/ac/042.png",
          "data":"",
          "text":"042"

        },{

          "icon":"emoji/ac/043.png",
          "data":"",
          "text":"043"

        },{

          "icon":"emoji/ac/044.png",
          "data":"",
          "text":"044"

        },{

          "icon":"emoji/ac/045.png",
          "data":"",
          "text":"045"

        },{

          "icon":"emoji/ac/046.png",
          "data":"",
          "text":"046"

        },{

          "icon":"emoji/ac/047.png",
          "data":"",
          "text":"047"

        },{

          "icon":"emoji/ac/048.png",
          "data":"",
          "text":"048"

        },{

          "icon":"emoji/ac/049.png",
          "data":"",
          "text":"049"

        },{

          "icon":"emoji/ac/050.png",
          "data":"",
          "text":"050"

        },{

          "icon":"emoji/ac/051.png",
          "data":"",
          "text":"051"

        },{

          "icon":"emoji/ac/052.png",
          "data":"",
          "text":"052"

        },{

          "icon":"emoji/ac/053.png",
          "data":"",
          "text":"053"

        },{

          "icon":"emoji/ac/054.png",
          "data":"",
          "text":"054"

        },{

          "icon":"emoji/ac/055.png",
          "data":"",
          "text":"055"

        },{

          "icon":"emoji/ac/056.png",
          "data":"",
          "text":"056"

        },{

          "icon":"emoji/ac/057.png",
          "data":"",
          "text":"057"

        },{

          "icon":"emoji/ac/058.png",
          "data":"",
          "text":"058"

        },{

          "icon":"emoji/ac/059.png",
          "data":"",
          "text":"059"

        },{

          "icon":"emoji/ac/060.png",
          "data":"",
          "text":"060"

        },{

          "icon":"emoji/ac/061.png",
          "data":"",
          "text":"061"

        },{

          "icon":"emoji/ac/062.png",
          "data":"",
          "text":"062"

        },{

          "icon":"emoji/ac/063.png",
          "data":"",
          "text":"063"

        },{

          "icon":"emoji/ac/064.png",
          "data":"",
          "text":"064"

        },{

          "icon":"emoji/ac/065.png",
          "data":"",
          "text":"065"

        },{

          "icon":"emoji/ac/066.png",
          "data":"",
          "text":"066"

        },{

          "icon":"emoji/ac/067.png",
          "data":"",
          "text":"067"

        },{

          "icon":"emoji/ac/068.png",
          "data":"",
          "text":"068"

        },{

          "icon":"emoji/ac/069.png",
          "data":"",
          "text":"069"

        },{

          "icon":"emoji/ac/070.png",
          "data":"",
          "text":"070"

        },{

          "icon":"emoji/ac/071.png",
          "data":"",
          "text":"071"

        },{

          "icon":"emoji/ac/072.png",
          "data":"",
          "text":"072"

        },{

          "icon":"emoji/ac/073.png",
          "data":"",
          "text":"073"

        },{

          "icon":"emoji/ac/074.png",
          "data":"",
          "text":"074"

        },{

          "icon":"emoji/ac/075.png",
          "data":"",
          "text":"075"

        },{

          "icon":"emoji/ac/076.png",
          "data":"",
          "text":"076"

        },{

          "icon":"emoji/ac/077.png",
          "data":"",
          "text":"077"

        },{

          "icon":"emoji/ac/078.png",
          "data":"",
          "text":"078"

        },{

          "icon":"emoji/ac/079.png",
          "data":"",
          "text":"079"

        },{

          "icon":"emoji/ac/080.png",
          "data":"",
          "text":"080"

        },{

          "icon":"emoji/ac/081.png",
          "data":"",
          "text":"081"

        },{

          "icon":"emoji/ac/082.png",
          "data":"",
          "text":"082"

        },{

          "icon":"emoji/ac/083.png",
          "data":"",
          "text":"083"

        },{

          "icon":"emoji/ac/084.png",
          "data":"",
          "text":"084"

        },{

          "icon":"emoji/ac/085.png",
          "data":"",
          "text":"085"

        },{

          "icon":"emoji/ac/086.png",
          "data":"",
          "text":"086"

        },{

          "icon":"emoji/ac/087.png",
          "data":"",
          "text":"087"

        },{

          "icon":"emoji/ac/088.png",
          "data":"",
          "text":"088"

        },{

          "icon":"emoji/ac/089.png",
          "data":"",
          "text":"089"

        },{

          "icon":"emoji/ac/090.png",
          "data":"",
          "text":"090"

        },{

          "icon":"emoji/ac/091.png",
          "data":"",
          "text":"091"

        },{

          "icon":"emoji/ac/092.png",
          "data":"",
          "text":"092"

        },{

          "icon":"emoji/ac/093.png",
          "data":"",
          "text":"093"

        },{

          "icon":"emoji/ac/094.png",
          "data":"",
          "text":"094"

        },{

          "icon":"emoji/ac/095.png",
          "data":"",
          "text":"095"

        },{

          "icon":"emoji/ac/096.png",
          "data":"",
          "text":"096"

        },{

          "icon":"emoji/ac/097.png",
          "data":"",
          "text":"097"

        },{

          "icon":"emoji/ac/098.png",
          "data":"",
          "text":"098"

        },{

          "icon":"emoji/ac/099.png",
          "data":"",
          "text":"099"

        },{

          "icon":"emoji/ac/0100.png",
          "data":"",
          "text":"0100"

        },{

          "icon":"emoji/ac/0101.png",
          "data":"",
          "text":"0101"

        },{

          "icon":"emoji/ac/0102.png",
          "data":"",
          "text":"0102"

        },{

          "icon":"emoji/ac/0103.png",
          "data":"",
          "text":"0103"

        },{

          "icon":"emoji/ac/0104.png",
          "data":"",
          "text":"0104"

        },{

          "icon":"emoji/ac/0105.png",
          "data":"",
          "text":"0105"

        },{

          "icon":"emoji/ac/0106.png",
          "data":"",
          "text":"0106"

        },{

          "icon":"emoji/ac/0107.png",
          "data":"",
          "text":"0107"

        },{

          "icon":"emoji/ac/0108.png",
          "data":"",
          "text":"0108"

        },{

          "icon":"emoji/ac/0109.png",
          "data":"",
          "text":"0109"

        },{

          "icon":"emoji/ac/0110.png",
          "data":"",
          "text":"0110"

        },{

          "icon":"emoji/ac/0111.png",
          "data":"",
          "text":"0111"

        },{

          "icon":"emoji/ac/0112.png",
          "data":"",
          "text":"0112"

        },{

          "icon":"emoji/ac/0113.png",
          "data":"",
          "text":"0113"

        },{

          "icon":"emoji/ac/0114.png",
          "data":"",
          "text":"0114"

        },{

          "icon":"emoji/ac/0115.png",
          "data":"",
          "text":"0115"

        },{

          "icon":"emoji/ac/0116.png",
          "data":"",
          "text":"0116"

        },{

          "icon":"emoji/ac/0117.png",
          "data":"",
          "text":"0117"

        },{

          "icon":"emoji/ac/0118.png",
          "data":"",
          "text":"0118"

        },{

          "icon":"emoji/ac/0119.png",
          "data":"",
          "text":"0119"

        },{

          "icon":"emoji/ac/0120.png",
          "data":"",
          "text":"0120"

        },{

          "icon":"emoji/ac/0121.png",
          "data":"",
          "text":"0121"

        },{

          "icon":"emoji/ac/0122.png",
          "data":"",
          "text":"0122"

        },{

          "icon":"emoji/ac/0123.png",
          "data":"",
          "text":"0123"

        },{

          "icon":"emoji/ac/0124.png",
          "data":"",
          "text":"0124"

        },{

          "icon":"emoji/ac/0125.png",
          "data":"",
          "text":"0125"

        },{

          "icon":"emoji/ac/0126.png",
          "data":"",
          "text":"0126"

        },{

          "icon":"emoji/ac/0127.png",
          "data":"",
          "text":"0127"

        },{

          "icon":"emoji/ac/0128.png",
          "data":"",
          "text":"0128"

        },{

          "icon":"emoji/ac/0129.png",
          "data":"",
          "text":"0129"

        },{

          "icon":"emoji/ac/0130.png",
          "data":"",
          "text":"0130"

        },{

          "icon":"emoji/ac/0131.png",
          "data":"",
          "text":"0131"

        },{

          "icon":"emoji/ac/0132.png",
          "data":"",
          "text":"0132"

        },{

          "icon":"emoji/ac/0133.png",
          "data":"",
          "text":"0133"

        },{

          "icon":"emoji/ac/0134.png",
          "data":"",
          "text":"0134"

        },{

          "icon":"emoji/ac/0135.png",
          "data":"",
          "text":"0135"

        },{

          "icon":"emoji/ac/0136.png",
          "data":"",
          "text":"0136"

        },{

          "icon":"emoji/ac/0137.png",
          "data":"",
          "text":"0137"

        },{

          "icon":"emoji/ac/0138.png",
          "data":"",
          "text":"0138"

        },{

          "icon":"emoji/ac/0139.png",
          "data":"",
          "text":"0139"

        },{

          "icon":"emoji/ac/0140.png",
          "data":"",
          "text":"0140"

        },{

          "icon":"emoji/ac/0141.png",
          "data":"",
          "text":"0141"

        },{

          "icon":"emoji/ac/0142.png",
          "data":"",
          "text":"0142"

        },{

          "icon":"emoji/ac/0143.png",
          "data":"",
          "text":"0143"

        },{

          "icon":"emoji/ac/0144.png",
          "data":"",
          "text":"0144"

        },{

          "icon":"emoji/ac/0145.png",
          "data":"",
          "text":"0145"

        },{

          "icon":"emoji/ac/0146.png",
          "data":"",
          "text":"0146"

        },{

          "icon":"emoji/ac/0147.png",
          "data":"",
          "text":"0147"

        },{

          "icon":"emoji/ac/0148.png",
          "data":"",
          "text":"0148"

        },{

          "icon":"emoji/ac/0149.png",
          "data":"",
          "text":"0149"

        },{

          "icon":"emoji/ac/0150.png",
          "data":"",
          "text":"0150"

        }

    ]

ctx.php

在大概600行左右添加表情解析,代码如下:

$content = preg_replace_callback(
            '/\:\:\(\s*(01|02|03|04|05|06|07|08|09|010|011|012|013|014|015|016|017|018|019|020|021|022|023|024|025|026|027|028|029|030|031|032|033|034|035|036|037|038|039|040|041|042|043|044|045|046|047|048|049|050|051|052|053|054|055|056|057|058|059|060|061|062|063|064|065|066|067|068|069|070|071|072|073|074|075|076|077|078|079|080|081|082|083|084|085|086|087|088|089|090|091|092|093|094|095|096|097|098|099|0100|0101|0102|0103|0104|0105|0106|0107|0108|0109|0110|0111|0112|0113|0114|0115|0116|0117|0118|0119|0120|0121|0122|0123|0124|0125|0126|0127|0128|0129|0130|0131|0132|0133|0134|0135|0136|0137|0138|0139|0140|0141|0142|0143|0144|0145|0146|0147|0148|0149|0150)\s*\)/is',
            array('Ctx','ParseAc'),
            $content
        );

修改完对照下!

在大概619行左右添加表情回调函数,代码如下:

    //AC娘表情回调函数
    private static function ParseAc($match)
    {
        return '<img class="emoji" src="' . StaticPath . '/emoji/ac/' . str_replace('%', '',urldecode($match[1])) . '.png">';
    }

修改完对照下!

修改完成,注意清除缓存!




文章评论

    李太白 访客ChromeAndroid
    18天 前   回复

      乔治 站长ChromeWindows
      18天 前   回复

    南瓜奶酪 访客ChromeWindows
    18天 前   回复

      乔治 站长ChromeWindows
      18天 前   回复

    乔治 站长ChromeWindows
    2021-02-21 0:04   回复

    小李 访客ChromeWindows
    2021-02-20 13:20   回复

      乔治 站长SafariMac
      2021-02-20 13:54   回复

    妃妃 访客ChromeWindows
    2021-02-19 15:45   回复

      乔治 站长ChromeWindows
      2021-02-19 17:20   回复

    墨染 访客ChromeWindows
    2021-02-19 13:47   回复

      乔治 站长ChromeWindows
      2021-02-19 14:26   回复

    猫狗鼠鱼 访客ChromeWindows
    2021-02-12 20:57   回复

    好诶!!!!!

      乔治 站长ChromeWindows
      2021-02-12 20:58   回复

    Roaing 访客ChromeWindows
    2021-01-21 13:48   回复

      乔治 站长SafariMac
      2021-01-21 13:53   回复

    抑尘 访客ChromeWindows
    2021-01-21 9:20   回复

    没显示,再试一次

      乔治 站长ChromeWindows
      2021-01-21 13:22   回复

      现在呢?

    予澈 访客ChromeWindows
    2021-01-21 9:18   回复

      乔治 站长ChromeWindows
      2021-01-21 13:21   回复

目录