Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
monejim
New Member
New Member



Joined: Dec 13, 2006
Posts: 1

PostPosted: Wed Dec 13, 2006 3:02 am Reply with quote

I'm trying to use nsn banner ads to use also flash banner on my website.
I would put flash banner in different size than the file click_v.swf 120x600 , for example 120x180.
if i put the banner using the admin control panel i see the banner but is smaller then the orginal one, something don't work.
I think the only solution is change the click_v.swf file or create another one with different size (the exact size that i need), right?
but the problem is that there isn't the source file .fla.
Someone can help me?
 
View user's profile Send private message
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Sat Dec 16, 2006 11:03 pm Reply with quote

There are a couple of things you can do. One is to create a holder .swf in the correct size so the clicks get counted or do the following:
find in your babannersX.php files:
Code:
    $babannersX  = "\n\n<ob-ject classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width='".$bidinfo['width']."' height='".$bidinfo['height']."'>";

    $babannersX .= "\n<param name=movie value='images/banners/clicksba_h.swf'>";
    $babannersX .= "\n<param name=quality value=high>";
    $babannersX .= "\n<param name=FlashVars value='imageurl=".$bidinfo['imageurl']."&bid=$bannum'>";
    $babannersX .= "\n<embed src='images/banners/clicksba_h.swf?imageurl=".$bidinfo['imageurl']."&bid=$bannum' quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width='".$bidinfo['width']."' height='".$bidinfo['height']."'>";
    $babannersX .= "\n</embed> ";
    $babannersX .= "\n</ob-ject>\n\n";


Change to:
Code:
    $babannersX  = "\n\n<ob-ject classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width='".$bidinfo['width']."' height='".$bidinfo['height']."'>";

    $babannersX .= "\n<param name=movie value='".$bidinfo['imageurl']."'>";
    $babannersX .= "\n<param name=quality value=high>";
    $babannersX .= "\n<embed src='".$bidinfo['imageurl']."' quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width='".$bidinfo['width']."' height='".$bidinfo['height']."'>";
    $babannersX .= "\n</embed> ";
    $babannersX .= "\n</ob-ject>\n\n";


This will not count the clicks on the flash banner but you won't have display size problems either. Also take the - out of ob-ject , had to add that so it would post Smile

_________________
Bob Marion
Codito Ergo Sum
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©