Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #82  
Old 07-29-2002, 02:59 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's not allowed to send full vb-files don't forget that

as you said every post would be only admin-editable, you must recheck all the queries if they are exactly what i said...

and default value at post.editable must be 1
recheck that also with phpmyadmin
Reply With Quote
  #83  
Old 07-29-2002, 03:13 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you back it up before making that change?

Satan
Reply With Quote
  #84  
Old 07-29-2002, 09:42 PM
MarkyBuzz's Avatar
MarkyBuzz MarkyBuzz is offline
 
Join Date: Apr 2002
Location: Manchester UK
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Xenon Install has been clicked - thanX for a brilliant hack.

I just wish I new about this one when I copied and pasted all indivdual posts from Postnuke Xforum over to VB which took two days - it looked a little suspiciously like I had made posts and members up due to the irregularity of time and date - now I can go and put the date and times into each post again! Jeez - another 2 days

Well Done!
Reply With Quote
  #85  
Old 07-29-2002, 09:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Xenon for clearing this up for me. This hack rocks!
Reply With Quote
  #86  
Old 08-01-2002, 02:55 AM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a question here......
will this hack allow (and if it won't, could you tell me how to make it) an author to edit a post beyond the boardwide edit time limit if you set the author edit option?

We use the time limit to keep users from causing chaos (we had several who would incite flamewars, then go back and edit what they said so it made others look like the instigators), but occasionally, we run into issues where we need edits made, and it would be MUCH easier if the mods could let the authors do it, rather than having them email the edits to the staff and the staff doing it.

Please help me out on this.......If it takes a lot of work, I will be happy to pay you for it...PPN can verify i am good for the money
Reply With Quote
  #87  
Old 08-01-2002, 12:28 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For now this function isn't included, but it should be easy to include it.

perhaps i can post a solution later this day, but now i haven't time to do it

no money needed
Reply With Quote
  #88  
Old 08-01-2002, 06:40 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will DEFINITELY hit my list of PHP heros if you work this out Xenon

Btw.....i have a number of your hacks installed on my site, and have gained a lot from following your work

(ok...so yeah, i am kissing butt here....but it never hurts right??)

*grinz*
Seriously though....i do enjoy your hacks.....keep up the outstanding work
Reply With Quote
  #89  
Old 08-01-2002, 08:22 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the nice words

ok, here you are:
open hacked editpost.php

find this:
PHP Code:
if ($postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=0) { 
replace it with:
PHP Code:
if ($postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=and $postinfo[editable]!=4) { 

then find this:
PHP Code:
for($i=0;$i<4;$i++) $editable[$i]=iif($postinfo[editable]==$i,"CHECKED",""); 
change it to:
PHP Code:
for($i=0;$i<5;$i++) $editable[$i]=iif($postinfo[editable]==$i,"CHECKED",""); 


then in template admineditpost:
find
<input type="radio" name="editable" $editable[1] value="1">Author |

before it add:
<input type="radio" name="editable" $editable[4] value="4">Author (no timelimit)|

i think this should be all
Reply With Quote
  #90  
Old 08-01-2002, 09:50 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm.....i appreciate it bunches Xenon....just one problem

i am getting this error when i click the edit post link:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/editpost.php(208) : eval()'d code on line 11

could this be getting hosed by another hack??? or am i more clueless than i thought ???



Sorry...forgot to add....my line 208 is this:


eval("\$admineditpost = \"".gettemplate("admineditpost")."\";");
Reply With Quote
  #91  
Old 08-01-2002, 10:02 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes tested it myself and also get this error, seems there are no -1 allowed, i'll edit my post above and change it so it'll work
Reply With Quote
Reply

Thread Tools

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 05:03 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.06176 seconds
  • Memory Usage 2,310KB
  • 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
  • (4)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (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