$context[\\\'current_action\\\'] and logged time

Started by asmith, October 22, 2008, 02:25:39 AM

Previous topic - Next topic

asmith

No, it is working perfect.

I mean, this thing we can make it on in admin page that it show which people are watching a topic. for example it says on the top of the topic :    Blue Dream, Asmith and 4 guests are viewing this  topic.

I thought maybe I could put such thing on my non-forum pages. Is there a function for that ?  If not maybe I can do it by writing an script with logs table?
I'm checking with you if there's a better way with smf functions, rather than I write an script myself in eahc page, checking the data in logs table.

[SiNaN]

Yeah, you can do that. You can cheat from SMF. Look for "// Nosey, nosey - who's viewing this topic?" line and the block under it, in MessadIndex.php file. You will see the codes to fetch who's viewing.
Former SMF Core Developer | My Mods | SimplePortal

spartacussing

WARNING!!

After beating my head for a few days  (which made a surprising change, I can tell you!) I found out my problem!

I tried to add some custom actions to the who's online thing, but found they were not showing up!

I found with some trial and error, that if I set the action to something that was already in the who.english.... file, that THOSE actions were reflected in the who's online, and then...

:( grrr.... YOU HAVE TO CLEAR THE CACHE!!!!!

index.php?action=admin;area=maintain;sa=routine;activity=cleancache
booooo hoooo!

Advertisement: