![]() |
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. |
All times are GMT. The time now is 10:21 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:
|