Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - trouble with flash in header
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

trouble with flash in header

 Post Reply Post Reply
Author
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post Topic: trouble with flash in header
    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>


Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2010 at 1:37pm

I noticed you have used my 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post 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>



Edited by billd3 - 13 October 2010 at 1:44pm
BillD
http://theamcpages.com
http://theamcforum.com
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
billd3 View Drop Down
Senior Member
Senior Member


Joined: 19 February 2003
Location: United States
Status: Offline
Points: 530
Post Options Post Options   Thanks (0) Thanks(0)   Quote billd3 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.