• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Feature
    • [Live] Activity Feed

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [Live] Activity Feed

    • Issue Tools
      • View Changes
    1. issueid=2648 April 12, 2012 12:51 AM
      pegasus pegasus is offline
      VaultWiki Team
      [Live] Activity Feed

      It was requested in the forums and it's sort of a hybrid upgrade of recent edits/articles blocks like you would see in a CMS and a facebooky news feed. For now it appears in the wiki sidebar.

      The feed checks asynchronously every minute or so if new content of any type (frequency of checking and types checked can be controlled in the AdminCP) and adds an alert to the feed. We require the user to click the alert to load the new activity so that the content doesn't jump down the screen while the user is reading. The user can also read further past activity by clicking a button at the bottom of the feed.

      There are two types of feeds: the global feed and the relative feed. The global feed shows activity throughout the whole wiki and is the default shown no matter what page you're on. This way if there's activity somewhere else you need to respond to, the information is right there. The relative feed only appears as an alternate view for certain page types that might have child pages (areas, books, categories, groups), and as you might expect only shows activity that is below the current page in the wiki hierarchy. We opted not to have an additional view for a feed relating only to the current page because that information is already easily available since you are on the page.

      We added some "security" measures in here:

      In the process of writing the conversation for this feature, discovered and fixed an XSS vulnerability in VaultWiki 4's input processing.

      The frequency is not set by code embedded in the HTML on the current page. This prevents users from changing the frequency to a very low number and overloading your site with AJAX requests. While it's still possible to fiddle with the DOM through some browsers' developer tools and change the value that way, we made sure to reset the value on every request.

      Also, say the user leaves their browser open on a particular page for a whole week (I'm one of those people). Much of that time they might be away from the computer and probably the page, so we don't want to be performing AJAX requests to make alerts that entire time, especially when the user isn't even seeing most of them. After an hour of browser inactivity, the feed stops checking for new updates. If the user returns after an hour and wants to update the feed, they will be prompted to reload the page.

      For those who wanted a true "live" feed, sorry. In order to do this, we need to assume you have a machine with a Flash XMLSocket application like BlazeDS installed, and then we would need to tell PHP how to send messages using that application. This would be another big project and we might revisit it in the future if we add more "live" functions. Because most PHP installations have script timeouts, long-polling was not really an option (we would have to send another AJAX request every 30 seconds anyway).

      Anyway, still have to phrase the feed contents, and like everywhere else, still need to have someone do the icons for the various content types.
    Issue Details
    Issue Number 2648
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category Widgets / Sideblocks
    Status Implemented
    Priority 8 - Major Features / Enhancements
    Suggested Version 4.0.0 Alpha 1
    Implemented Version 4.0.0 Alpha 1
    Milestone VaultWiki 4 Alpha X
    Software DependencyAny
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 12, 2012 10:18 PM
      pegasus pegasus is offline
      VaultWiki Team
      Completed the feed. Updates as expected. The relative timestamps also update via Javascript as time passes. To avoid unnecessary iterations we break the timestamp update as soon as we hit an item that doesn't require an update ("3 hours ago" isn't "4 hours ago" yet so we don't need to check further past items).
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 9:59 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.