VBForums FireFox Extension Alpha 1 is here! (update Aug 16)
As I mentioned couple months ago, I wanted to work on a Firefox extension to add quick and easy functionality to VBForums like the Right click functions that only works in IE that many of you have seen before, but this time for Firefox. This finally working alpha version give you right click functions to Bold, Code, and Quote selected text.
More will certainly follow now that I finally got the basics workin. Just open this file with firefox and restart Firefox.
If you have anything to report on it, let me know. Suggestions for other features is welcome,
Note that since xpi is not a valid upload extension here, I have renamed it .zip. Download and rename it to .xpi
This is working in Firefox .9.3
Edit Aug 16th: Added highlight tagging now thanks to NoteMe
Last edited by Cander; Aug 16th, 2004 at 09:01 AM.
Once I got it downloaded and installed, it works like a charm. Any chance you might be willing to share the code? I'd like to have a crack at setting something up for a web-app I use....
You got the code. The xpi is just a zip file. Then just extract the jar file in the chrome directory which is also just a zip file. The bulk of the code is in the content directory.
192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
Posts
3,051
Ok. Who are you, and what have you done with our rude Cander?!?
Nice work!!
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Originally posted by Cander Color picker dialog work in progress:
I would never have thought about that....is that some sort of standard controll or do you build it from scratch? What about having one like in PSP where there is all the colors, and not just 30 or so boxes with colors...???
Its an XUL widget. You cant have a million color picker. Choice are gray scale and web safe colors.
Having some problems with the color picker widget, as usual. Doesnt work like advertised, just like alot of stuff in XUL.
I SHOULD be able to use the onclick event to get the choosen color with colorpicker.getAttribute('color'), but it doesnt get any value at all. It works if I set type to button, which gives you a button, that when you click, the color swatch drops down. But Id rather have the swatch type fully visible. So gotta do some more research.
Hoping to get color picking and gradiant working today.
Any text editor. All it is is XML style syntax and Javascript.
To compile, you just compress the files to zip. The core code content is zipped to a .jar file, and then the .jar and install files are zipped to a .xpi file. Just plain old winzip is used. No special compiler is needed.
The XML syntax stuff is XUL and RDF, which you can learn about at www.xulplanet.com
Would it be possible to have it check the user CP and display a little icon when you get replies to threads. I think the gMail extension does something similar when you get new mail.
Hmm. Not sure. I kind of doubt it. I dont see any feasible way to do that. Checking an email box is different, because you can easily just store the date/time of the last email you got, but on a board, I would have to constantly store every post you have made then search each one if it has replies.
The user cp displays the threads replied to most recently so it would only need to look there. If there are any threads, it will show the icon. It could check for any of "firstnew.gif" image as that appears when a subscribed thread has a new reply.
I added some code for the [hl] tags....but I must have done something wrong...first of all, I could not uninstall the old extension....second of all I tried to disable it...then install the new one I made, but it was no hl thingy in the menu...
You shouldnt have to uninstall. Should overwrite the old version assuming you didnt change the GUID. As to why it didnt work? Uplaod the xpi and ill take a look and see if I can see the problem.
WEll I must admitt that I didn't look more then 2 minutes at the code...and changed two things......not sure if that is enough.,...but I got no errors...nothing happend...
Thew problem is your packaging which is what I figured.
If you open the xpi, the vbf.jar should be in chrome directory, not vbforum/chrome, and the other 2 files shouldnt be in a sub directory at all. Also in the jar file, all the directories start with /vbf which the should not.
I find that winrar does a better job at creating the zips that winzip. So try winrar instead.
My process involves highlighting the content, locale, and skin folders and right click then Add to Archive(Winrar's contenxt menu addition). Then select the zip radio button and rename vbf.jar.
Then copy the jar file to the chrome directory, then highlight chrome directory, install.js, and install.rdf and Add to Archive again. selecting zip radio button and naming it to a xpi file.
****..no......ehhee....well here it is...tried to install it agian...and now it said it was sucsessyully 4 times...wonder if I do it again..maybe I get 5 notifications...
Yeah I did....I think I ****ed it up......will try to restart my machine....I think something went wrong when I tried something earlier....hope I don't have to reinstall FF...
Hehhee...A freaken reboot was all I needed....I think I know what went wrong...
After you told me I had zipped it up wrong...I deleted my files, then I tried to download your file, so I could start from scratch...but since you have a space in the file name, FF (at least 0.8) ****s up some times. If I am lucky it downloads it and cuts of the rest after the space...but this time I just hang...so I shut down FF, and tried again.....and then probably some of FFs prosesses was still hanging in WIn somewhere.....but now it works...