Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

This is a discussion on An additional idea for the Forum within the Chrome Central section, part of the Chrome Forum News category: Alright, thanks !...


  1. #21
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    Alright, thanks !

  2. #22
    Stamga's Avatar
    Stamga is offline Super Moderator/Designer
    Join Date
    Mar 2009
    Location
    Qc, Canada
    Posts
    601

    Default

    That's gonna be a pretty cool & useful feature...


  3. #23
    sweetfunny is offline Member
    Join Date
    Dec 2008
    Posts
    11

    Default

    Sorry i haven't been back, i'm not well and on the verge of deciding if i should take myself to hospital. To be honest i think i should be there, but i'm scared of what will happen.

    Anyhow i have done this and i can activate it this second but before i do, there's two ways this can be done both with up sides and down sides.

    The first way is like Mozillazine, and display the info in the signature area.

    This will require adding a table to MySql to store the useragents. Looking to the future, this table will get large and it will require one extra database query to look that info up on each pageload and doing a SELECT from 'useragents' on a table with a million records and pulling 10 entries from it (one for each post in the thread) will incur some overhead. Also when upgrading vB in the future, care must be taken with any DB schema changes.

    I know Chrome has had some resource spikes, so the other way is insert it in the already existing post table, this will incur zero overhead and no extra queries because this happens already when a post is displayed. Also the database needs no changes. The downside is, if a user edits their post they are editing the contents of the post table and so the useragent info is available to edit as well.

    So what does Chrome and everyone else think? I do think the sensible way is the second option, going forward it will be pain free and won't slow pageloads as the forum gets larger. There's really no reason for users to intentionally go back and edit their posts to change the useragent when the info is there to help.

    The other thing is, printing the exact useragent will result in something like this:

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
    That's mine because i'm using Firefox right now. I'm thinking a lot of the string isn't really needed, i could rewrite it to:

    Posted with: Firefox 3.0.11

    So that's the other thing i could do to keep it simple, but that's just an option.

    So before i click the "Do it" button and send the change live, what does everything think?

  4. #24
    Luc VN's Avatar
    Luc VN is offline Senior Member
    Join Date
    Sep 2008
    Location
    Belgium - Europe
    Posts
    758

    Default

    My two cent:
    This extra feature should not be at the cost of speed or require extra resources.
    I like the truncated string although other info like operating system should be retained too...

    PS: I hope that you get better soon!

  5. #25
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    I'd think it could be in the post table in a different column, so that it wouldn't be part of the post text, and wouldn't be available to editing. O.o And still be no overhead.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  6. #26
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    Sorry i haven't been back, i'm not well and on the verge of deciding if i should take myself to hospital. To be honest i think i should be there, but i'm scared of what will happen.
    .. Take care of yourself !

    At first I thought it would be better to link the user to a browser. However, a single user might change browser overtime so putting this information in the post table seems to make more sense.

  7. #27
    PeterR is offline Junior Member
    Join Date
    Jun 2009
    Posts
    5

    Thumbs up

    My 2 cents:

    A needed and wonderful idea! For this, I think a quick and dirty solution is best. We could "what if" this issue forever and there is little to be gained by creating new SQL table or adding a new field. It simply does not justify the extra work. If it were me, I would
    1. Simply grab either user_agent string from PHP or from JavaScript, whichever is easier to edit based on the entry form itself, and append it in the end of the text field upon the final submit()/database entry.
    2. Set the font size to 1 (no reason to make it big as normal text)
    3. Include the whole string, since it does have OS info as well, which could be useful.

  8. #28
    pcki11's Avatar
    pcki11 is offline Senior Member
    Join Date
    Jun 2009
    Posts
    214

    Default

    if each post is a simple string, then there is an option to make useragent not editable.
    if we insert <hr> tag (for example) before the useragent line, then when editing we could truncate the post just up to the <hr>.
    on the other hand, if somebody is posting some code containing <hr>, would it actually be <hr>? or is it something like & # 60;hr& # 62;? if the first one is right, then my idea is useless =D

    ps. couldnt post this: & # 60; without blanks even in [ code ], so i guess my idea isnt so useless after all =)
    Last edited by pcki11; 07-15-2009 at 07:17 PM.

  9. #29
    Luc VN's Avatar
    Luc VN is offline Senior Member
    Join Date
    Sep 2008
    Location
    Belgium - Europe
    Posts
    758

    Default

    Thanks for reviving this thread
    Could SweetFunny have a look at this?

  10. #30
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Don't see why it can't just be its own column and we can avoid all the post data mess..not that hard to add a new column to a table and put a check in for null data for backwards compatibility..
    Or heck just put the new column in the user table and get it from there when generating the post.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Forum Rules?
    By devilslackey in forum Chrome Central
    Replies: 8
    Last Post: 01-29-2011, 08:10 AM
  2. Forum request...
    By devilslackey in forum General Chat
    Replies: 7
    Last Post: 06-16-2009, 03:31 PM
  3. favicon of this forum
    By sulasno in forum Chrome Central
    Replies: 12
    Last Post: 06-11-2009, 08:35 PM
  4. I had an idea for Chrome…
    By Cyruscosmo in forum Chrome Talk
    Replies: 6
    Last Post: 04-30-2009, 07:52 PM
  5. Idea about features?
    By Paul Weinstock in forum Chrome Talk
    Replies: 0
    Last Post: 10-06-2008, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •