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
  #42  
Old 01-20-2002, 09:29 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having a little problem with this..

When i edit a post.. it just shows the Edited By: blah blha

but doesn't even show the reason at all...?? Any ideas?

Ciao
Reply With Quote
  #43  
Old 01-20-2002, 03:18 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

spectacular hack firefly!
Reply With Quote
  #44  
Old 01-20-2002, 04:17 PM
Stretchr's Avatar
Stretchr Stretchr is offline
 
Join Date: Dec 2001
Location: Georgia, USA
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. Allows me to pull foot from mouth....and add a smile when I do it! Thanks, FireFly!
Reply With Quote
  #45  
Old 01-20-2002, 11:36 PM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me?

Ciao

-Trip
Reply With Quote
  #46  
Old 01-21-2002, 08:03 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you added the right stuff to the edit templates?
Reply With Quote
  #47  
Old 01-21-2002, 03:28 PM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I believe so.. However, I will uninstall this hack, and then reinstall it and i will let you know how it turns out ok?

Thanks for your patience FireFly!

Ciao
Reply With Quote
  #48  
Old 01-22-2002, 11:04 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I hvae uninstalled it, and reinstalled it.. I am guessing it is something to do with functions.php

here is the part of the code that contains where i have to edit...
Code:
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]);

		eval("\$post[editedby] = \"".gettemplate("postbit_editedby")."\";");

// 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]) {

and this is the part in my postbit template ->

Code:
$post[attachment]
	<p>$post[signature]</p>
	<p> $post[editedby]</p> <br> $post[editedreason]

	
	</td>
</tr>
<tr>
Any idea?

Ciao
Reply With Quote
  #49  
Old 01-22-2002, 12:00 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks fine... hmm are you sure you edited editpost.php correctly? Can you see the Edit Reason input box when you edit a box?
Reply With Quote
  #50  
Old 01-22-2002, 07:30 PM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. I can see the edit box.. and i can enter in a message.....

Ciao
Reply With Quote
  #51  
Old 01-22-2002, 10:16 PM
Stretchr's Avatar
Stretchr Stretchr is offline
 
Join Date: Dec 2001
Location: Georgia, USA
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't know if someone's already suggested this but if you can see the edit box and nothing shows, make sure you aren't doing what I did. I had the "Show edits by Admins" box ticked to NO. Once I changed that, everything was fine.
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 02:29 PM.


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.06232 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
  • (2)bbcode_code
  • (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