The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Where in EDITPOST.PHP does vB read the post from the database? I cannot seem to locate this.
I am attempting my first "real" PHP hack here, so any help is appreciated! |
#2
|
||||
|
||||
![]()
it's done on line 71
PHP Code:
![]() (it's defined in functions.php for further info) |
#3
|
||||
|
||||
![]()
I have the following:
editpost.php PHP Code:
PHP Code:
|
#4
|
||||
|
||||
![]()
Well a quick look suggests you are not passing the postid to the function, so it will fail to find anything ... but what on earth are you trying to do ???
|
#5
|
||||
|
||||
![]()
* Modified my post because I pasted the wrong text.
I have a variable assigned the text Test Message. The post I am reading has the same text. I am trying to re-read the original post from the database so I can track post edits. I am 1/2 step away from finishing it, but this and the permission problem I am having (posted earlier today) are stopping me. |
#6
|
||||
|
||||
![]()
Can't you track edits in the admin cp?
|
#7
|
||||
|
||||
![]()
Ok, I have changed it to the following:
editpost.php PHP Code:
PHP Code:
Can you? I have not seen this as an option... if that is the case, then I am going to feel a bit stupid... I have gone through and do not see an option to turn on edit tracking... where would it be hiding? |
#8
|
||||
|
||||
![]()
You could just make a simple SQL query based on that value... Just go into phpyAdmin or whatever you use and look at the database format... the rest should be pretty simple.
And about that option not being in the admin CP... You can see when MODs edit posts at http://www.yoursite.com/forums/admincp/modlog.php... |
#9
|
||||
|
||||
![]()
Ah, MySQL... that is something else I need to learn... not really so simple for me at the moment.
Is $postInfo['post'] the correct variable to call based on my code? |
#10
|
||||
|
||||
![]()
i think you need
$postInfo['pagetext'] here ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|