SMF Community Helpers > SMF Documentation Help
shell code for Mark ALL messages as read function
(1/1)
gullsinn:
any one knows where source code for Mark ALL messages as read function placed
i mean in which file (file name)
AngelinaBelle:
I have never looked. But here is how I would find out such a thing.
1) Look at the URL for the "mark as read" button on the board index action=markasread;sa=board
2) Find the action array. In SMF 2.0, that is found in index.php -- look for markasread and see which file it refers to, and which function.
3) Then, when you get there, look for the various subactions and how they are handled.
You'll see that I haven't actually followed through and found the answers to these questions.
I leave that as an excercise for the reader :)
Which is always annoying, I know. I haven't given you a fish. I've given you a lesson in fishing, which you haven't asked for. But it will help you get the answers you want more quickly in the future, without having to wait for others to look things up for you.
I hope this helps.
Arantor:
Better question: why do you want to know?
(Because I can think of two different answers to the question: where's the code for the button and where's the code that runs when you click on it. In any case, what one wants to do may be a bad idea when taking into account how the rest of SMF works.)
Navigation
[0] Message Index
Go to full version