The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Edit! -Edit posts directly from within the thread itself Details »» | |||||||||||||||||||||||||||
Quick Edit! -Edit posts directly from within the thread itself
Developer Last Online: May 2021
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. Show Your Support
|
Comments |
#102
|
||||
|
||||
David,
You can add the subscibe option by placing this next to your sig checkbox in the showthread_quickedit template: Code:
<input type="checkbox" name="email" value="yes" checked><smallfont>subscribe</smallfont> |
#103
|
||||
|
||||
Quote:
|
#104
|
|||
|
|||
That is great...however that just forces the subscribe. Now if they were not and they edit and do not uncheck the box, they are subscribed. I can move it to NO but that gives the reverse issue.
Any way to pull the correct setting? Thank you. |
#105
|
||||
|
||||
Quote:
Code:
<input type="hidden" name="email" value="yes" $emailchecked> |
#106
|
|||
|
|||
Thanks...sounded good but only made a blank space with the subscribe by default being on or off. That $emailchecked does not seem to have been set.
I also have QUICKREPLY installed and that does use a $emailbox for either "yes" or just a blank based on the users settings. It does work for that area of the page, but if I try to use the same $emailbox in QuickEdit it is always a blank. Stange that I can not use the same setting. |
#107
|
|||
|
|||
Hello....If you can find the answer for the above, that would be great for I have to many members now mentioning it.
In case you did not know...AVS Forum and TiVo Community Forum are very active. AVS even at the time of this post has 1245 users on-line. http://www.avsforum.com Thanks |
#108
|
||||
|
||||
David,
I wish I could tell you more, but I honestly don't know. I've never noticed this before because I have notifications turned off on my site. My server is down right now but when its back online I'll try a few things to see if I can make it work. If I figure out something I'll let you know. Dewayne |
#109
|
|||
|
|||
Please be so kind to look into it, for I would hate to remove this very nice hack.
|
#110
|
|||
|
|||
Ok, taking a lead from "Logician" with his UNSUBSCRIBE LINK IF SUBSCRIBED hack...I present the following code for you to look at. More or less it is part of his hack but changed for quickedit. I am thinking it can be put into the /admin/functions.php file right with your hack insert do we get the data needed when the template is called.
The issue however, is when I tried it, it gave me the error.... Fatal error: Call to a member function on a non-object in /home/avsforum/www.avsforum.com/avs-vb/admin/functions.php on line 275 I am thinking it is with the $threadid in the query not being read in and that is something I do not know how to do. Can you help? Oh...I would use the "$already_subscribed" below (value to be either 'checked' or ' ') to auto check the Subscribe to Thread check box you had made above. Code:
//QuickEdit Check If Subscribed To Thread $quickedit_userid=$bbuserinfo['userid']; if ($quickedit_userid!=0) { $user_subscribed_already=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$threadid' AND userid='$quickedit_userid' LIMIT 1"); $quickedit_subscribed_id=$user_subscribed_already[subscribethreadid]; if ($quickedit_subscribed_id>0) { $already_subscribed='checked'; } else { $already_subscribed=''; } } else { $already_subscribed=''; } //QuickEdit Check If Subscribed To Thread |
#111
|
||||
|
||||
David,
In admin/functions.php find: Code:
if ($post[username] == $bbuserinfo[username]) { $edittext = htmlspecialchars($post[pagetext]); eval("\$quickedit = \"".gettemplate('showthread_quickedit')."\";"); } else { $edittext=""; $quickedit=""; } Code:
if ($post[username] == $bbuserinfo[username]) { $edittext = htmlspecialchars($post[pagetext]); $subuserid=$post[userid]; $pthreadid=$post[threadid]; if ($subuserid!=0) { $subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1"); $poop=$subscribed[subscribethreadid]; if ($poop > 0){ $emailchecked="CHECKED"; }else{ $emailchecked=""; } } eval("\$quickedit = \"".gettemplate('showthread_quickedit')."\";"); } else { $edittext=""; $quickedit=""; } Code:
<input type="hidden" name="email" value="yes" $emailchecked> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|