Implemented BBCode that Displays a User's Current Name (And Reacts to Changes)

Discussion in 'Feedback & Assistance' started by Ars Nova, Apr 29, 2014.

  1. Ars Nova Just a ghost.

    Joined:
    Nov 28, 2009
    Gender:
    hungry
    Location:
    Hell 71
    2,986
    So usually when I submit one of these things I have a rough idea of whether it's actually possible, but here my coding ignorance is on full display. If I had to guess how it would work, maybe it'd be something like [userid]61191[/userid]? The idea is to always display the user's current name and make it responsive to name changes, another tool that would help game organizers and also staff I think, since they refer to users the most in site updates, hiring processes, labor credit etc.

    I'm gomen for flooding the section I just keep gETTING ALL THESE IDEAS...
     
  2. Amaury Chaser

    Joined:
    Jan 15, 2007
    Gender:
    Male
    Location:
    Ellensburg, WA
    1,694
  3. Technic☆Kitty Hmm

    Joined:
    Apr 2, 2010
    Gender:
    Male
    Location:
    Indiana, USA
    1,299
    Actually this is extremely possible however far above it may be from my pay grade. It would require custom php scripts and whatnot so it would know to grab the username currently stored on the server for the user id 'xxx'. Setting up the bbcode through the ACP wouldn't be too difficult. You'd have to have a php file and a listener to reference with the bbcode, which would be the difficult part. I'm good on html and css tricks but php/java escapes me. If I had to put an estimate on the worth of the work this would require I wouldn't go any higher than ten to twenty USD.

    I might even make this a project to force myself to learn a little php. You weren't too far off in the bbcode usage either though I think [USERID*=xxxx][/userid] would probably be the final method for using the bbcode.

    EDIT: Forgot to actually give an opinion *derp* I'd like to see this implemented on the site that way you could reference a member and it change with their username. Alternatively I'd like to see this implemented with the 'tag' feature to update with username changes.

    @Yut (Tagged you cause I was testing something, sorry >.< lol)

    EDIT AGAIN: After checking the current 'tag' bbcode [user*=user_id]username[/user*] I'd say it would be easier to modify the tag bbcode than to create a new one. Also there wouldn't be much point in creating a bbcode to reference a user when there already is one that sends alerts and creates links to their profile.

    -Periwinkle
     
    Last edited by a moderator: Jul 13, 2015
  4. Ars Nova Just a ghost.

    Joined:
    Nov 28, 2009
    Gender:
    hungry
    Location:
    Hell 71
    2,986
    Ehh Idk how I feel about that. The tag function serves its purpose well because it's meant for short-term, immediate reaction; userid code would be more for the purposes of future-proofing statements, indexes, references etc. similar to how quotes (used to? I don't think they do anymore) react to changes in the quoted user's name.

    Oh, well that answers my question. :L Yeah, similar to that. But I'm guessing from the response to that one that I shouldn't hold my breath on this.
     
  5. libregkd -

    Joined:
    Sep 30, 2006
    2,902
    As mentioned, this is technically possible to do. I saw your suggestion last night and decided to try and implement it locally on my machine. It "works" but is very buggy and resource intensive. So until I can figure a way to reduce that, I really wouldn't say "Okay yeah it works".

    I'm at school atm but I'll post more of my thoughts about it when I get home later.
     
    Last edited: Apr 30, 2014