Quote:
Originally Posted by EvilLS1
John,
To make it function exactly as it does in editpost.php you'd need to add this bit of code to functions_showthread.php:
(code ommited)
This will add a query to showthread though. Not worth it IMO.
Dewayne
|
Dewayne,
Let me understand that. You mean that the existing conditionals cannot function, until the $isfirstpost is set by the code you gave me?
Well, the code does not work as it is, it produces the following error:
Database error in vBulletin 3.0.1:
Invalid SQL:
SELECT postid
FROM post
WHERE threadid=
ORDER BY dateline
LIMIT 1
mysql error: You have an error in your SQL syntax near 'ORDER BY dateline
LIMIT 1
' at line 5
mysql error number: 1064
I also tried to fool the hack, by inserting a $isfirstpost = true statement, just above the conditionals. The behaviour is still the same. For some reason, it never sets the $show['deletepostoption'] to true, even though the $isfirstpost is always true.
I am not sure what the problem is, but $isfirstpost doesn't seem to be the solution.
Rgds