![]() |
Hi folks!
After my server has had problems last night, so the date was incorrect, an the posts had the dateline of October, I start programming this hack, to change a bit more of the Posting informations if you are an Admin of the board. Now you can change 1. The Userid of this Post (don't know when, but perhaps you'll need it sometimes) 2. The Threadid of the Post (if you want to take this post to another thread) 3. Date and time postet 4. IP Address saved with the Post 5. can make post uneditable for original Author/Mods/Supermods (priority level system) or even editable to the author when timelimit is over... If you like it Please click on install Button Screenshot vB3 Version of this hack can be found here |
nice
|
Thx! I have adjusted it a little bit, so that you don't have to duplicate the whole template editpost, you only have to insert $admineditpost into that template (I made changes in editpost.php for that, you can find it at Step 1.3 in my file).
I have attached my changed instructions! @Xenon Nochmals danke f?r den Hack, bei Fragen zu meinen ?nderungen, wende dich an mich :) Bye, Mystics |
Thx, have updated my Attachment too :)
@Mystics: Hab alle Anderungen gesehn, h?tt ich selber auch draufkommen k?nnen :), so ists nat?rlich um ein St?ck praktischer, danke nochmals Screenshot Version 2.20: |
Have correctet a little bug.
The line which edited the date has had a little bug which changes into a wrong day whe the day is greater 9 |
Yeah!! Infact I got lost!! ;)
Great hack but..... !!! I tried to edit some posts and had the date/time switched before about 9 days and 18hrs !!!! Even without touchin' the date/time field... :) A post made today (CET date format) : 14-01-2002 15.40 went to 04-01-2002 21.40 !!!!! (note: I'm six hours behind my server' time...) Hope your 'patch' fixes it... Doesn't it ? Thanks a lot. |
:( :rolleyes:
Bug is only partially fixed. I applied your new release as of 12jan, but there's still a problem with the time synchro. I think - as said - the local area time. The example above, for instance, now becomes : 14-01-2002 21.40 !!! Infact, cause the substr( ..., 1,2 ) instead of substr( ..., 0, 2 ), before I had the date moved to 4 instead of 14 .... (24... etc...) But it doesn't manage the time zone info, I think. Infact I made a correction on the time of edit setting it to 09.40 and, as output, I got the message dated : 14-01-2002 15.40 .... :) Hope this helps you to fix completely the problem... Thanks again for your work. Bye |
i see to correct it just add the line
$datzeit=$datzeit+4*3600; right after $datzeit=mktime(substr($datzeit,11,2), substr($datzeit,14,2), 0, substr($datzeit,3,2), substr($datzeit,0,2), substr($datzeit,6,4)); and change the 4 to your timeoffset. |
Ok. May thanks... ;)
I think you mean the offset behind the server time, not any other absolute like GMT, do you ? I'd prefer to use a variable environment, for example useing the $timeoffset variable adding the $bbuser[timezoneoffset] ... :) But haven't any idea how to make the global variable be seen in editpost.php... ;) Thanks a lot. Again Bye |
Quote:
the offset you have to set, should be like the one you set in your vb options ;) |
All times are GMT. The time now is 06:16 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:
|