iugo

topit.me 支持 username url 了

  •  
  •   iugo · Apr 4, 2011 · 5075 views
    This topic created in 5539 days ago, the information mentioned may be changed or developed.
    topit.me 是个图片分享为主的网站。我一直觉得它的“关联图片”很神奇,好像不只是通过 tags 找到相似图片那么简单。

    以前个人页面都是 userID ,现在增加了 username 。
    例如我的 http://www.topit.me/@ iugo (去掉空格)

    http://www.topit.me/@ href="/member/iugo">iugo
    这样的链接在 V2EX 中被错误解释。
    4 replies    1970-01-01 08:00:00 +08:00
    SuperOS
        1
    SuperOS  
       Apr 4, 2011
    过滤字符么?
    @<script>
    SuperOS
        2
    SuperOS  
       Apr 4, 2011
    先检查用户是否存在

    然后解析@用户

    最后解析url??这样?
    iugo
        3
    iugo  
    OP
       Apr 4, 2011
    @SuperOS 应该不会这么复杂。只是吧 @something 中的 something 加了超链接吧。
    SuperOS
        4
    SuperOS  
       Apr 4, 2011
    @iugo 我以为还要检查用户是否存在呢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
    ♥ Do have faith in what you're doing.