vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   More Functions in Edit Post if you are an Admin (https://vborg.vbsupport.ru/showthread.php?t=33761)

Xenon 01-02-2002 10:00 PM

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

TheComputerGuy 01-03-2002 06:01 PM

nice

Mystics 01-03-2002 09:15 PM

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

Xenon 01-03-2002 10:17 PM

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:

Xenon 01-12-2002 03:55 PM

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

Jawelin 01-14-2002 02:34 PM

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.

Jawelin 01-14-2002 03:01 PM

:( :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

Xenon 01-14-2002 05:09 PM

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.

Jawelin 01-14-2002 06:06 PM

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

Xenon 01-14-2002 07:09 PM

Quote:

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 ;)


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
  • Page Generation 0.01173 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete