vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - EditPost Button Highlight in Postbit (https://vborg.vbsupport.ru/showthread.php?t=230321)

Pod 12-15-2009 10:00 PM

EditPost Button Highlight in Postbit
 
1 Attachment(s)
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

Quote:

Originally Posted by Cface (Post 1932049)
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

Quote:

Originally Posted by Brew (Post 2354235)
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

1 Attachment(s)
Quote:

Originally Posted by Brew (Post 2354235)
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

Quote:

Originally Posted by imported_df+++++ (Post 2354243)
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

Quote:

Originally Posted by Brew (Post 2354425)
Does it only work with new posts?

No , Its Does not work old and new post.

Pod 08-04-2012 04:37 PM

Quote:

Originally Posted by Brew (Post 2354425)
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

Quote:

Originally Posted by Pod (Post 2354433)
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

Quote:

Originally Posted by Brew (Post 2354436)
My site is at politicalforums.net

Thanks!

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

Code:

{vb:raw template_hook.headinclude_bottom_css}


All times are GMT. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01046 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete