You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 42 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - adding a "normal" flash banner [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
bigtree
Sergeant
Sergeant


Joined: Feb 04, 2004
Posts: 100


PostPosted: Sun Mar 19, 2006 7:53 am Reply with quoteBack to top

anyone know how to add flash / swf banners in the "normal" spot here? I use this theme fisubsilversh and a few others like this theme on phpnuke 7.7.

Is there a simple fix? I use ibdeeming advertising modules and the blocks work fine for flash. It would be nice to be able to upload a swf to my banner folder, select normal and it runs. Any help would be greatly appreciated.

Chris
Find all posts by bigtreeView user's profileSend private message
astalavistabd
Captain
Captain


Joined: Dec 19, 2004
Posts: 663

Location: Canada

PostPosted: Mon Mar 20, 2006 1:35 pm Reply with quoteBack to top

If your flash ad works fine for the Ads block it should work with your header banner too. I would suggest you to use some mod/hack like the one you are using right now.

Try this one if the current one does not work for you:

Flash Banners Mod v2.0

There are many mods/hacks out ther just search, hope you will find somthing. Smile

_________________
Free PHPNuke Themes, PHPNuke Modules, PHPNuke Blocks (No Registration Required)
Find all posts by astalavistabdView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
bigtree
Sergeant
Sergeant


Joined: Feb 04, 2004
Posts: 100


PostPosted: Mon Mar 20, 2006 5:51 pm Reply with quoteBack to top

hey thanks asta... I did finially find the fix. I need to replace some lines in my theme.php

For the ibdeeming mod here it is.
Code:
How do I fix a Theme that doesn't show the FLASH banners?

Most themes follow the standard required by PHPNuke to incllude the banners.php file where you want to see your banner displayed. There are a few out there that actually have the logic imbedded. As long as you aren't skiddish about making edit changes to your php files - than proceed on!

As stated, you will typically find within your themeheader function in the theme.php file something like

    if ($banners) {
    include("banners.php");
    echo "<br>";
    }



If this is your case, you chouldn't have to do anything else. More than likely, you have a lot more code between the "if" and the end curly brace!

Here's where it may get tricky, but you want to find code that looks something like

    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>;



Easy enough, right?

You will now replace that code with

    // is this a FLASH file???
    $extension = substr(strrchr($imageurl, "."), 1);
    if ( eregi( "swf", $extension ) == true )
    {
    // echo out the FLASH code for flash images
    $showbanners = "<center>"
    ."<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"480\" HEIGHT=\"75\" id=\"logo\" ALIGN=\"\">\n"
    ."<PARAM NAME=movie VALUE=\"$imageurl\">\n"
    ."<PARAM NAME=quality VALUE=high>\n"
    ."<PARAM NAME=bgcolor VALUE=#000000>\n"
    ."<EMBED src=\"$imageurl\" quality=high bgcolor=#000000 WIDTH=\"480\" HEIGHT=\"75\" NAME=\"logo\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n"
    ."</OBJECT><br><a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\">$alttext</a></center>\n";
    }
    else
    {
    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
    }
Find all posts by bigtreeView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.186 Seconds - 257 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::