![]() |
Quick Edit! -Edit posts directly from within the thread itself
Hi,
This hack will allow your users to Edit their posts without having to load the editpost page.. How it works: In the bottom lefthand corner of all your posts will be a small "QuickEdit" radio button (users will only see it in posts which belong to them).. When you click it a small text box will instantly drop down below your post allowing you to edit it in the thread itself. This will save you a lot of time when fixing those spelling mistakes, typos, or broken links. Very easy to install.. One file edit, two template edits, and one template to add. Credits: Thanks to T?Pau's javascript add-on this hack now works with Mozilla. screenshots View after clicking the QuickEdit radio button: Screenshot #1 View before button is clicked: Screenshot #2 Download Quick Edit (Click Here). Update: For those who prefer an image button instead of a radio button use these instructions. Note: Image button version does not work with mozilla browsers! Screenshot of image button version Also, added a check box for the signature to both versions. Quick Edit for VB3 can be found here. If you find this hack useful please click the install button. :) |
Screenshots
View after clicking the QuickEdit radio button: |
View before button is clicked:
|
Instructions for those who have already installed my QuickQuote 1 hack:
{edit} These instructions are for those who have already installed the Quick Quote I hack, not Quick Quote II. QuickQuote II users will still need to use the instructions in the first post. |
Oh, nice hack... thank!
|
hey, looks nice :)
maybe i should install that one :) |
worked very nicely. thanx a lot.
l8er sonic |
very nice m8 ;)
|
Anyway this could be setup to allow Mods and admins to quick Edit others posts?
|
Thanks guys.
Quote:
Yes, if you want mods and admins to see the QuickEdit option in all posts, in admin/functions.php just use this instead of the code in the instructions: Code:
if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) { |
This is a very nice hack and my users love it, but clickable smilies in quickreply are not clickable anymore...
Is there a way to make them work ? Thanks anyway ! |
Quote:
Hmm... Try this.. In the showthread_quickedit template find "vbform" and replace it with "vbulletinform".. Let me know if that fixes it.. I'll update the hack instructions. |
Quote:
Oh, and thanks for the Mod and Admin settings. Works great. |
Quote:
{edit} I just added clickable smilies to my quick reply and its working fine for me.. So I'm guessing that you guys have also installed my quick quote addon for quick reply? And if you did, maybe you forgot to follow these steps in the instructions for the addon? Quote:
|
Nice, more hacks geared toward aiding our laziness ;)
|
Quote:
But it's now quite a long hack to install ;) |
Quote:
|
great hack. got it installed.
one thing tho, how would i change the code to make it popout instead of to the right but pop out top the left. this is only because I am using a image like the edit and quote ones and want to place it next to the edit and quote buttons in my postbit which are in the same place as the edit and quote on this site. at the mo, if i put the button there it scrolls off the page to the right. |
Quote:
|
Brilliant!!!
It rocks! My users absolutely love it! QuickHacks are cool ;) |
Thanks.. Glad you like. :)
|
Good use of JS again ;)
- miSy |
A few clicks of the mouse, and a bit of HTML editing for the postbit, and I have this working perfectly! Awesome hack! Simple install, and amazingly simple to use.
|
lol, great hack
/me clicks install |
Nice hack, I have lots of lazy members lol
|
Thanks. :)
|
very nice! :classic:
/me clicks install |
Quote:
[/high] ...so I made this Java Script working in Mozilla PHP Code:
|
Thanks man
this is a great hack |
T?Pau,
I just tested your code with Opera 7 and it works fine for me.. Also works with Mozilla now. Good job! With your permission I'd like to update the hack instructions and add your javascript for mozilla. I'll give credit to you for that in the main post of coarse. Let me know. :) |
Ok seems Im the only one to run into problems, hopefully you can help me out.
Forums are at http://www.newcelica.org/forums/index.php I followed all the instructions and when I try and click the radial it gives me a javascript error on the bottom of the page stating Line 711 Char 1 Error Object Expected Code 0 URL http://www.newcelica.org/forums/show...postid=1219521 Nothing actually pops up to edit anything. Im not sure what the problem is, figure it might have something to do with the quick quote that Im using. Im running your QuickQuote II. |
I'm having this problem too! I'm running Quick Quote II without problem, and I used the instructions for the QQ users.
I'm using IE6 and VB 2.26 if that's any help. Thanx |
Ok, I think thats whats causing your problem then. Those instructions are for people who installed my first QuickQuote hack (not Quick Quote II).. Sorry about that, I should have been more clear about it. Follow the instructions in the first post and it will work for you.
larryd, did you also use those instructions? If not, what browser are you using? Make sure you added the javascript to the headinclude template.. |
Still didn't work - until I put the JS in the headinclude (you'd said to skip that if one had QQ installed). Working fine now. :)
Great hacks! Thanx |
Quote:
|
Thats what it was, I did not add the script into the headinclude. That would make alot of sense huh :) THANKS and great hack.
|
Ooh, I think I found a bug! Well maybe not a bug, but a little problem. Or big one, depending on your board setup......
I have one forum on my board that allows guests to post - basically in case it's a member with problems or someone having probs registering. Anyway, I was having a look thru that forum just now - logged out - and there is one post there by an Unregistered (actually a member who forgot to log in). I was intrigued to see the quick edit button there. So I clicked it and ya, up the box popped! So I guess, the unregistered will be able to edit each others posts. :eek: Not a major problem from my standpoint as guests rarely post there, and I can switch off the access so they can email me if they have tech probs. I should imagine for people with boards that allow guests to post it would be a bit of a problem though. Have I mentioned how much I love this hack?? It's saving me a ton of time! :) |
Ah, might not be as bad as it looks. Just edited said post but I got the No Permissions page - which is interesting as Guests do have permission to post there. Maybe because Guests can't edit their posts? Hmmm. I can't see how it would know who the original guest was, so I'm guessing in spite of the edit button and box coming up that Guests posts can't be edited via the quick edit? Cool. Be amusing to watch people try. ;)
|
Yeah all the same permissions in editpost.php still apply. :) If you want the quick edit button to be invisible to unregistered posters just use this code in admin/functions.php instead of the code you added from the instructions.
Code:
if ($post[username] == $bbuserinfo[username] and $bbuserinfo[userid] !=0) { |
I cant click my post reply button anymore. wtf?
|
All times are GMT. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|