Upstate Forum Index
  The time now is Thu Jan 08, 2009 8:53 pm   

   SHOUT BOX (RC3)  


Upstate Forum Index -> Test Pad
Test .swf Count Down Days to Election 2006.11.07
  Author    Thread Post new topic Reply to topic
Aeioun
Super UFSC Member
Super UFSC Member


Age: 65
Joined: 11 Sep 2006
Posts: 837
Test .swf Count Down Days to Election 2006.11.07

Days to Election November 7th 2006

Testing
''
1. Works independent but not in post, click for file: ../nov7elec.swf
2. and good in ../nov7elec.html

will test further, using files:

../upload2/nov7elec.php (echo Server Time in Seconds)
../upload2/nov7elec.swf (converts to Days and Display.)

----------------
3. Must be a timing issue within post/thread, or permissions to/for post ??

4. Gadget Wizard:
Someday when you get time, checking SWF timing, some extra SWF's I upLoaded which I'm unable to delete.
../upload2/nov7elecA.swf
../upload2/nov7elecB.swf
../upload2/nov7elecC.swf
../upload2/nov7elecD.swf
../upload2/nov7elecE.swf

Ain't it good I give you things to own Rolling Eyes

Regards
~
_________________
"When fascism comes to America it will be wrapped in a flag and carrying a cross." ~ Sinclair Lewis, circa 1935
GOOGLE: When +Fascism +comes +America

Corporate Control of Government without Accountability is the foundation and cornerstone of Fascism ~ Aeioun, circa 2007

At least a 100 years old:
An unsophisticated forecaster uses statistics as a drunken man uses lamp-posts...for support rather than illumination. ~ Andrew Lang
He missed an invaluable opportunity to hold his tongue. ~ Andrew Lang
Life's more amusing than we thought. ~ Andrew Lang

Post Thu Sep 14, 2006 4:31 pm 
 Send private message Send e-mail  Reply with quote  
Oregonian
UFSC Administrator
UFSC Administrator



Joined: 12 Sep 2004
Posts: 16074
Location: Coquille, OR

Testing the swf again.

Interesting. It runs fine from here which is the same place the one above is coming from.
http://www.upstateforums.com/upload2/nov7elec.swf

Well it did work fine, now even the linked one isn't.

I deleted those other files for you.
_________________


Women and cats will do as they please, and men and dogs should relax and get used to the idea. - Robert Heinlein

Post Thu Sep 14, 2006 7:21 pm 
 Send private message  Reply with quote  
Aeioun
Super UFSC Member
Super UFSC Member


Age: 65
Joined: 11 Sep 2006
Posts: 837
Thanks

O,

Thanks for deleting those unnecessary files.

Thought it might be nice for a posting in the Politics Thread if test good.

Since you've tested some Flash Movies "SWF's" you might give me a tip or two.

The file "nov7elec.swf" is 56w x 48h, and should resize nicely to any aspect ratio of 7/6 (56/48). Dynamic text using local user machine "_sans" font at 36pt.

I even think it adventuresome of GW to allow upload of *.php files.
EDITED Post here

I haven't used Adobe Macromedia Flash since version 4 years ago. The SWF was built with SWiSHmax

PHP script/code:
Code:
<?php /* Created on: 9/14/2006 */ ?>
<html>
<body>
<?php
$nowSec = date(U);
$estSec = $nowSec;
$nov7Sec = mktime(0, 0, 01, 11, 07, 2006);
$voteSec = $nov7Sec - 7200; /* server offset to EST midnight */
echo "&currSec=".$estSec."&nov7Sec=".$voteSec."&";
?>
</body>
</html>

And SWF (swish) script/code: 10 Frames per second. One TextField "daysRemain"
Code:
onload(){
    currSec = "";
    nov7Sec = "";
    currTime = "";
    voteTime = "";
    //
    loadVariables("http://www.upstateforums/upload2/nov7elec.php");
}
onframe(3){
    if(nov7Sec == ""){prevFrameAndPlay();}
    currMsec = Number(currSec) * 1000;
    nov7Msec = Number(nov7Sec) * 1000;
}
onframe(4){
    diffMsec = nov7Msec - currMsec;
    remDays = Math.floor(diffMsec / 86400000);
    daysRemain.text = toString(remDays);
}
onframe(5){
    stop();
}


It's got to be a timing issue within post/thread, because outside works OK for me. Could be permissions.

Thanks again.

`
_________________
"When fascism comes to America it will be wrapped in a flag and carrying a cross." ~ Sinclair Lewis, circa 1935
GOOGLE: When +Fascism +comes +America

Corporate Control of Government without Accountability is the foundation and cornerstone of Fascism ~ Aeioun, circa 2007

At least a 100 years old:
An unsophisticated forecaster uses statistics as a drunken man uses lamp-posts...for support rather than illumination. ~ Andrew Lang
He missed an invaluable opportunity to hold his tongue. ~ Andrew Lang
Life's more amusing than we thought. ~ Andrew Lang


Last edited by Aeioun on Thu Sep 14, 2006 9:52 pm; edited 1 time in total

Post Thu Sep 14, 2006 9:35 pm 
 Send private message Send e-mail  Reply with quote  
Oregonian
UFSC Administrator
UFSC Administrator



Joined: 12 Sep 2004
Posts: 16074
Location: Coquille, OR

I got this message when I tried to open the php file:

"The requested URL /upload2/aeioun-php-info.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
_________________


Women and cats will do as they please, and men and dogs should relax and get used to the idea. - Robert Heinlein

Post Thu Sep 14, 2006 9:48 pm 
 Send private message  Reply with quote  
Aeioun
Super UFSC Member
Super UFSC Member


Age: 65
Joined: 11 Sep 2006
Posts: 837

Quote:
O,
I got this message when I tried to open the php file:

"The requested URL /upload2/aeioun-php-info.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

I'm getting it 404 now also. At first it gave me all server "phpinfo();"

I don't like telling GW what to make available - but - allowing upload of *.php could be more than adventuresome. Exclamation

R
~
_________________
"When fascism comes to America it will be wrapped in a flag and carrying a cross." ~ Sinclair Lewis, circa 1935
GOOGLE: When +Fascism +comes +America

Corporate Control of Government without Accountability is the foundation and cornerstone of Fascism ~ Aeioun, circa 2007

At least a 100 years old:
An unsophisticated forecaster uses statistics as a drunken man uses lamp-posts...for support rather than illumination. ~ Andrew Lang
He missed an invaluable opportunity to hold his tongue. ~ Andrew Lang
Life's more amusing than we thought. ~ Andrew Lang


Last edited by Aeioun on Mon Nov 06, 2006 9:28 am; edited 1 time in total

Post Thu Sep 14, 2006 9:59 pm 
 Send private message Send e-mail  Reply with quote  
Gadget Wizard
UFSC Administrator
UFSC Administrator


Age: 48
Joined: 24 Jul 2004
Posts: 12801
Location: Upstate SC

I've already deleted that file.

php, html, xml. or any other executable code is not allowed. It appears the filter is not working properly for .php so I've temp suspended uploads for that reason. I'll get that corrected soon.

Thanks for bringing that to my attention Aeioun.

Flash is supported here and has always worked embedded. Not sure why that file isn't running. I'll take a look and see if I can find a problem.
_________________

"Linux is more than an OS, it's a state of mind."






Post Thu Sep 14, 2006 10:00 pm 
 Send private message Visit poster's website  Reply with quote  
Gadget Wizard
UFSC Administrator
UFSC Administrator


Age: 48
Joined: 24 Jul 2004
Posts: 12801
Location: Upstate SC

All the other .swf files I've tried is working embedded inside or outside of the forums.

There are a few here you can test.

There must be something different about that one..
_________________

"Linux is more than an OS, it's a state of mind."






Post Thu Sep 14, 2006 10:10 pm 
 Send private message Visit poster's website  Reply with quote  
Aeioun
Super UFSC Member
Super UFSC Member


Age: 65
Joined: 11 Sep 2006
Posts: 837

Quote:
Gadget Wizard:
I've already deleted that file.

php, html, xml. or any other executable code is not allowed. It appears the filter is not working properly for .php so I've temp suspended uploads for that reason. I'll get that corrected soon.

Thanks for bringing that to my attention Aeioun.

Flash is supported here and has always worked embedded. Not sure why that file isn't running.

I suspected you were deleting the *.php and *.html

Definitely should NOT allow anything executable to be uploaded,
it's more than adventuresome Exclamation

Flash-SWFs seem to work great here, it's just the one I uploaded was using server time via php echo.

I'll do one that uses the viewers computer local time with a warning their clock must be accurate.

In the mean time if somebody ain't got enough fingers, they can go to
Count Down to Election 2006

O.K. - You owe me a "cup of coffee" someday.

R,
~
_________________
"When fascism comes to America it will be wrapped in a flag and carrying a cross." ~ Sinclair Lewis, circa 1935
GOOGLE: When +Fascism +comes +America

Corporate Control of Government without Accountability is the foundation and cornerstone of Fascism ~ Aeioun, circa 2007

At least a 100 years old:
An unsophisticated forecaster uses statistics as a drunken man uses lamp-posts...for support rather than illumination. ~ Andrew Lang
He missed an invaluable opportunity to hold his tongue. ~ Andrew Lang
Life's more amusing than we thought. ~ Andrew Lang

Post Thu Sep 14, 2006 10:28 pm 
 Send private message Send e-mail  Reply with quote  
Gadget Wizard
UFSC Administrator
UFSC Administrator


Age: 48
Joined: 24 Jul 2004
Posts: 12801
Location: Upstate SC

Aeioun wrote:

O.K. - You owe me a "cup of coffee" someday.

R,
~



_________________

"Linux is more than an OS, it's a state of mind."






Post Thu Sep 14, 2006 10:35 pm 
 Send private message Visit poster's website  Reply with quote  
  Display posts from previous:      
Post new topic Reply to topic
Upstate Forum Index Last Thread |  Next Thread >
Jump to:  

Powered by phpBB 2.0.x © 2001 phpBB Group
Custom Mods by Gadget Wizard