Status is a script that allows users to check the status of a user on either their profile or by use of a certain element.
Display status within page
One can add the status of a user by adding the following:
<span data-user-status="USERNAME">placeholder text</span>
USERNAME would be replaced with the intended user whose status is being checked. placeholder text would be replaced with some sort of error message or notice that the script didn't run. It's recommended that the above code be put into a template for easier use.
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.