Jump to content
Ultimaker Community of 3D Printing Experts
Sign in to follow this  
Blizz

Mark everything read?

Recommended Posts

Looked around a bit and I couldn't find anything about it more than other people asking for the functionality... I think I could probably make a greasemonkey script for it, but not tonight, I'm freaking exhausted (going on just barely 5 hours of sleep which is way too little for me).

 

Share this post


Link to post
Share on other sites

Actually for whatever reason, the 'Mark all as read' action is in the page footer, but it is commented out together with a whole bunch of links

 


http://umforum.ultimaker.com/index.php?app=forums&module=forums&section=markasread&marktype=all&k=<your session key>

Going to this URL will indeed do what it says (and what we would like to have), but we can't bookmark this as the key part is obviously changing ;)

So we have basically 2 options here:

 

  • Have a nice webmaster to uncomment the link in the template
  • Write some greasmonkey script -- session key is in ipb.vars['secure_hash'], so it is just the matter of building the mark url...

 

Share this post


Link to post
Share on other sites

Here is a quick and dirty GM script which does the job...

 


// ==UserScript==
// @name UMMarkAllRead
// @namespace http://e-bulles.net
// @description Add a 'Mark All Read' link in UM Forum
// @include http://umforum.ultimaker.com/*do=viewNewContent*
// @version 1
// @grant none
// ==/UserScript==
// We add an <li> line right under the 'View new content' link
var markAllReadLi = document.createElement('li');
markAllReadLi.setAttribute('class', 'right');
// The Link element
var markAllReadLink=document.createElement('a');
markAllReadLink.appendChild(document.createTextNode('Mark All Read'));
markAllReadLink.href = 'javascript:void(0);';
markAllReadLink.onclick = markAllRead;
// Add the Link in tke <li>
markAllReadLi.appendChild(markAllReadLink);
// Add the <li> just before 'Home'
var menu = document.getElementById('community_app_menu2');
var menuHome = document.getElementById('nav_app_ccs');
if (menu && menuHome) {
menu.insertBefore(markAllReadLi, menuHome);
}
// Ask confirmation when link is clicked...
function markAllRead()
{
var ret = confirm("Do you really want to mark all forums as read?");
if (ret == true) {
window.location.href = 'http://umforum.ultimaker.com/index.php?app=forums&module=forums&section=markasread&marktype=all&k=' +
ipb.vars['secure_hash'];
}
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Our picks

    • Introducing Ultimaker Cura 3.6 | Beta
      Ultimaker Cura 3.6 | Beta is available. It comes with new features, bug fixes, and UX improvements. We would really like to have your feedback on it to make our stable release as good as it can be. As always, you can download the beta for free from our website, for Windows, MacOS, and Linux.
        • Like
      • 95 replies
    • Print Core CC | Red for Ruby
      Q: For some users, abrasive materials may be a new subject matter. Can you explain what it is that makes a material abrasive when you are not sure which print core to use?
      A: Materials which are hard in a solid piece (like metals, ceramics and carbon fibers) will generally also wear down the nozzle. In general one should assume...
        • Like
      • 30 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!