PDA

View Full Version : Show Thread Enhancements - EditPost Button Highlight in Postbit


Pod
12-15-2009, 10:00 PM
Why?

This little mod tries to address two common problems:

- Sometimes, by mistake moderators might click "Edit", and modify the original post thinking they are quoting the post.

- Users that realize they forgot to say something, and double post instead of editing their first post.

What?

This mod highlights the Edit Post button in the postbit, differentiating it from the rest of buttons and making it easier to notice for everyone. Such highlighting is archived by changing the background color and adding a striking hover effect.

Before vBulletin 4, this was easily archived by replacing the image of the edit button. Now it can't be done that way, since buttons are designed using CSS.

How?
Download the XML file, and import it in your Admin CP.

If you want to change the colors used, to match your style or simply because you don't like my taste, you can easily manipulate this mod using four StyleVars:

- pod_editButton_background: Background used in the edit Button.
- pod_editButton_color: Color for the text in the edit Button.
- pod_editButton_hover_background: Background used in the edit Button when the mouse hovers the button.
- pod_editButton_hover_color: Color for the text in the edit Button when the mouse hovers the button.

Disclaimer
Consider this mod in beta stage. Hasn't been yet tested in an extensive set of environments. If you find any bug, please tell me and I'll try to fix it when I have time. This mod is released as is, with the hope it might be useful to the community without any warranty.

History
12/16/2009 - 1.0 Initial (beta) release

01/24/2010 - 1.1 Requires vBulletin 4.0.1
Takes advantage of headinclude_botom_css (i.e, will no longer break if default CSS is stored as files).

Alecsmith
12-16-2009, 03:51 PM
Installed working perfectly

Cface
12-17-2009, 03:50 AM
One small problem i noticed is that it overlaps the edit pencil icon in the button, so now there are two of them...

Pod
12-17-2009, 08:45 AM
One small problem i noticed is that it overlaps the edit pencil icon in the button, so now there are two of them...

Which browser and version do you notice that?

RaceJunkie
12-19-2009, 01:15 PM
Good idea, I have done this myself.. Tagged for gold release.

Vaupell
12-19-2009, 02:30 PM
HAHA that is nice,, love it..

Installed at once.. :D

bart6767
12-19-2009, 04:40 PM
Thanks .

garretbyrne
12-22-2009, 02:35 AM
Nicely Done Mate..

Brew
08-04-2012, 03:07 AM
Is this working with ver 4.2 pl2?

Thanks!

imported_dfmafia
08-04-2012, 03:26 AM
Is this working with ver 4.2 pl2?

Thanks!
Nope, no joy on vB 4.2.0 PL 2

Pod
08-04-2012, 12:45 PM
Is this working with ver 4.2 pl2?

Thanks!

It sure works for me on a fresh 4.2.0 install.

See attached screen shot.

Pod
08-04-2012, 12:46 PM
Nope, no joy on vB 4.2.0 PL 2

Sorry, but it does work for me. Maybe some other mod is interfering in your installation?

Nirjonadda
08-04-2012, 01:02 PM
Its not working on 4.1.10 ! Have an update for work ?

Brew
08-04-2012, 04:06 PM
Meh

It didn't work for 4.2 pl2

I even tried several colors in pod_editButton_background

:/

Does it only work with new posts?

Nirjonadda
08-04-2012, 04:28 PM
Does it only work with new posts?

No , Its Does not work old and new post.

Pod
08-04-2012, 04:37 PM
Meh

It didn't work for 4.2 pl2

I even tried several colors in pod_editButton_background

:/

Does it only work with new posts?

Should work for all posts, not only new.

I can take a look at your site if you have a test installation, if you wish.

Brew
08-04-2012, 04:45 PM
Should work for all posts, not only new.

I can take a look at your site if you have a test installation, if you wish.

My site is at politicalforums.net

Thanks!

Pod
08-04-2012, 06:59 PM
My site is at politicalforums.net

Thanks!

Is your headinclude_bottom template edited? Does it contain the template hook:

{vb:raw template_hook.headinclude_bottom_css}