1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[damncomputer] Status in posts

Discussion in 'Add-on Releases [Archive]' started by Marc, Mar 6, 2011.

Thread Status:
Not open for further replies.
  1. Marc

    Marc Well-Known Member

    This is a very simple mod (and my very first one so go easy guys lol)

    Adds the post authors status underneith their avatar in each post as per screenshot.

    To unstall, upload everything in the upload directory and install the add-on contained in the zip file.

    UPDATE 1.01:
    • Added setting into options page to change the prefix "STATUS:" to whatever you wish (Thankyou to Lawrance's addon tutorial for help on this)
    • Now removes the prefix when there is no status present to tidy it up.
    UPDATE 1.0.2
    • Template and CSS now setup rather than being hard coded in PHP files
    • Prefix moved above the text to separate from the status itself
    • Truncated to a single line, showing only on hover
    UPDATE 1.0.3

    • Updated for xenforo 1.1 to show in correct locations when custom profile fields are showing
    The status shows in the post as below before hovering over

    sshot3.png

    after hovering it shows like this :)
    sshot4.png
     

    Attached Files:

  2. JVCode

    JVCode Well-Known Member

    I bet it's very relaxing with that fish tank in the computer room.
     
  3. Marc

    Marc Well-Known Member

    In process of changin it over at the moment ... I keep Malawi's at the moment and changin for marine .. Then will be relaxin ;)
     
  4. gmaister22

    gmaister22 Active Member

    Nice addon!

    btw how u did that click to resize image?
     
  5. Trombones13

    Trombones13 Well-Known Member

  6. Nasr

    Nasr Well-Known Member

    how does 140 characters look though?
     
  7. giorgino

    giorgino Well-Known Member

    How add status in the sign? :)
     
  8. Marc

    Marc Well-Known Member

    This is a good question ... Will add one and see :D. I was actually thinking of placing the text above each message in its own box but couldnt see a template hook to place it there. Will be playing around with this and creating new versions to make it better as this is a very very basic starter just to prove more to myself than anyone else that I can start somewhere :)

    You mean change the word status? This is currently hard coded, however I am looking to put this in as an admin setting in the next version along with the choice of placement.
     
    Nasr likes this.
  9. Marc

    Marc Well-Known Member

    Now updated to 1.0.1

    UPDATE 1.01:

    • Added setting into options page to change the prefix "STATUS:" to whatever you wish (Thankyou to Lawrance's addon tutorial for help on this)
    • Now removes the prefix when there is no status present to tidy it up.

    I have added a screenshot above showing 140 characters

    This has now been added as a setting in admin panel
     
    Nasr likes this.
  10. James

    James Well-Known Member

    Have you considered a marquee to keep the status limited to one line? I suppose it could work...
     
  11. Marc

    Marc Well-Known Member


    I did, however thought a marquee on every post within a topic might become a tad annoying to look at. May add it as an option in the future though.
     
  12. James

    James Well-Known Member

    Or considering XF comes with jQuery out of the box, you could apply the scrolling when hovering over the status and use text-overflow: ellipsis; to denote that there's extra characters (thus enticing the hover).
     
  13. Marc

    Marc Well-Known Member

    Ooooo .. shiny :) ... Might have a play with that at some point then
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, text-overflow: ellipsis; is very useful if you are able to use it.

    Coupled with James' suggestion, you could turn it into a tooltip on hover.
     
    Peggy, Marc and James like this.
  15. James

    James Well-Known Member

    Tooltip.. nice... I didn't think of that!
     
  16. Marc

    Marc Well-Known Member

    Now that I like the idea of :)
     
    Peggy likes this.
  17. Peggy

    Peggy Well-Known Member

    If you do it as a tooltip, I'll definitely use this.
     
  18. Marc

    Marc Well-Known Member

    Then I'll do a tooltip :) lol
     
    Peggy likes this.
  19. Peggy

    Peggy Well-Known Member

    yaayyy! [​IMG]
     
  20. borbole

    borbole Well-Known Member

    A tooltip will be a nice addition. Good work with your first mod for xenforo. Congratulations :)
     
    Peggy likes this.
Thread Status:
Not open for further replies.

Share This Page