Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Custom SevenForums Gadgets

20 Mar 2009   #341

Win7 Ultimate x64 on Desktop / Win7 Ultimate x86 on laptop / Win7 x86 Starter on Netbook
 
 

Using the gadget now.

My System SpecsSystem Spec
.

20 Mar 2009   #342

Windows 7 RC 7100 32bit/64bit
 
 

Chat in use


Attached Thumbnails
Custom SevenForums Gadgets-untitled.png  
My System SpecsSystem Spec
21 Mar 2009   #343

Windows 7 RC 7100 32bit/64bit
 
 

Update:

Fixed the issue that you couldn't use chat if you weren't logged in automatically.

Now you can use chat with all methods of login , except if you login as guest, of course.

Cheers

Note: I will pause the development here for now, cause I've lost many nights of sleep, and my gf will probably break up with me if I go on like this . I will respond to feedback about bugs, though, and try to correct them.

I don't complain though, I've learned a lot while making this.

To anyone interested, methods used in the gadget are:

For Local Gadget Main Application Window:

1. Gadget-related javascript (M$ prototypes)
2. Standard Javascript
3. HTML, Frames

For Retrieving Sevenforums' Functionality in the Gadget:

1. HTML, DHTML
2. PHP
3. cURL (a PHP extension)
4. Advanced Javascript
5. Ajax (a dynamic web page/script execution technology)
6. Lots of HTML text replacing and re-adding , through PHP's str_replace, strpos and substr functions.

For the chat application:

1. HTML, DHTML
2. PHP
3. Mysql
3. Javascript
4. Ajax
5. HighSlide JS (a javascript script made by Torstein Hansi for the cool window popup effects. This forum uses it too to display attached images)

Requirements:
1. A web server with PHP support (Linux, Windows) where the PHP scripts reside.
2. A MySQL server
3. Experience in all the above.



Related links:
A simple guide to creating your first Gadget

Latest version:


Attached Files
File Type: zip sevenforums.Gadgetv2.5 Final.zip (184.7 KB, 710 views)
My System SpecsSystem Spec
.


22 Mar 2009   #344

Windows 7 Ultimate x86
 
 

Hi limneos and thanks for the gadget, but is there a way to make it smaller, like before when the gadget was in sleep mode.I've tried changing the gadget's height and width but after I press Save settings nothing happens. The default values (700x400) are still there.

Later edit: Found the sleep button , but still if I modify the height the viewing is a little buggy.Maybe if you make it so if it is smaller in height it will show less information, like the default weather gadget (Larger Size/Smaller Size button).
My System SpecsSystem Spec
22 Mar 2009   #345

Windows 8.1 Pro RTM x64
 
 

Hi HyperL,

What size are you trying to set it at? The height must be between 300 and 1024, and the width between 400 and 800. You can try altering the figures highlighted in red here (note that they are in pairs), but I don't know if Limneos has set the gadget code to automatically use the lower limit if the settings are lower or the upper if they are higher. I must also point out that I haven't tried this. If you do decide to try this, do not deviate too far from these limits.

The following code may be found in the file settings.html. To locate this file, click the Start Orb and type shell:gadgets into the search box and press enter/return. Open the folder sevenforums.Gadget. Right click the above mentioned file and select edit. Look for the section shown in the code below (near the end of the file). When you have finished editing, click File and Save (alternatively, use the Ctrl+S keyboard shortcut).
Code:
function checkfirst(){
var errs=0;
if (document.setter.height.value<300){
document.getElementById('messages').innerHTML='<font color=red>Height must be >300</font>';
errs++;
}
if (document.setter.height.value>1024){
document.getElementById('messages').innerHTML='<font color=red>Height must be <1024</font>';
errs++;
}
if (document.setter.width.value<400){
document.getElementById('messages').innerHTML='<font color=red>Width must be >400</font>';
errs++;
}
if (document.setter.width.value>800){
document.getElementById('messages').innerHTML='<font color=red>Width must be <800</font>';
errs++;
}
if (document.setter.rater.value>60 || document.setter.rater.value<5){
document.getElementById('messages').innerHTML='<font color=red>Rate:from 5 to 60!</font>';
errs++;
}
if (errs<1){
document.getElementById('messages').innerHTML='User Settings <font color=red>Saved!</font>'
limsavesettings();
}
else {
return false;
}
}
My System SpecsSystem Spec
22 Mar 2009   #346

Vista Ult 64 bit Seven Ult RTM x64
 
 

Thank you, Elias. You've put a lot of work into this and have done a great job. Much appreciated. Now go spend some time with your lady and get some rest.

Gary
My System SpecsSystem Spec
22 Mar 2009   #347

Windows 7 RC 7100 32bit/64bit
 
 

Thanks Gary...
It appears that the icons caching problem has to do with ajax.
I found the solution is to clear IE8's Temporary Internet Files.

Here's 2 screenshots, first is with my old avatar...then I do a Delete Temporary Internet Files from IE8 menu, Tools -> Internet Options -> Delete .

On the same instance, my new avatar appears:

Below are screenshots from before and after deleting Temp Internet Files.
Check how my avatar was updated at once.


Attached Images
  
My System SpecsSystem Spec
22 Mar 2009   #348

Windows 7 Ultimate x64, Mint 9
 
 

Cool. Will have to mess with it. What language do you make these with?

Just learning some programming and want to try something like this.

~Lordbob
My System SpecsSystem Spec
22 Mar 2009   #349

Windows 8.1 Pro RTM x64
 
 

Hi David,

Elias provided some links to some of the resources he used in an earlier post in this thread - see http://www.sevenforums.com/customiza...html#post51963
My System SpecsSystem Spec
23 Mar 2009   #350

Windows 8.1 Pro RTM x64
 
 

Hi Elias,

Still something not quite right here. I have opened 2 instances of the gadget, 1 as the webpage and 1 as the gadget itself. Notice the time difference. The first image (webpage) shows the correct user avatar and the forum icons, whereas the gadget itself doesn't show the icons and instead shows the avatar which I had yesterday (and also today, until I changed it).
Custom SevenForums Gadgets-capture.png Custom SevenForums Gadgets-capture1.png
I have followed your advice about clearing IE8's Temporary Internet Files, but this has made no difference.

There is definitely something weird going on here. Since originally making this post, I have again changed my avatar to the delightful chap you see here, but the avatars with the gadget haven't changed.
Custom SevenForums Gadgets-capture2.png Custom SevenForums Gadgets-capture3.png


My System SpecsSystem Spec
Reply

 Custom SevenForums Gadgets





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:45 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33