Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: News Manager & Job Manager:
How does NM flag headlines that are hidden?

 

 


mrtopher
New User

Aug 15, 2006, 8:23 AM

Post #1 of 2 (2264 views)
Shortcut
How does NM flag headlines that are hidden? Can't Post

I have a PHP script that parses the NM data file (data/news.dat) into a PHP array and then displays a set number of headlines on the homepage. I just noticed that articles that the user marks as not "Hidden: do not display on website" display anyway. How can I determine if an article is hidden or not in my PHP script? What flag should I be testing for?


Donna
Staff / Moderator


Aug 16, 2006, 11:39 AM

Post #2 of 2 (2259 views)
Shortcut
Re: [mrtopher] How does NM flag headlines that are hidden? [In reply to] Can't Post

Hi there,

For hidden articles, there's a flag (1) in the 13th field. To demonstrate, I created two identical articles, one hidden and one visible. The dat file contained this:


Code
1ˇ1155753200ˇ1155753200ˇ1ˇ8ˇ16ˇ2006ˇtestˇtest ˇtestˇtextˇtextˇˇˇ 
2ˇ1155753205ˇ1155753212ˇ1ˇ8ˇ16ˇ2006ˇtestˇtest ˇtestˇtextˇtextˇ1ˇˇ


As you can see, the second listing shows the "1" in the second to last field. That's the one you'll want to be looking for. :)

Let me know if you have any other questions or concerns!

Donna

--
support@interactivetools.com