预览思路查库,typecho_comments表,这次我没有用之前的 push 方式来获取Winget对象,继承了Widget_Abstract_Comments类,可以直接使用Typecho_Widget::widget()方法来调用对象,比较符合Typecho的设计思路。重写了翻页代码,完美支持翻页。核心代码此处内容已隐藏,回复后(需要填写邮箱)可见调用方式和平常的Widget_Abst...
spzac主题免费版默认就支持获取QQ头像,而且很久之前“狗花”说这个头像获取泄露他Q了,我一直懒癌发作没有修正这个问题,前两天修好了,分享出来。原理原来的QQ头像获取链接是https://s.p.qq.com/pub/get_face?img_type=3&uin=扣扣号最近发现可以通过这个链接来获取QQ头像https://q1.qlogo.cn/g?b=qq&k=k值&a...
修改Spzac主题时发现侧边栏滚动固定不起作用了,看了一下Console也没输出,证明 window.onscroll 事件没有生效,排查了很久。一开始以为JS代码拼错了,但是看了半天没有问题。。。 $(window).on('scroll', function () { var t = $(document).scrollTop(); var r = ...
先看看预览。首先加入一个自由显示隐藏打赏区域的按钮<?php if (isPluginEnabled('TePass')) : ?> <a class="btn btn-warning" onclick="show_reward()" href="javascript:void(0);"><?p...
有时发表评论需要添加图片,Typecho本身支持在评论中开启嵌入图片,但是还需要手工补全<img src= />来实现图片插入,比较麻烦。其实可以学习 v2ex 自动把图片后缀的文件自动转换为图片链接。首先在functions.php中添加转换函数function parseComment($comment) { $size = auto; $comment = pr...
修改主题的时候发现 clone 的元素 hover 事件不生效,百度才知道原来要用 on 来绑定事件才能应用到JS生成DOM元素上。MD,我还检查了半天返现也没有拼写错误,就是移动菜单弹不出来但是查了查发现 on 并没有 hover 事件,好吧只能用 mouseover、moseleave。$("#navbar .menu-item").on('mouseover mou...
Handsome主题有的侧边栏显示最后更新那个功能,换成了自己主题以后只能自己实现了,不过也不难/** * 获取站点最后更新时间 * * @return null * @date 2020-05-01 */ public function lastUpdate() { $db = Typecho_Db::get(); $create = $db->fetchR...
需求其实这个功能是因为我要给我的 Accessories 的操作加个操作结果提醒。代码代码是直接从Typecho源码里扣的。把下面的代码放到你的JS里。/** 消息提醒 来自 Typecho common-js.php */ function notice(noticeText, noticeType) { var head = $('.typecho-head-nav'), ...
友情链接
最近评论
  1. Thiết kế phòng hát karaoke : I got this website from my pal who told me on the topic of this site and now this time I am visiting this site and
    reading very informative articles or reviews here.
  2. Lil Durk : Hello I am so grateful I found your website, I really found you by accident, while
    I was researching on Google for something else, Regardless I am here now and would just like to say
    thanks for a marvelous post and a all round exciting
    blog (I also love the theme/design), I don’t have time to read it all at the moment but I have book-marked it and also
    added your RSS feeds, so when I have time I will be back to read more, Please do keep up the superb b.
  3. Sbobet99 : Howdy thiiѕ is kinda of off tօpic but Ι was wondering if blogs use
    WYSIWYG editors or if you have to manually code with HTML.I'm starting a blog so᧐n butt have no coding skills so I wantеd to get guidаnce
    from someone with experience. Any help would be enormously аpprecіated!
  4. choithethao.tips : Undeniably believe that which you said. Your favorite
    justification seemed to be on the net the easiest thing to be aware of.
    I say to you, I certainly get irked while people consider
    worries that they plainly don't know about. You managed to
    hit the nail upon the top and also defined out the whole thing without having side-effects ,
    people can take a signal. Will likely be back to get more.Thanks
  5. https://veviewwii.tumblr.com/post/662643202115944448/ml-18s21-t2-2 : Link exchange is nothing else however it is simply placing the other
    person's web site link on your page at suitable place and other person will also do similar in support of
    you.
Top