|
|
|
|
![]() ![]() |
Dec 3 2005, 05:51 PM
Post
#1
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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):
Software needed for testing:
Extension Files Attached:
===================================================== [/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 Best Regards, miCRoSCoPiC^eaRthLinG
Attached File(s)
astahostcredits.zip ( 10.17k )
Number of downloads: 64
XML_Server.zip ( 1.84k )
Number of downloads: 61
_0820C32E_7947_495d_ACEC_3AA7ADBF608A_.txt ( 42bytes )
Number of downloads: 47 |
|
|
|
Dec 3 2005, 08:06 PM
Post
#2
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Dec 3 2005, 08:17 PM
Post
#3
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Dec 3 2005, 09:02 PM
Post
#4
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 10 Joined: 23-November 05 Member No.: 9,783 |
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))) |
|
|
|
Dec 4 2005, 02:34 AM
Post
#5
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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
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. |
|
|
|
Dec 4 2005, 03:26 AM
Post
#6
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
I tried the new files, and no luck. Still the same errors. Sorry
~Viz |
|
|
|
Dec 4 2005, 12:41 PM
Post
#7
|
|
|
Binary Geek Group: Members Posts: 444 Joined: 4-November 05 From: The Digital Arena Member No.: 9,440 |
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 |
|
|
|
Dec 4 2005, 02:29 PM
Post
#8
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Dec 4 2005, 06:01 PM
Post
#9
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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 G'nite all |
|
|
|
Dec 7 2005, 07:54 PM
Post
#10
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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 |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 13th October 2008 - 05:38 AM |