![]() |
Quote:
Code:
<input name="r2" type="radio" value="" onClick="toggleT('e$post[postid]','s')"><smallfont>QuickEdit</smallfont> Code:
<a href="javascript:return false;" onClick="toggleT('e$post[postid]','s')"><img src="http://www.yoursite.com/forums/images/quickedit.gif" border="0"></a> |
hello,
This works fine, but a minor problem is what i have. Like, when i click on the image in the post, the window opens up...there the hide radio button is already selected, which should not be so. How can make it so that the Hide option is not selected by default. Inspite of working fine, it gives me java script erros, how can i avoid showing those java script erros in the status bar. Thanks for any help. |
You could use a regular button instead of the "hide" radio button to solve the problem.
Find this: Code:
<input name="r2" type="radio" checked value="" onClick="toggleT('e$post[postid]','h')"><smallfont>Hide</smallfont> Code:
<input name="r2" type="button" value="Hide" onClick="toggleT('e$post[postid]','h')"> Code:
<a href="java script:return false;" onClick="toggleT('e$post[postid]','s') return false;"><img src="http://www.yoursite.com/forums/images/quickedit.gif" border="0"></a> |
Okay, the Hide problem is solved.
But replacing the new code for image still has problem. When i replace it with the new code in your previous post, and check for the functionality, i get a page not found error when i clcik on the image. Also, when the page load, i get java script errors. Thanks for any help. cheers Quote:
|
PurpleCow,
My bad, I made a mistake in the code above. Try this instead: Code:
<a href="java script:return false;" onClick="toggleT('e$post[postid]','s'); return false;"><img src="http://www.yoursite.com/forums/images/quickedit.gif" border="0"></a> {edit} I just noticed that the image button version will not work with mozilla type browsers. So if thats what you're using you should stick with the radio button version. |
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! Also, both versions now have a check box to include the signature. |
Screenshot of image button version:
|
EvilLS1 - Thanks for the zip file. I have a question before, i proceed with the image version installation.
Now, if i want to install image version, do you recommend un-installing the radio button version and then proceed with image version ?? or much of it remains same excepting a few changes ?? And yes, I am using IE6 and not mozilla. I am also testing it on IE6 only. Quote:
Thank you very much for your valuable time. |
The code in functions.php is the same, but you'll need to remove the radio button version's changes to the postbit template and then replace the whole showthread_quickedit template with the html in the instructions above.
Quote:
|
Quick fix for something that screwed up my computer but apparently is sporadic:
Find "<script type=text/javascript> " in your headinclude template and change it to "<script language="JavaScript"> ". For some reason my computer was processing the text/javascript command as an infinite loop and it caused my CPU usage to skyrocket to 100% and stay there till I loaded another page. Not sure if this will affect anyone else, but if it hit me it may hit someone else, so it's worth a shot to change. No functionality of the hack is changed by editing that line, for the record. |
PacknCanes,
Thanks. It doesn't do that on my computer but I'll update the instructions just incase. |
Works great! My board's members are quite lazy, as I am too. ^^;
/me installs! |
Thanks man, this is a great hack and I clicked install :)
|
Thank you. :)
|
Wonder!
|
This is a very good hack, guys! Thanks so much.
|
Does this not use all the post data twice? I mean...When you pull up the thread with all the posts, does it not have all the post data twice? One for the display and one just in case the QuickEdit is clicked? I mean I like this hack a lot and have it installed, but would it not been nicer to hit the DB if someone clicks on QuickEdit to pull just that posts data when using the feature? Think of the bandwidth increase.
Thanks. |
Quote:
It only loads the text for the person who is viewing his own post, not in all posts. Unless you post a mile long novel it will not be noticible in load times or bandwidth. Its just a few lines of text per thread. A small icon would take longer to load and use more bandwidth. |
You don't suppose it might be behind these problems, do you?
http://www.vbulletin.com/forum/bugs....iew&bugid=1824 I am pretty certain it's the only change I've made to showthread. |
Thank you kindly. I do see that now. I was set as a admin thus all the posts had the data.
I think I found another bug though. If it has been noticed already, I am sorry but I did not see it. Issue...If you are subscribed to a thread it will automaitcally unsubscribe you from that thread if you use QuickEdit. Please advise. |
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> |
Quote:
|
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. |
Quote:
Code:
<input type="hidden" name="email" value="yes" $emailchecked> |
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. |
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 |
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 |
Please be so kind to look into it, for I would hate to remove this very nice hack.
|
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 |
David,
In admin/functions.php find: Code:
if ($post[username] == $bbuserinfo[username]) { Code:
if ($post[username] == $bbuserinfo[username]) { Code:
<input type="hidden" name="email" value="yes" $emailchecked> |
Thanks for the help.
Sorry...Same error as I was getting. Fatal error: Call to a member function on a non-object But your code seems much nicer. |
Quote:
|
You did remove all of the code that you added earlier right? You could try adding this to a fresh (unhacked) functions.php to see if it works.
|
Pondering...Can't see why it would not work, after all, it is just a call to the DB to look up a status and set a value.
Note...I am also using this if it makes a difference... Code:
if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) { |
That shouldn't make any difference.
|
Code is as such...
Code:
if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) { May I send you my test functions.php file vai e-mail? If so, please be so kind to PM me your address. |
Try it on an unhacked functions.php and see what happens..
Also make sure you have the code placed in the right place (above this): //highlight words for search engine I'm using 2.2.8 and its working like a champ for me. |
If I did that, some other items would surely fail. :) (That being to put in a fresh functions.php)
|
It does not like this line it seems...
Code:
$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1"); |
Quote:
|
All times are GMT. The time now is 12:51 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:
|