Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
More Functions in Edit Post if you are an Admin Details »
More Functions in Edit Post if you are an Admin
Mod Version: 1.00, by Xenon (Member) Xenon is offline
Developer Last Online: Jul 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (1 vote - 5.00 average) Installs: 54
Released: 03 Jan 2002 Last Update: Never Downloads: 6
Not Supported  

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Admin Functions tubedogg vBulletin 2.x Full Releases 68 02 Jun 2003 23:22

Comments
  #2  
Old 03 Jan 2002, 19:01
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Joe
nice
__________________
I'll buy your forum!
Reply With Quote
  #3  
Old 03 Jan 2002, 22:15
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Real name: Mike
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
Attached Files
File Type: txt postedit for admins.txt (5.0 KB, 127 views)
Reply With Quote
  #4  
Old 03 Jan 2002, 23:17
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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:
Attached Images
File Type: jpg adminedit.jpg (44.1 KB, 747 views)

Last edited by Xenon; 27 Jul 2002 at 13:29.
Reply With Quote
  #5  
Old 12 Jan 2002, 16:55
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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
Reply With Quote
  #6  
Old 14 Jan 2002, 15:34
Jawelin Jawelin is offline
 
Join Date: Nov 2001
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.
Reply With Quote
  #7  
Old 14 Jan 2002, 16:01
Jawelin Jawelin is offline
 
Join Date: Nov 2001


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
Reply With Quote
  #8  
Old 14 Jan 2002, 18:09
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
  #9  
Old 14 Jan 2002, 19:06
Jawelin Jawelin is offline
 
Join Date: Nov 2001
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
Reply With Quote
  #10  
Old 14 Jan 2002, 20:09
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
Originally posted by Jawelin

But haven't any idea how to make the global variable be seen in editpost.php...
That was also my problem, thats why i use the absolute change
the offset you have to set, should be like the one you set in your vb options
Reply With Quote
  #11  
Old 15 Jan 2002, 12:33
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Originally posted by Xenon

the offset you have to set, should be like the one you set in your vb options
Almost...
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.
Reply With Quote
  #12  
Old 18 Jan 2002, 22:29
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Originally posted by Xenon
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.
Just a small correction... I tried myself
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
Reply With Quote
  #13  
Old 19 Jan 2002, 01:29
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
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?
Reply With Quote
  #14  
Old 19 Jan 2002, 09:06
Jawelin Jawelin is offline
 
Join Date: Nov 2001
It' a RELATIVE value: where are you ?
:supwink:
Reply With Quote
  #15  
Old 19 Jan 2002, 16:23
Jawelin Jawelin is offline
 
Join Date: Nov 2001
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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:
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:17.

Layout Options | Width: Wide Color: