![]() |
Lastposter query
Can someone please tell me what I am doing wrong in this query? I am trying to set the lastposter as the original poster of the message (this query is from the editpost.php):
PHP Code:
|
$postusername hast to be set already or it won't work.
but here you can use a simpler method: PHP Code:
|
Isn't that basically the same code I have above?
And it's still not working. When I save an editpost using this, I get my name on it on the thread and forum list and not the name of the user who wrote the post. |
no the difference is that my query uses directly the info in the db
if this querie doesn't produce what you want there is either a problem i don't understand exactly what you wan, or the postusername is set wrong in your thread or (most likely) the lastposter is overwritten after that querie again |
Quote:
What I am doing is this: I have a checkbox in the editpost that when checked will update that post with the current date and time (like a newreply). But when I do that, it seems to want to put my name in the thread listing and forum listing as the last poster instead of the original poster of that message. If you want, I can pm you the code for the hack to look at. (It is small). ;) |
hmm just be sure that nowhere below that code is anything like lastposter=$bbuserinfo[username] ;)
|
"lastposter=" is not anywhere in the editpost (mine or the original). What could be causing that?
|
All times are GMT. The time now is 09:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|