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 Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-19-2001 Last Update: Never Installs: 69
 
No support by the author.

I won't talk too much, it's been a very very long day.

This hacks lets your users specify the reason for editing their post.
If you ever worked with CVS (and alike), you can write the reason you edited the file.
I thought it'd be cool to have the same thing here.

So when you edit a post, you'll see a text box at the bottom, for you to enter the reason for editing the post.
That's instead of the ridiculous:
Just fixing a type --Chen.
messages at the bottom of the post.
If you leave the box empty, nothing will be displayed.

This is installed here, so if you want a demo just edit one of your posts here.
(don't forget to wait 2 minutes before editing, that's the setting here)

Download the installed (attached), upload to your admin folder and run from your browser.
Most is automatic, but you need to edit 2 files and 2 templates (1 edit each).

That's it, feedback!

Show Your Support

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

Comments
  #22  
Old 11-22-2001, 06:43 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly

After you installed it, it's in the postbit template.
FireFly i cann't find this word why in postbit

template??why??should i reinstall this hack again~~
Reply With Quote
  #23  
Old 11-22-2001, 11:43 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, sorry.
It should be in the postbit_editedreason template.
Reply With Quote
  #24  
Old 11-22-2001, 12:53 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Hmm, sorry.
It should be in the postbit_editedreason template.
thankz~~~FireFly~~

i find it!!
Reply With Quote
  #25  
Old 11-23-2001, 11:48 PM
Ambex Net's Avatar
Ambex Net Ambex Net is offline
 
Join Date: Nov 2001
Location: USA
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help I'm lost on this hack . Sorry to sound dumb but I just bought a vB licence today, I got my color scheme all done so I decicded to start to do some hacks and this is nothing like ubb lol, well actualy the hacking part but anywho I get to this step:

Changes to
postbit template (1)

postbit template

Step 1 of 1 FIND:


$post[editedby]

AFTER that ADD
<br>$post[editedreason]


Now where are these template or postbit template files . This is probely a stupid question b/c I bet it's right under my nose but I never did a vB hack yet and this would be my first one so I'm just wondering where the heck this is. All help apprecaited, thanks!
Reply With Quote
  #26  
Old 11-23-2001, 11:57 PM
Ambex Net's Avatar
Ambex Net Ambex Net is offline
 
Join Date: Nov 2001
Location: USA
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really hate to double post but I just wanted to say a friend of mine showed me where the templates were and that i had to click show all. I knew it was right under my nose ...anyways it's install now. and awesome hack!
Reply With Quote
  #27  
Old 11-24-2001, 04:05 PM
Nupraptor's Avatar
Nupraptor Nupraptor is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Going to try it soon.
Reply With Quote
  #28  
Old 11-24-2001, 07:19 PM
Prezident's Avatar
Prezident Prezident is offline
 
Join Date: Nov 2001
Location: Denver, CO. USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. Love the install script.

Thanks for the hack...
Reply With Quote
  #29  
Old 11-25-2001, 01:23 AM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?
Reply With Quote
  #30  
Old 11-25-2001, 01:27 AM
Ambex Net's Avatar
Ambex Net Ambex Net is offline
 
Join Date: Nov 2001
Location: USA
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by SgtSling
I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?
Maybe you deleted a code segment that had to do with that or maybe you deleted something in a template. I dunno just a thought on what might've happened.
Reply With Quote
  #31  
Old 11-25-2001, 01:56 AM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I found out why!

Something is messed up in my functions.php!

The "edited by"
won't show when I make the new changes in it.

anyone see anything the matter with this?

I am including the chunk on code before and after on my functions.php

if ($post[edituserid]!=0) {
if ($post['edituserid']!=$post['userid']) {
$edituser=getuserinfo($post[edituserid]);
} else {
$edituser = $post;
}
$post[edittime]=vbdate($timeformat,$post[editdate]);
$post[editdate]=vbdate($dateformat,$post[editdate]);

// Edit Reason (v1.0)
if ($post[editreason]!='') {
eval("\$post[editedreason] = \"".gettemplate("postbit_editedreason")."\";");
} else {
$post[editedreason]='';
}
// Edit Reason (v1.0)

} else {
$post[editedby]="";
}

if ($post[dateline]>$bbuserinfo[lastvisit]) {
$post[foldericon]="<img src=\"{imagesfolder}/posticonnew.gif\" border=\"0\" alt=\"New Post\">";
} else {
$post[foldericon]="<img src=\"{imagesfolder}/posticon.gif\" border=\"0\" alt=\"Old Post\">";
}
if (!$forum[allowicons] or $post[iconid]==0) {
if ($showdeficon) {
$post[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">';
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 08:58 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.05434 seconds
  • Memory Usage 2,306KB
  • 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
  • (3)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
  • (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