![]() |
|
Mod Options |
![]() |
|||||||||||
More Functions in Edit Post if you are an Admin
![]() Developer Last Online: Jul 2018 ![]() ![]() ![]() This modification is in the archives.
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 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Admin Functions | tubedogg | vBulletin 2.x Full Releases | 68 | 02 Jun 2003 23:22 |
Comments |
#2
|
||||
|
||||
nice
__________________
I'll buy your forum! No members have liked this post.
|
#3
|
||||
|
||||
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 No members have liked this post.
|
#4
|
||||
|
||||
Thx, have updated my Attachment too
![]() @Mystics: Hab alle Anderungen gesehn, hätt ich selber auch draufkommen können ![]() Screenshot Version 2.20: No members have liked this post.
Last edited by Xenon; 27 Jul 2002 at 13:29. |
#5
|
||||
|
||||
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 No members have liked this post.
|
#6
|
|||
|
|||
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. No members have liked this post.
|
#7
|
|||
|
|||
![]() ![]() 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 No members have liked this post.
|
#8
|
||||
|
||||
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. No members have liked this post.
|
#9
|
|||
|
|||
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 No members have liked this post.
|
#10
|
||||
|
||||
![]() the offset you have to set, should be like the one you set in your vb options ![]() No members have liked this post.
|
#11
|
|||
|
|||
Actually I have GMT -5 for Server' time (EST) and GMT +1 for mine and almost users (CET)... ![]() So I should make the sum of abs... By now a fixed '6' should work great ! Thanks. No members have liked this post.
|
#12
|
|||
|
|||
![]() If my server is in a timezone 'on the left' of mine (as said, I'm on +1, the server is on -5), I should SUBTRACT 6 and not add it... ![]() $datzeit is the time string displayed on my page, adjusted to my time... If the server time is six hours 'after' mine, I should resave the edited post with the server time... my case: ---> $datzeit = $datzeit - 6 * 3600; Thanks again for your help. Bye No members have liked this post.
|
#13
|
||||
|
||||
hey good hack
but can someone tell me the time for Eastern Time (U.S.A.) PM/AM Clock What should I replace it with? No members have liked this post.
|
#14
|
|||
|
|||
It' a RELATIVE value: where are you ?
:supwink: No members have liked this post.
|
#15
|
||||||||
|
||||||||
EUREKA, Xenon !
Lookin' at vbdate() function source, I found out how to parametrize the admin's offset behind the server:
simply, the users of this hack - with your bugfix - should replace the code
That upgrade reverses, just before saving it, the traslation made at reading time from the post(server) time to the user time. Actually it acts as vbdate() with an inverse traslation. This way there shouldn't be neither the import of global variables $bbuserinfo and $timeoffset, like functions.php has, as at the top of editpost.php there's a full global variables import. That is !! Bye :stoned: No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:17.