如何以其他方式设置 twittertime

发布于 2024-09-30 22:42:33 字数 355 浏览 0 评论 0原文

有人为 e107 编写了一个 Twitter 插件。 在管理部分中,可以更改 HTML 模板(在每个 li 元素中使用)

现在标准设置为:

%text% <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>

我的问题是,这会在时间线中生成一个时间:

我的推文 bla bla bla 11 月 2 日晚上 8:35

我希望看到的是: 我的推文 bla bla bla 10 分钟前(或 2 天前等)

是否有其他时间代码而不是使用 %time% ?

Someone wrote a twitter plugin for e107.
In the admin part there is a possibility to change the HTML template (use within each li element)

Now standard this is set to:

%text% <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>

My problem is that this generates a time in the timeline of:

My tweet bla bla bla
8:35 PM Nov 2nd

I would like to see this as:
My tweet bla bla bla
10 minutes ago (or 2 days ago, etc)

Is there another time code for this in stead of using %time% ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阳光的暖冬 2024-10-07 22:42:33

需要对插件进行调整才能更改 %time% 的功能。

以下链接上的 NiceTime 函数将是您想要添加的内容... http ://manas.tungare.name/software/twitter-php-script/

A tweak to the plugin would be needed to change the functionality of the %time%.

The niceTime function on the following link would be what you would want to include add... http://manas.tungare.name/software/twitter-php-script/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文