trouble with flash in header
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28900
Printed Date: 01 April 2026 at 4:05pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: trouble with flash in header
Posted By: billd3
Subject: trouble with flash in header
Date Posted: 13 October 2010 at 12:50pm
OK - what am I doing wrong? This works GREAT on my sandbox server at home. It shows the flash file, runs just fine. However, when I put this in the includes on the live forum, I get a 500 error!
At home I created a folder called "ads" at forum/ads I put the adhere.swf file in it. I added the code seen below to the header.asp file of the forum. It worked fine. I tried to simply copy things up to the live forum, 500 error, I replace the header.asp with the stock file and it works again.
http://theamcforum.com/forum
<% strTitleImage = HeaderImage(intForumID,strTitleImage) %>
<head> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <script language="javascript" src="includes/default_javascript_v9.js" type="text/javascript"></script> </head> </head>
<body> <table class="basicTable" cellspacing="0" cellpadding="3" align="center"> <tr> <td><% 'If there is a forum image then dsiplay it If NOT strTitleImage = "" Then Response.Write("<a href=""" & strWebsiteURL & """><img src=""" & strTitleImage & """ border=""0"" alt=""" & strWebsiteName & " " & strTxtHomepage & """ title=""" & strWebsiteName & " " & strTxtHomepage & """ /></a>")
%></td><td> <!--url's used in the movie--> <!--text used in the movie--> <!-- saved from url=(0013)about:internet --> <script language="JavaScript" type="text/javascript"> AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0', 'width', '300', 'height', '90', 'src', 'adhere', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'adhere', 'bgcolor', '#ffffff', 'name', 'adhere', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'adhere', 'salign', '' ); //end AC code </script> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="300" height="90" id="adhere" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="ads/adhere.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="ads/adhere.swf" quality="high" bgcolor="#ffffff" width="300" height="90" name="adhere" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /> </object> </td> </tr> </table>
|
|
Replies:
Posted By: Scotty32
Date Posted: 13 October 2010 at 1:37pm
|
I noticed you have used my http://www.s2h.co.uk/wwf/tips/look/change-banner-for-forums.asp" rel="nofollow - Change Banner for Forums tutorial.
Is this applied to the live website too? If not, you will need to upload the 'functions_common.asp' file too.
If that isn't the case, what was the error you received?
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
Posted By: billd3
Date Posted: 13 October 2010 at 1:41pm
Actually, NO, that's not involved here in this case. We haven't been using it. We WERE using the forum banner changer, but then when the forum was last upgraded, Bruce disabled it due to some errors with the new forum files. So we're not using it and haven't been for a year - is there really some code left in there?? Anyway, the forum has been stable and untouched for many months - since last year, actually. Running just fine, but then I added the code below and BOOM....... Server500 error.
This is the ONLY chnge I made when it broke - above is the entire header.asp. Below is the actual snippet of code I added to the asp file. Nothing else
this is the code that works on the SAME header file at home, but doesn't live:
I added a TD to hold a PNG file, that worked to display a static file. We decided to go with FLASH for the sample ad (NOT the header banner, but a sample ad only, small one) The PNG worked, so I grabbed this code and added it to display the small flash. It works on my server at home. The files at home are identical in every way to the live forum - I did a straight copy from forum to home server, I run SQL and IIS. The thing works great at home........... But when I add the SAME code below on the live forum, it's a SERVER 500 message. Pretty plain, really
<td> <!--url's used in the movie--> <!--text used in the movie--> <!-- saved from url=(0013)about:internet --> <script language="JavaScript" type="text/javascript"> AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0', 'width', '300', 'height', '90', 'src', 'adhere', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'adhere', 'bgcolor', '#ffffff', 'name', 'adhere', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'adhere', 'salign', '' ); //end AC code </script> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="300" height="90" id="adhere" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="ads/adhere.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="ads/adhere.swf" quality="high" bgcolor="#ffffff" width="300" height="90" name="adhere" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /> </object> </td>
|
------------- BillD
http://theamcpages.com
http://theamcforum.com
|
Posted By: billd3
Date Posted: 13 October 2010 at 1:53pm
Wait - maybe I'm wrong - maybe that first line IS different - I'll try again...........
------------- BillD
http://theamcpages.com
http://theamcforum.com
|
Posted By: billd3
Date Posted: 13 October 2010 at 1:58pm
Scotty - you were right, sorry!! WOW, I guess I had that code in my sandbox... and then when we updated it was disabled as Bruce said there was a conflict and I never got it changed back on my sandbox. WOW, well, it wasn't what i expected, however YOU fixed it for me with your comment! Thank you!!!
------------- BillD
http://theamcpages.com
http://theamcforum.com
|
Posted By: Scotty32
Date Posted: 13 October 2010 at 2:00pm
|
The first line of your original posts code block relates to my tutorial.
<% strTitleImage = HeaderImage(intForumID,strTitleImage) %> |
If you no longer wish to use the feature I would recommend removing it from your header file as it could cause problems in the future even if its not causing the issue here.
As for your second post, I cant see how that would cause a problem as all I see is static HTML.
As I said, what is the error you are receiving?
*edit* umm, never mind - you replied while i was typing my reply
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
Posted By: billd3
Date Posted: 13 October 2010 at 2:04pm
LOL - yes, I could have swore I'd synched my home server and the host (Bruce's server) but I guess i screwed up. I used WINDIFF and compared the two files, and finally your post hit me like a brick in the head - duh, and I removed that top line and bingo, it started working. I had used the header.asp from my home system. I was wrong, and you helped fix it.
Now, I need to find someone to pay to upgrade our software and move all the mods into the latest forum version.............. I simply can't do it now. (and we need some of the new features - we're growing!)
I love your mod, and we will get back to using it after we somehow get upgraded to the latest. My son will do the header images (eventually........ i hope)
------------- BillD
http://theamcpages.com
http://theamcforum.com
|
|