Customizing SMF > SMF Coding Discussion

Help needed! Updating of a db table on the fly

<< < (2/2)

Suki:
You need to collect the data you need, display.php queries the database to get the current messages on X page.

Don't know what you really want, if you want all the people involved on a topic of just the people involved on X page of the topic.

Depending on how much data you want to fetch, a quick query would be better than modifying bits of code here and there to collect the users ID, specially if you want all the Ids rather than just the Ids from an specific page but then again, having an extra query on every topic display may not be a good idea.

vsync:
yeah i want people involved on a topic, not a specific one. The idea is to show fresh data to the viewer.

Suki:
What fresh data?  to whom exactly?

If you want to show data to the user who is currently viewing the topic then you don't need to query the database at all.

I still have no idea on what you are trying to do, which kinda makes it hard to provide you with a solution.

Navigation

[0] Message Index

[*] Previous page

Go to full version