Page 1 of 2 12 LastLast
Results 1 to 40 of 47

Thread: VBForums FireFox Extension Alpha 1 is here! (update Aug 16)

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2
    Lively Member Xcoder's Avatar
    Join Date
    Jan 2004
    Posts
    120
    what kind of new functionalities?
    Last edited by Xcoder : 09-10-2001 at 12:45 AM.

  3. #3

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Its an updated version of this

    http://www.vbforums.com/showthread.p...0&pagenumber=1

    but for firefox as that old one was IE only.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    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....

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.

    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I am glad to report that version 0.0.1 is working in FF 0.8 too...

    And I can see that there is an icon and tree sub menues too it...

    gjkdsgjkfsjgkes

    tsdhtdsjsjy6

    Code:
    j6tsj5tjt
    all three tests went well...



    PS Is there any short cuts yet?

  7. #7

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Not yet. Didnt even think about it at the time. But will start adding those in next release.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Genius

    Is this Firfox extension programming easy or hard?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  9. #9

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    easy. It just uses javascript and xul. XUL is just another HTML type markup language.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I must say that I love you for doing this...just tell me if you need any help...

    Kind regarsds a Muppet..

  11. #11

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  12. #12

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Color picker dialog work in progress:
    Attached Images Attached Images  
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  13. #13
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    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
    Have I helped you? Please Rate my posts.


  14. #14
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    Ilearnedsomethinggood!

  15. #15
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...???

  16. #16

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  17. #17
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Cander, what dev tools did you use to construct these extensions? How do you compile / make it compatible.

    I wanna make an extension now and I need to know where to start.

    Rude work sir.

  18. #18

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  19. #19
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Oh, so any fool can do it then. I only write programs if it makes me look intelligerent and cool.
    I don't live here any more.

  20. #20

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913


    Well not any fool. Mendhak couldnt do it! har har
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  21. #21
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

  22. #22
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Code:
    This kicks ass, good work :D
    This kicks ass, good work
    This kicks ass, good work
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  23. #23

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Small update

    Added Code From Clipboard option that will take data from the clipboard at put the code tags around it.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  24. #24
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  25. #25

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  26. #26
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  27. #27

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Ahh, ok subscribed threads. Yeah can probably do something like that.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  28. #28
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...

  29. #29

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  30. #30
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...


    I added these two lines:


    Code:
    <menupopup>
                  <menuitem id="context-bold" label="Bold" oncommand="vbf.vbf('bold');"/>
                  <menuitem id="context-code" label="Code" oncommand="vbf.vbf('code');"/>
                  <menuitem id="context-paste" label="Quote Selection" oncommand="vbf.vbf('quote');"/>
             <menuitem id="context-paste" label="Highlight text" oncommand="vbf.vbf('highlight');"/>
               </menupopup>

    [code]switch (myCommand){

    case "quote":
    vbf.insertAtCursor(theBox,"[quote ]" + str + "[/quote ]");
    break;

    case "bold":
    vbf.insertAtCursor(theBox,"[b ]" + str + "[/ b]");
    break;


    case "code":
    vbf.insertAtCursor(theBox,"
    Code:
    " + str + "[/ code]");
            break;
    
          case "highlight":
            vbf.insertAtCursor(theBox,"[hl ]" + str + "[ /hl]");
            break;
            
          default : alert("You did not pick an option");
        }
    and here is the file....just rename it...and you know the drill...
    Attached Files Attached Files

  31. #31
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    heheh..talk about messed up tags..

  32. #32
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Fixed them...some how......well at least added some spacing to them..

  33. #33

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  34. #34
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    **** **** ****...I must be the dumbest guy ever....I can't make this work...and now if I try to install it it says:

    The extension was sucsesfully installed...then I press OK

    thyn it says:

    The extension was sucsesfully installed...then I press OK

    then it says:

    The extension was sucsesfully installed...then I press OK


    I bet I have ****ed up FF good now...

  35. #35

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Upload the latest xpi.

    BTW about to update the official version with your highlight addition. Will replace the old one in above in a few seconds.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  36. #36
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    ****..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...
    Attached Files Attached Files

  37. #37

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Installed fine for me. did you close all running instances of firefox then reopen after installing?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  38. #38
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...

  39. #39

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Well if you have to, goto

    c:\documents and settings\<logged on user>\Application Data\Mozilla\Firefox\Profiles\default.***\extensions

    And delete the files in there and the directory {47F7B08F-38B3-4909-B5B9-983F4B71824B}
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  40. #40
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width