PDA

View Full Version : New Posting Features - Single Post Edit Override


Ody
12 Oct 2006, 00:38
This mod allows you to enable an "edit override" on individual posts, after the global edit timeout has expired.

This is useful for info/faq type posts that require constant updating, after the global edit timeout has expired.

It works by adding a single button to each post that you simply click the toggle the override status of the post in question.

This is my first vB mod and was developed and tested only on vB 3.6.1. As it's my first mod, if you find i've done something wrong or could do something better, let me know :)

As always, if you use this, don't forget to click the installed link :)

harmor19
12 Oct 2006, 01:48
This is a good hack. Some screenshots would be nice.
If you would like to be the first poster just report this post to a mod and have them delete it.


Welcome to the coders' circle.

Ody
12 Oct 2006, 05:05
Thanks :)

I've added some screen shots to the post as per your suggestion.

harmor19
12 Oct 2006, 06:09
You have red indicating enabled and green indicating disabled. I think you should switch them.

I don't think the word "(editable)" is needed.

How are people supposed to select which forums to apply this too? In your last screen shot you have an option to enable the feature.

Elleffgee
12 Oct 2006, 07:55
How are people supposed to select which forums to apply this too? In your last screen shot you have an option to enable the feature.

Hello:

I thought I would share a bit about how I'm using this hack, hopefully to provide others with more information about its possible uses.

My site is an unauthorized rants and information forum for players of the on line game EverQuest II.

Ody kindly volunteered to write this hack after another user requested the ability to maintain and update a list within a thread. I am brand new to vBulletin and don't have a lot of expertise with this software or the related technology. So I did a little research and was surprised to learn that the document edit times in admincp apply globally for users, and I wasn't able to assign edit rights to a single user for a single document.

This hack was important to my site, which is a flames board for users to argue about events and information involving a competitive on line game. At first, the edit rights on my board were set to 24 hours.

The problem with a long edit time was that some users would start very inflammatory threads against others, but would then try and cut their losses and delete their posts when public opinion turned against them. This left my site with several multi page threads where the original poster deleted half the posts in a thread, and all that remained were posts with opposing views. That basically killed these threads, you couldn't follow them with only one side of the story, and this resulted in many complaints. So after taking a vote from my users, I reduced the edit time for all users to just 15 minutes. The shorter edit time has worked very well for us, but I admit I wouldn't like it on a "normal" forum site.

I had several users that wanted to maintain lists of information that could be changed and updated daily in the first post of a thread. Ody's design is perfect for my site, because it allows me, as Admin, to click once in any post, in any thread on my site, to override the global edit time and allow the user who made the post to edit it whenever they want.

So in summary, this hack allows anyone signed in as Admin to override the global edit time on a post with one click, so the user who made the post can edit it anytime they want. To answer the question above, the hack applies to all forums. The hack only gives edit rights to the user who made the post, and does not grant edit rights to other posts in the same thread or elsewhere.

I feel like this is an extremely elegant solution for anyone who would like to override the global edit timer for users on demand for the purpose of giving give edit rights to one user for one post.

By the way, I have this installed with vers. 3.6.2, I've tested it extensively, and it works perfectly with the different skins on my site.

Thanks again to Ody.

harmor19
12 Oct 2006, 08:38
I gotcha now.

I'd like to see an option to select which forums will always override the global edit time.

Snake
12 Oct 2006, 09:40
Thanks.

Ody
12 Oct 2006, 12:44
It was only designed as an override for an individual post, hence why the forum option doesn't exist.

I don't think it would be to hard to make it so, i'll look into it.

With reference to the red/green thing, i'll make it an option, to choose which is which.

With reference to the necessity of the "(editable)", i'll make that an option also. It's there so that all users can see what can/can't be edited. Basically it's just there for transperancy of the moderation/admin process.

KidCharlemane
01 Dec 2006, 02:16
I gotcha now.

I'd like to see an option to select which forums will always override the global edit time.


+1

Something like this is needed.

Kintaro81
20 Feb 2007, 09:32
+2!

biggazillakilla
03 Mar 2007, 18:55
Hmmm... This might work for me, but I would like to be able to edit entire threads, not just the comments. Also, enabling this by user would be helpful in some cases.

beano33
06 Mar 2007, 06:40
Hmmm... This might work for me, but I would like to be able to edit entire threads, not just the comments. Also, enabling this by user would be helpful in some cases.

Check out the Threadamins (http://www.vbulletin.org/forum/showthread.php?t=117483) mod.

Noctavia
15 Aug 2007, 11:29
Installed and everything appears to work, but I get the error message:

The administrator has specified that you can only edit messages for 720 minutes after you have posted. This limit has expired, so you must contact the administrator to make alterations on your message.

I think it has to do with the * 60 part in the code.

( $this->post['dateline'] >= (TIMENOW - ($this->registry->options['edittimelimit'] *

60)) OR
$this->registry->options['edittimelimit'] == 0) OR
(($this->registry->options['editoverride_enabled']) AND ($this->post['editoverride']

== 1)
)
))
)

Noctavia
24 Aug 2007, 03:01
Sadly it looks like I won't be using this mod. After being unable to find out why it doesn't appear to bypass the set time limit (as per error message above), it was also pointed out to me that the edit button was appearing for everyone, not just the post author.

Shame as it was exactly what I was looking for too.

Noctavia
08 Apr 2008, 22:59
Ok, after changing my forum around a bit when I couldn't figure out the problem back in August, it now seems as if the mod has completely stopped working. Clicking to open up editing rights is no longer working...

Anyone know of another mod that allows me to allow users editing rights past the time setting?

Hornstar
24 Sep 2008, 05:22
What a shame, this is exactly what I need.

I want to give permission to certain posts where the user who made that post to be able to continue to edit the post and bypass the edit time limit.

Would be great if someone upgraded this to 3.7.x

sir bitter
26 Oct 2008, 22:58
I was wondering if there was a way to let moderators have access to the button instead of just admins.

sir bitter
12 Jan 2009, 04:52
Is anyone using this with 3.8?

home9000
20 Feb 2009, 11:31
does not work in 3.6.5

The members can't see the edit button

Hornstar
09 May 2009, 00:34
I would love for this mod to be continued. I would even give a donation to the person who does.

Been Told
09 Dec 2009, 15:57
I would love for this mod to be continued. I would even give a donation to the person who does.
Same here.

Been Told
09 Dec 2009, 16:19
Just checked - it's not working with 3.8.4.

If the mod developer decides to update this mod to work with 3.8 I would donate $40 right away.