Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-02-2002 Last Update: Never Installs: 54
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 04-26-2003, 03:35 PM
nhlrat nhlrat is offline
 
Join Date: Dec 2001
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:31 PM Xenon said this in Post #130
@nhl: as it's not a problem with my hack you should start an sepearat thread if you have such problems!
Ok thanks just didn't know where to go for the help.
Reply With Quote
  #133  
Old 06-30-2003, 07:40 PM
padblaz padblaz is offline
 
Join Date: Apr 2003
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've just d/l it
i'm gonna install later in the evening
thanks for this hack
Reply With Quote
  #134  
Old 08-22-2003, 11:10 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first of all great hack!

But just a Q to make this all available to Mods & Supermods:
is this piece of code properly modified to give them access aswell?

PHP Code:
//Admin Edit Hack by Xenon
  
$adminsql "";
  if ((!isset(
$userid) or $userid=="" or $userid==0) and in_array($bbuserinfo['usergroupid'], array(5,6,7))  and $postinfo[userid]!=0) {
    
$userid=0;
    
$adminsql .= "username='Guest',";
  }
  
$userid=intval($userid);
  
  if (!isset(
$pthreadid) or $pthreadid=="" or $pthreadid==0) {
    
$pthreadid=0;
    
$action="deletepost";
  }
  
$pthreadid=intval($pthreadid);
  
  if (!isset(
$ipadd) or trim($ipadd)=="") {
    
$ipadd="";
  } 
I asked because this own't work
Reply With Quote
  #135  
Old 08-22-2003, 11:24 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it seems to be right.
but it's not the only part to change you know, do you?
Reply With Quote
  #136  
Old 08-22-2003, 11:33 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aha, that should be the reason i presume. Thanks for pointing that out Xenon!
But where should i apply the same modifications aswell?

Sorry for this extra addition request towards your already (IMO almost perfect) hack
Reply With Quote
  #137  
Old 08-22-2003, 12:00 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the most important part to change the bbuserinfo into the in_array version is here:
PHP Code:
  // Admin Edit Hack by Xenon
  
if ($bbuserinfo[usergroupid] == 6) {
    eval(
"\$admineditpost = \"".gettemplate("admineditpost")."\";");
  } else {
    
$admineditpost "";
  } 
and of course here:
PHP Code:
  if ($bbuserinfo[usergroupid] == 6) {
    
$datetime=mktime($datetime[hours],$datetime[minutes],0,$datetime[mon],$datetime[mday],$datetime[year])-3600*($bbuserinfo['timezoneoffset']-$timeoffset);
    
$adminsql .= "ipaddress='".addslashes($ipadd)."',dateline='$datetime',editable='$editable',userid='$userid',threadid='$pthreadid',";
  } 
and no problem, for my vb3 version of this hack, it was already planned to add moderator functions to editpost, too
Reply With Quote
  #138  
Old 08-22-2003, 12:20 PM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Xenon! Hmm it doesn't seem to work somehow, no extra 'edit post' options for moderators nor Super Moderators.
No errors either, works for admin's though...

Here are the actual code i used:

PHP Code:
    //Admin Edit Hack by Xenon
  
$adminsql "";
  if ((!isset(
$userid) or $userid=="" or $userid==0) and in_array($bbuserinfo['usergroupid'], array(5,6,7))  and $postinfo[userid]!=0) {
    
$userid=0;
    
$adminsql .= "username='Guest',";
  }
  
$userid=intval($userid);
  
  if (!isset(
$pthreadid) or $pthreadid=="" or $pthreadid==0) {
    
$pthreadid=0;
    
$action="deletepost";
  }
  
$pthreadid=intval($pthreadid);
  
  if (!isset(
$ipadd) or trim($ipadd)=="") {
    
$ipadd="";
  } 

And ofcourse this one:

PHP Code:
  //Admin Edit Hack  
  
if (in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
    
$datetime=mktime($datetime[hours],$datetime[minutes],0,$datetime[mon],$datetime[mday],$datetime[year])-3600*($bbuserinfo['timezoneoffset']-$timeoffset);
    
$adminsql .= "ipaddress='".addslashes($ipadd)."',dateline='$datetime',editable='$editable',userid='$userid',threadid='$pthreadid',";
  } 
Reply With Quote
  #139  
Old 08-22-2003, 12:22 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have forgotten the first one where the extra template is loaded
Reply With Quote
  #140  
Old 08-22-2003, 12:28 PM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you are right! Thanks!
I am not worthy!* ;-)

*Takes of his hat and bows his head for Xenon
Reply With Quote
  #141  
Old 08-31-2003, 07:38 AM
Thoki Thoki is offline
 
Join Date: Feb 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this great Idea to code this!
Installed.

@Aaron1:
Can you please post the complete moification you did?

Thanks at all
Thoki.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06753 seconds
  • Memory Usage 2,336KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete