Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormireille
    • CommentTimeAug 29th 2007 edited
     # 1
    Is anyone able to create an add-on that live refreshes the discussion list per ajax?
    something like this digg spy effect...

    i'd love it
    • CommentAuthorithcy
    • CommentTimeAug 29th 2007
     # 2
    this is a great idea, but it really belongs in the 'add-on requests' category.
    •  
      CommentAuthorVaz
    • CommentTimeAug 30th 2007
     # 3
    & Perhaps a discussion update thingy too like I've mentioned here.
    • CommentAuthormireille
    • CommentTimeAug 30th 2007
     # 4
    @itchy: category is updated

    @vaz: good idea. But it would be even cooler if the comments are shown automatically... without a hint and page reload
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 30th 2007
     # 5
    Mireille, you need some kind of hint that there are new comments otherwise you'll ignore them as already being there. Otherwise I really like this idea, it would be very slick.

    P.S. might be worth getting rid of "Add-on: " from the topic title as well ;)
  1.  # 6
    I'd like to see that to. Also maybe something like 'Bob is writing a comment' below the last comment when someone is repling.
    •  
      CommentAuthorKrak
    • CommentTimeAug 30th 2007
     # 7
    Perhaps have the refreshed discussions a different color? Or multiple colors? Like one color per 30 seconds, 60 seconds, 2 minutes etc.
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 31st 2007
     # 8
    Ooohh... pretty rainbow... (I like Krak's idea)
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 31st 2007
     # 9
    Top idea Krak :D Would also be good to be able to have a little icon (perhaps an exclamation mark !) inserted into the comment as well, just as another visual indicator that the comment is new since you initially viewed the page. These, along with the comment colours, would be cleared on refresh of the discussion.

    Question: What happens with pagination? ;)
  2.  # 10
    Nice ideas... So anyone willing to make it? ;)
    • CommentAuthorAlexL
    • CommentTimeAug 31st 2007
     # 11
    [-Stash-]: a little icon (perhaps an exclamation mark !) inserted into the comment as well, just as another visual indicator that the comment is new since you initially viewed the page
    That and flash new comments like it does when you write one (aculos effect)

    Having a rainbow of colors really isn't helping designers :D
  3.  # 12
    I personally would like to see comments alternate colors or even giving the member the option of selecting a few set colors in their account page.
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 31st 2007
     # 13
    Instead of rainbow colours, you could just vary the opacity of a specified colour (admin/theme changeable in the extension settings) over time.
    •  
      CommentAuthorVaz
    • CommentTimeSep 1st 2007
     # 14
    Well how about this:

    Let's say your at the top of a discussion and theres 2 new posts. The little notification thing pops up, you click update discussion and it just pops you down the page to where the new posts are and does the little standard flashing effect for the new posts.
    •  
      CommentAuthor[-Stash-]
    • CommentTimeSep 3rd 2007
     # 15
    But for the yellow fade thing, I quite like it. I still think the idea of an icon (perhaps achieved via CSS in the background of the comment, put there by JS, or even via a CSS class with PHP?) would be best as it should work with more styles/themes. The yellow fade looks quite hideous on some styles.

    But hey — why can't this just be an option that the admin decides upon? :)

    The notification... how about this appearing as fixed, absolutely positioned (to the browser window) CSS? That way, it will appear in the same place no matter where you are in the discussion.
    • CommentAuthorcircuit
    • CommentTimeSep 8th 2007
     # 16
    would love to see this.
    •  
      CommentAuthorjimw
    • CommentTimeSep 8th 2007
     # 17
    How about something that just refreshes the page every so many seconds, like 30?
    •  
      CommentAuthorKrak
    • CommentTimeSep 8th 2007
     # 18
    Wouldn't that cause more server traffic than just some sort of AJAX discussion refresh? But that would certainly be something easy to do.
    •  
      CommentAuthorjimw
    • CommentTimeSep 8th 2007
     # 19
    Yes, it would. You just want to reload the discussion or comment grid. Anyway, I found this little js that does this if anyone's interested. I'm taking a javascript course now and found this one in research for an assignment. It's an old script because it's checking Netscape version to determine whether to reload a noframe-version of the html file or a frame-version. It does work well. The 50 is 50 seconds to wait.

    <SCRIPT LANGUAGE="JavaScript">
    browserVer = parseInt(navigator.appVersion);
    if (browserVer >= 3) version = "n3";
    else version = "n2";
    Text = "<META HTTP-EQUIV='Refresh' CONTENT='50;URL=js_wk2_lesson.htm'>"
    Ret = "<META HTTP-EQUIV='Refresh' CONTENT='50;URL=noFrames.htm'>"
    if (version == "n3") document.write(Text);
    else document.write(Ret)
    </SCRIPT>
    •  
      CommentAuthorMax_B
    • CommentTimeSep 8th 2007
     # 20
    I have done such an ajax updater for one site (currently back in restricted access).
    Due to server overhead, a caching system is necessary. On that site, the automatic updater is in a special place of the layout, out of Vanilla theme to simplify the implementation of this cache.
    •  
      CommentAuthor[-Stash-]
    • CommentTimeSep 10th 2007
     # 21
    Certainly looking forward to something coming of this project :)
    • CommentAuthormireille
    • CommentTimeJan 3rd 2008
     # 22
    jimw, this js-solution looks like 1980.

    if vanilla would have a state of the art js library included by default like jquery or prototype, all the live checks and refreshes should be done within some hours of work...
    •  
      CommentAuthorjimw
    • CommentTimeJan 3rd 2008
     # 23
    mireille - Well, I am an old guy.
    • CommentAuthornickldavis
    • CommentTimeFeb 14th 2008
     # 24
    this would be a great add-on.... has anyone made anything that does this yet?
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 14th 2008 edited
     # 25
    I could write it as part of the Mootools suite of javascript add-ons I've done so far. Shouldn't be too difficult. What's this about a rainbow effect and exclamation marks? Surely the discussions show you when there are new comments with a little red number?

    Edit: I could make this a two-part add-on. One part would deal with the main discussions page and just perform a normal update. There's enough indication of new comments in a discussion to simply simulate a page refresh.

    On the comments page I quite like the rainbow effect. If it's added by javascript then it will automatically disappear on a discussion refresh. As for pagination, new comments will be visually just added to the bottom if you're on the last page. If you refresh it will be paginated as normal. If you're not on the first page then if a new comment's added, the pagination links at the bottom would be somehow highlighted and a hint would appear with the amount of comments that have been added so far.

    I will try to send the minimum amount of data via Ajax to reduce server overhead. What do people think is an appropriate update time? 2 minutes? Anything less would make it into a chat rather than a forum.
  4.  # 26
    would be very nice to see this addon working!

    2minutes? why don't make this an admin-defined value, so everyone is able to find his own fav. and limit?
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 14th 2008
     # 27
    Should it be user or admin defined? If user defined it could be abused to crash the host's server. Perhaps allowing the admin to specify the minimum and default update time would be best.
    •  
      CommentAuthorØ
    • CommentTimeFeb 14th 2008
     # 28
    Yay for the rainbow effect :)

    I would definitely use such an addon. Could the update time be configurable?
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 14th 2008
     # 29
    Yup, it will be user-configurable. The default value and the minimum value is only settable by a user with a role with the appropriate permission.
    •  
      CommentAuthorWanderer
    • CommentTimeFeb 14th 2008
     # 30
    Would there be so many people wanting to sit with the discussion list open waiting for it to refresh?

    Surely, if you are expecting a reply, you would get on with your life then check back every so often.

    Then there's the danger of walking away and leaving it to eat up your monthly bandwidth allowance!

    Just wondering out loud as I do a lot.
    • CommentAuthorDocValerian
    • CommentTimeFeb 14th 2008 edited
     # 31
    I only asked for admin defined, but the way you've chosen is very good!

    What a luck, I'm working for a webhosting company, so there aren't any traffic issiues :P
    •  
      CommentAuthorWanderer
    • CommentTimeFeb 14th 2008
     # 32
    Quote: DocValerianpic What a luck, I'm working for a webhosting company, so there aren't any traffic issiues :P pic

    OK for you then, what about the other poor sods?
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 15th 2008
     # 33
    Then they don't have to use it?
    •  
      CommentAuthorWanderer
    • CommentTimeFeb 15th 2008
     # 34
    They do if it's active on a forum and they either don't understand it or forget it's there.
    •  
      CommentAuthorØ
    • CommentTimeFeb 15th 2008
     # 35
    It's a must-have addon for any play-by-post forum. It would get along very well with the excellent DiceRoller.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 15th 2008
     # 36
    Well then it's down to the Admin to make sure people are aware of it. Just like with any other extension.
    • CommentAuthortimfire
    • CommentTimeFeb 15th 2008 edited
     # 37
    Why not have the auto-refresh turned off by default, and only be activated by a button in the panel or whatever? You could use a non-persistent/session cookie to remember that the feature is turned on, but would turn the feature off if the user shuts down the browser (since the cookie would be deleted).

    That way, the feature would only get used by the users who want it, and only during the times when those users want it. Users don't need it running 24/7. They don't need it running if they're only doing a quickie 5-minute forum check on their work break. If it's on by default, lazy users won't bother to turn it off, and if it's persistent, neither would they turn it off after turning it on.

    I know it would be a little annoying to have to turn it on every time you log in, but considering the potentially heavy server strain this extension could cause, it sounds like a good compromise between users & admins.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 15th 2008
     # 38
    Yeah, that sounds like a good idea. So we have: Admins set the minimum and default value for the update time while users can set their own value. Users also have a panel option to turn it on/off which is saved to a cookie. I'll build in some security features which check the last update time to prevent people modifying javascript variables to update more often than the minimum value.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 17th 2008
     # 39
    This is actually taking a little longer than I had planned. Should be released soon though.
    •  
      CommentAuthorØ
    • CommentTimeFeb 17th 2008
     # 40
    Looking forward to this!
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 19th 2008
     # 41
    Discussions are done. Working on comments now. I actually think the feature that will take the most time is that rainbow effect =P
    •  
      CommentAuthorØ
    • CommentTimeFeb 20th 2008
     # 42
    Great :) Will there be a way to change the rainbow effect's colors ? I guess it will look quite different from one style to another.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 20th 2008
     # 43
    Interesting you should mention styles. One of the issues I'm having is that in order to make the updates as snappy as possible I'm trying to cut down on database queries. This means I only have the bare minimum information at my disposal. Also, the ajax script doesn't load Vanilla's API to ensure that the script itself is run incredibly fast. What this all means is that (for discussions at least) there's a bit of styling information missing. The missing information is mostly superfluous and discussions will display more or less how you would expect them to. Also, bearing in mind that it is only the updated discussions which are affected and that everything goes back to normal after a page refresh, I thought it was a suitable sacrifice.

    So, styling might be an issue and different themes will (obviously) also be an issue. Still, I will be on-board with fixing and adjusting it to peoples' needs and will be happy to accept any patches.

    As for the rainbow effect, I thought of having a main colour (probably some form of yellow or red) which the newest post would get. Any previously-updated posts would have their colour decreased gradually to white to show how 'new' they are (which is what Stash suggested). Page refreshing would obviously remove all this. Icons are possible too.

    It will eventually have a multitude of display features that are configurable but for the moment I want to get a basic, working version out.

    One way of 'fixing' the styling issues which are certain to arise would be to have the extension provide an update 'digest'. Like a separate panel that slides out of the right side that shows the amount of updates to date. It would be expandable to show more information and could be separately styled. It's less integrated but it solves the problem of trying to add stuff to a specifically configured and styled layout.
Add your comments
    Username Password
  • Format comments as