PDA

View Full Version : IPB Style 'Quick' or 'Full' Edit Chooser


vBulletin THEN DAYLIGHT
05-17-2006, 10:00 PM
BEFORE YOU INSTALL - I AM NOT OBLIGED TO SUPPORT THIS MOD, IT MAY NOT WORK PROPORLY DEPENDING ON WHAT YOU HAVE IN YOUR FORUM SOURCE.

What this template mod will do is make the 'Edit' button a drop down menu, giving you a choice between Quick Edit and Full Edit.

Template Modifications : 1
Install Time: Just a minute or two
Difficulty Level: Easy.

--------------------------------

Installation

Instructions for installation of this modification are contained within the attached zip folder.

Special thanks to Colin F for a bit of help with a problem I had doing this, much appreciated :up:

-------------------------------

Version Updates

v1.00 - Release
v1.10 - The feature is now disabled when the quick edit feature is disabled.

peterska2
05-17-2006, 11:41 PM
Can you put all the instructions into a text file and attach them please.

Also all code must be wrapped using code tags so unlicenced users cannot see it.

Thanks.

Zachery
05-17-2006, 11:54 PM
Personally that menu annoys me in IBP, however change

vbmenu_register("$post[postid]"); to vbmenu_register("$post[postid]", 1); to get rid of the arrow.

vBulletin THEN DAYLIGHT
05-18-2006, 12:33 AM
Can you put all the instructions into a text file and attach them please.

Also all code must be wrapped using code tags so unlicenced users cannot see it.

Thanks.
No problem, I'll get right on it.

vBulletin THEN DAYLIGHT
05-18-2006, 12:34 AM
Personally that menu annoys me in IBP, however change

vbmenu_register("$post[postid]"); to vbmenu_register("$post[postid]", 1); to get rid of the arrow.
It bugs me having to go through Quick Edit to go advanced, which I why I made it :P :)

Thanks for that Zachery, I will adjust the code.

Zachery
05-18-2006, 12:42 AM
You could disable it?

vBulletin THEN DAYLIGHT
05-18-2006, 12:43 AM
You could disable it?
You mean the Admin or the user?

Zachery
05-18-2006, 12:50 AM
The admin, you can also click the edit button twice to get to the fulledit screen.

vBulletin THEN DAYLIGHT
05-18-2006, 01:05 AM
The admin, you can also click the edit button twice to get to the fulledit screen.
Can you? I could never do that. If I could I wouldn't of done the mod.

Regarding the admin option to disabled it, no, not at the moment. By installing this you are choosing for quick edit to work like that on your forum. Only update I currently have planned is disable it when quick edit is disabled.

Zachery
05-18-2006, 02:36 AM
Click on the edit button twice here and it should load the advanced editor.

GrCh_Jeff
05-18-2006, 04:04 PM
Well If you have computer illiterate users then this hack helps.I personnally like the effect but to each thir own.Thanx for your hack,time.INSTALLED.

E.A.

Gizmo5h1t3
05-18-2006, 04:10 PM
personaly i think this would save time having to go to quick edit, then click advanced....it goes straight to it when u click full edit...nice work...

Snake
05-18-2006, 08:51 PM
This is much much better. Thanks man! ^_^

Zachery
05-18-2006, 09:06 PM
To each their own :) I like it the way it is now, but I'm glad someone was able to make this.

vBulletin THEN DAYLIGHT
05-18-2006, 09:14 PM
Only problem I have with it on IPB is the unnecessary loading bar that pops up.

Just Matt Mecham showing off :p

rossco_2005
05-19-2006, 02:28 AM
Thanks, I personally like the idea. I hadn't thought of dealing with the problem this way, but back when we first got vb3.5 my members were complaining about the quick edit. :P

btw, even with this clicking the quick edit link a second time makes it go to the full editor. *shrugs*

edit: Actually i'm having problems with this now in my skin that uses mod_rewrite. I have <base url="$vboptions[bburl]" /> in the head to make sure URLs with slashes work, and for some reason it's making the quick edit link in this thread make the page go to forum index instead of just loading quick editor. :(

vBulletin THEN DAYLIGHT
05-19-2006, 07:38 AM
Is this the forum set as your homepage in your profile here? I have been on every skin and can't find the location of that code you say you have in headers so I can put it on my forum to test out your problem and hopefully find a solution.

I'm not that familiar with mod_rewrite :confused:

Hemanth
05-20-2006, 06:41 AM
Excellent hack..

Thank you..

This is really usefull as i'm from a slow dialup connection :)

alshehi
05-20-2006, 03:00 PM
thats nice

thank you

Iain M
05-24-2006, 12:09 PM
nice :)

rossco_2005
05-24-2006, 06:30 PM
Is this the forum set as your homepage in your profile here? I have been on every skin and can't find the location of that code you say you have in headers so I can put it on my forum to test out your problem and hopefully find a solution.

I'm not that familiar with mod_rewrite :confused:
Sorry for not replying, view here: http://filesharingtalk.com/vb3/f9-Everything%20Related%20to%20the%20Board.html (Yes it's that forum, you need to be on forum home or in a thread).

Thanks for taking a look.

Nathan2006
05-25-2006, 05:15 AM
Click on the edit button twice here and it should load the advanced editor.

Thanks Zachery I never knew that ;) I do now

Hemanth
05-28-2006, 05:54 AM
It's making me mad.

I've installed it but it works some times but in most cases it gives me the forum home page.

How to do it. :)

Chicago_VLNU_4s
09-03-2006, 08:59 AM
nice... but i've always wanted to ask, why can't i quick edit?? i click it and it doesn't do anything. But full edit works, why wont quick edit? What do i have to do to enable quick edit? thanks

yoyoyoyo
12-17-2006, 01:44 PM
nice... but i've always wanted to ask, why can't i quick edit?? i click it and it doesn't do anything. But full edit works, why wont quick edit? What do i have to do to enable quick edit? thankssame here - works great except for that bug

Ov3rrun
02-29-2012, 11:57 PM
I have fixed this mod in VB 3.8.7


Open the postbit or postbit_legacy template depending on which one you use on your forum.

Carry out the following modifications to the template:


FIND:


<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>

REPLACE WITH:

<!-- controls -->
<if condition="$post['editlink']">
<if condition="$GLOBALS[vbulletin]->options['quickedit']">
<span id="$post[postid]"><a href="">
<img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0"></a> <script type="text/javascript"> vbmenu_register("$post[postid]", 1); </script></span>
<else />
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
</if>


GO TO BOTTOM OF TEMPLATE

ADD:

<if condition="$GLOBALS[vbulletin]->options['quickedit']">
<!-- editchooser -->
<div class="vbmenu_popup" id="$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td><a href="$post[editlink]" name="vB::QuickEdit::$post[postid]">Quick Edit</a></td></tr>
<tr><td><a href="editpost.php?p=$post[postid]">Full Edit</a></td></tr>
</table>
</div>
<!-- / editchooser -->
</if>

Enjoy it!