Mark Topics as Read

  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8685
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post July 29th, 2010, 3:05 pm

Does anyone know if there is a general link address to "mark topics as read"?

I had hoped to have one linked in my "favorite links" section however every forum has one that is specific to that forum.

Is this possible?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 29th, 2010, 3:05 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post July 29th, 2010, 3:24 pm

There's this one, but it affects all forums. http://www.ozzu.com/?mark=forums. It naturally shows in the top-right corner when viewing unread posts.

If you look towards the bottom-right in a forum listing, under the Forum Legend box, there is a "Mark Topics Read" for that individual forum.
Strong with this one, the sudo is.
  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8685
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post July 29th, 2010, 3:28 pm

Yeah, the reason i wanted it in the favorite links part was because i don't particularly enjoy going to the bottom of the page to click it especially as i use a laptop without a mouse so just end up scrolling using the touch pad.

I've actually commented on that before, however i am not going to request a new link like last time. I would prefer to clear individual forums but it would appear there appears to be no general link, just links to individual forums.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post July 29th, 2010, 4:35 pm

The online users list says you're using Chrome, so I looked into whether Chrome supports any sort of user.js or Greasemonkey scripts. I looked at the version of Chrome you're using, and it appears to support ".user.js" style extensions.

Save the following code in file on your desktop as ".user.js" (dot user dot js) (or, download the attached copy if you have a problem saving dot files)

JAVASCRIPT Code: [ Select ]
// ==UserScript==
// @match http://www.ozzu.com/*
// ==/UserScript==
(function(){
   for(var i = 0; i < document.links.length; i++)
   {
      if(/mode=post/.test(document.links[i].href))
      {
         var insertPoint = document.links[i].parentNode;
      }
      if(/mark=topics/.test(document.links[i].href))
      {
         var toInsert = document.links[i].cloneNode(true);
         toInsert.style.marginLeft = '2em';
         if(insertPoint)
         {
            break;
         }
      }
   }
   if(insertPoint && toInsert)
   {
      insertPoint.appendChild(toInsert);
   }
})();
  1. // ==UserScript==
  2. // @match http://www.ozzu.com/*
  3. // ==/UserScript==
  4. (function(){
  5.    for(var i = 0; i < document.links.length; i++)
  6.    {
  7.       if(/mode=post/.test(document.links[i].href))
  8.       {
  9.          var insertPoint = document.links[i].parentNode;
  10.       }
  11.       if(/mark=topics/.test(document.links[i].href))
  12.       {
  13.          var toInsert = document.links[i].cloneNode(true);
  14.          toInsert.style.marginLeft = '2em';
  15.          if(insertPoint)
  16.          {
  17.             break;
  18.          }
  19.       }
  20.    }
  21.    if(insertPoint && toInsert)
  22.    {
  23.       insertPoint.appendChild(toInsert);
  24.    }
  25. })();


Navigate to that file in Chromes address bar. If you save it on your windows desktop, the address should be something along the lines of

Code: [ Select ]
file:///C:/Users/username/Desktop/.user.js


Once you open that file in Chrome, a dialog should appear in the bottom-left corner of Chrome asking you if you want to continue. You do want to continue, it will install this extension.

What this extension does, is simply look for that Mark Topics link in pages at Ozzu, and if it finds that link it copies it and appends that copy next to the "Post Topic" link that's on the top of the page.

Attachments:
mark-topics.jpg
Attachments:
userjs.zip

(389 Bytes) Downloaded 251 times

Strong with this one, the sudo is.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post July 29th, 2010, 9:03 pm

Sometimes Joe... you amaze me... just sometimes :lol:
#define NULL (::rand() % 2)
  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8685
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post July 30th, 2010, 1:38 am

You're an absolute star Joe. I really cannot tell you how much i appreciate that.

Fantastic! Thank you!
  • LAbrego
  • brego from LA
  • Web Master
  • User avatar
  • Joined: May 25, 2004
  • Posts: 2853
  • Status: Offline

Post July 30th, 2010, 8:57 am

*bow :lol:
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8934
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post August 9th, 2010, 7:05 pm

Just got around to finally reading this thread. I would have to admit this is quite impressive. There are probably all sorts of things users could do with Ozzu if they want to personalize it more with things like this.
Ozzu Hosting - Want your website on a fast server like Ozzu?

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.