Nov 23, 2009

Alpha Release Astahost Credits Reporting Extension - for Firefox, of course

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > JavaScript

Alpha Release Astahost Credits Reporting Extension - for Firefox, of course

miCRoSCoPiC^eaRthLinG
Hi guys,
    [/tab]I'm almost finished with coding an extension for Firefox that'll enable Astahost Hosted Members (and later on Trap17 too) to view their current hosting credits count right off the status bar of their favourite browser - even if you're NOT visiting astahost.

[tab]This will always keep you upto date with your credits count - and alert you whenever your credits count dips below the safe zone. The extension comes with 4 different coloured icons - BLUE, GREEN, AMBER and RED - which gets displayed along with your credits. It is meant to provide a visual indication of the safety region you're in.

    [/tab]Some sneak previews can be seen at: javascript: Help With Fetching Data From Webpages

[tab]Here I present you with the extension that's been developed so far. This is ONLY an initial ALPHA TEST RELEASE - and meant ONLY for the Experienced Users. The intention is to have feedback about the functionality and/or any BUGs. Proceed with caution. If you don't know what you're doing, you might cause Firefox to stop working altogether, and depending on the severity of the problem, you may have to reinstall it.


Tested Platform(s):
  • Windows 2000/XP
  • Linux

Software needed for testing:
  • Firefox 1.5 minimum - this won't work with any versions below 1.5. The extension packaging format follows the new standard set for extensions for FF 1.5 and above.
  • A working installation of Apache and PHP

Extension Files Attached:
  • astahostcredits.zip - this file contains all the required files for the extension. The files here are written in XUL and JavaScript.
    Click to view attachment
  • XML Server.zip - this file contains all required files for a XML RPC Server that will respond to the extension's request for credits count and supply the data in XML format. This script is intended to finally run on the Astahost Server. The files in here are written in PHP.
    Click to view attachment
  • {0820C32E-7947-495d-ACEC-3AA7ADBF608A}.txt - this is actually a plaintext file without any file extension. This file is named after the GUID (Globally Unique ID) of the Credits Reporting extension and simply contains the path to the extension folder.
    Click to view attachment

=====================================================
    [/tab][tab]    [/tab][tab]Installation
=====================================================

Step 1
    [/tab]First of all take the file astahostcredits.zip and unzip it into any folder of your choice. Make sure you maintain the folder structure under this file, or else the extension won't work. Lets take for example, you unzipped the content into a folder called creditssystem/.


Step 2
[tab]Take the file XML Server.zip and unzip it into any separate folder under your webserver's document root. Say you placed it under a folder called credits/.


Step 3
    [/tab]Take the file {0820C32E-7947-495d-ACEC-3AA7ADBF608A} and place it in the extensions folder found in your Firefox Profiles directory.
Generally your Profiles folder can be found by following this route:
Documents and Settings > Your_Windows_Username > Application Data > Mozilla > Firefox > Profiles > some_random_numbers.default > extensions.

Once you've placed the file here, you should open it in a plain text editor. You'll find a single line in this file, which points to a folder that contains the credits extension. Change this one to wherever you unzipped the extension files in STEP 1.

Next, you should remove the .txt extension from the end of this file. THIS IS ABSOLUTLEY NECESSARY, or else the credits extension won't load at all. After removing the file extension, this file should look like: {0820C32E-7947-495d-ACEC-3AA7ADBF608A}


Step 4
[tab]Open the folder you created in Step 1. Under it, find the file, \chrome\chromeFiles\content\credits.js.
In this file, 15th line from the top, you'll find:
CODE

var creditsURL = " http://10.19.168.5/credits/credits-xml.php


Change this URL to point to your webserver folder you created in STEP 2. For example, in your case if you'd created a folder called credits/ in STEP 2 AND your webserver is on the same computer, i.e. localhost, this url might look like http://localhost/credits/credits-xml.php


Step 5
[tab][/tab]That's all - if you did all the steps mentioned above correctly, when you launch firefox next, the extension should show up in your status-bar, with a RANDOM Credit Count.
=====================================================
    [/tab][tab]    [/tab][tab]End of Installation
=====================================================



Post-Installation Step:
[tab][/tab]Once you've successfully installed it, you need to set an username and password into this extension. Simple Right-Click it and select Configure Credits System. Enter the following:
Username: micro
Password: mpass

    [/tab]The refresh duration can be set to anything you like - but it won't affect the work of the extension in any way at this point. The auto-refresh at a given time interval hasn't been coded yet.

[tab]Right now - for testing purposes, everytime you left-click this status-bar panel, it should contact your web-server, get a random credit count and show it to you. The associated ICON should change it's colour depending on the fetched credits count.


    [/tab]Any feedbacks/bug reports will be much appreciated. Also if you get any sudden bright sparks about new features that can be added to this OR any design changes you'd like, don't forget to post back.


[tab]Awaiting your early response to help me further along the development roadmap smile.gif

Best Regards,
miCRoSCoPiC^eaRthLinG

 

 

 


Comment/Reply (w/o sign-up)

vizskywalker
I'm going to triple check to mkae sure I have everything installed correctly but here's an error report:

System: PIII based Celeron OC 715MHz
384 MB RAM
Firefox: Version 1.5 Stable Release
Extension: Alpha Version
Errors: Upon single left clicking, the extension changes from the astahost logo and a listing of 0 credits to "Credits (days): Refrehing Cre" with the rest cut off, no picture.
Upon Single right clicking nothing happens

~Viz

Comment/Reply (w/o sign-up)

vizskywalker
Addition to above error report:

OS: Windows XP Pro

Upon using the extension manager to enter the username an password data:

Upon selecting the extension and clicking options, the following error report:
QUOTE
[Exception..."Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsPasswordManagerInternal.findPasswordEntry]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: chrome://astahostcredits/content/options.js :: credits_OnInit :: line 28" data:
no]


Upon entering the information and clicking okay or apply or whatever the button to set the informtion is, this error:
QUOTE
[Exception..."Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIPasswordManager.removeUser]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"location: "JS
frame :: chrome://astahostcredits/content/options.js :: credits_OptionSave :: line 62" data: no]


~Viz

 

 

 


Comment/Reply (w/o sign-up)

const
The thing you have written seems to be worth installing.
Now i'm surfing under Opera.
Yaknow it's really fast.
But to view your usefull art i will load firefox.
I have no doubt that your script will prove to be good.
Thank you)))

Comment/Reply (w/o sign-up)

miCRoSCoPiC^eaRthLinG
Viz: Will post the bugfixes tonight - in fact stupid me - I'd fixed those things already - but I mailed you the old files.. Urggh.. Anyway, got a flight to catch. So see you all at night smile.gif

I think you're using the files that I mailed you - so try once with the files posted here.. Make sure you uninstall the old extension first.

Comment/Reply (w/o sign-up)

vizskywalker
I tried the new files, and no luck. Still the same errors. Sorry sad.gif I'm looking forward to when we get this resolved. Could there be any other lines which need the url changed? I'll check.

~Viz

Comment/Reply (w/o sign-up)

dhanesh
Woow , seems like we have a head start on this one. No doubt m^e , this is one of the most useful things asta members could use. Since i m in the n00b group .. is it necessary to have Apache & PHP installed on my PC ? are those 2 somehow related to the working of the credits ? or are they just needed to respont to the server with queries you specify as a developer.

Awaiting a reply, and again .. words cant be enough but .. this is an awsome piece of work, good luck man.

Regards
Dhanesh

Comment/Reply (w/o sign-up)

vizskywalker
Currently some sort of web server and PHP is needed on your computer to use the extension, simply due to the fact that the extension is only in alpha stages and has PHP components.

~Viz

Comment/Reply (w/o sign-up)

miCRoSCoPiC^eaRthLinG
In the final version first of all ou won't need to do all these - the extension will come in the standard .xpi format. You simply need to install it in Firefox and enter your forum username/pass. For now you need the PHP files, since they're the one's that'll fetch your credits and send them to the extension. Keep in mind, this is only a test release with the intention of bug and overall functionality testing.

I'll post the fixes tomorrow morning - too tired today after whole day of journey.. Am back in India now for 15-20 days. Just arrived smile.gif Over and out for today..

G'nite all

Comment/Reply (w/o sign-up)

miCRoSCoPiC^eaRthLinG
Alpha Release 2 of this extension in a pre-packed format is now available.

See =>
http://www.astahost.com/index.php?showtopi...indpost&p=63261


This topic is closed. If anyone wishes to discuss further on it, please PM me and I'll open it again. For any discussions regarding the new release of the extension, follow the above mentioned thread.

Regards,
m^e

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : alpha, release, astahost, credits, reporting, extension, firefox

  1. Settimeout() & Focus() Not Working With Firefox
    (1)
  2. Focus() And Select() Problems With Firefox
    (2)
    Hi guys, I am new to javascript and am currently learning it with the book Wrox Beginning
    Javascript 3rd ed. I have just encountered a problem that I am not able to figure out. Could you
    please help me out..... The problem is that select() and focus() are not working in FF2.0 but works
    in IE7. This is what the code is supposed to do: 1. I enter a age 2. If I enter non numerical data
    and then I tab out of the text area 3. An alert box pops up and tells me to correct the age. 4. On
    hitting ok it goes back to the age field. But in FF its going to the next tag(the submi....
  3. Formatting Alerts/confirm In Firefox 1.5.0.1
    (3)
    I was trying to use the \t to tab in Firefox 1.5.0.1. It works in IE 6. I haven't tried it in
    other other browser, but I was wondering if there's something I'm doing wrong. I tried a
    simple test page to see if it was my script, and the test page gave me the same results. It worked
    in IE6 but not Firefox. I also tried putting in " " for tabs instead of using the \t escape.
    Firefox just ignores the white space I guess. Any ideas on formatting it? I'll post the test I
    did: CODE function test(){ alert("\t\tCENTER!\t\t"); } --> ....
  4. Ajax Shoutbox For IPB - Beta 2 Release
    (0)
    Hi guys, Here's one of our preview releases of the projects going on under Antilost - an AJAX
    based ULTRA-LIGHT (only 20KB) Shoutbox, that works extremely fast and without refreshing your whole
    page. Can be easily integrated into IPB - although full integration module not ready yet. You can
    get the files for the Beta 2 Release at:
    http://www.antilost.com/community/index.ph...w=findpost&p=34 The code has been released under
    GNU/LGPL and bY downloading and using it, you agree to abide by the terms and conditions set forth
    in this license. Regards, miCRoSCoPiC^e....
  5. Alpha R2 Astahost Credits Reporting Extension
    (22)
    Hi guys, Am back with a bunch of bugfixes and a pre-packed extension this time. All those crazy
    error have been taken care of (of course to be surpassed by another batch of reports from you all
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> - that's life).
    Anyway, this time I've ensured that you don't have to undergo any complicated setup process.
    The extension is packed in the usual .xpi format - so you just drag and drop it into your extension
    window and restart firefox. Requirements: 1. Firefox 1.5 and above - this WO....
  6. Need Drop Down Menu Script
    Current not working in firefox (1)
    I'm in need of a drop down menu script. The one I am currently using was written to work in
    both ie and netscape, but does not work in firefox. /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" /> I new at installation that the author had stretched the
    rules abit to make it work, but didn't expect firefox to come out. I don't care what
    language it is written in as long it works If you have ie you can see an example at:
    http://66.78.26.33/~ruidoso/ I would appreciate any help you can recommend pete....

    1. Looking for alpha, release, astahost, credits, reporting, extension, firefox

See Also,

*SIMILAR VIDEOS*
Searching Video's for alpha, release, astahost, credits, reporting, extension, firefox
advertisement



Alpha Release Astahost Credits Reporting Extension - for Firefox, of course

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com