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, 129 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How do I add a flash banner as a logo into my site? [ ]
 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
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Sat Jan 17, 2004 2:39 pm Reply with quoteBack to top

I made a flash banner at flashbannernow.com and it gave me a java script code for the flash banner.

I dont know where to put this code to make this my site logo.

I tried to add the javascript in the theme.php in my theme folder, and it didnt work.

I have the .swf file also. I am using the skinner theme for my site. http://tankweb.net

This is the thread that I looked at for guidance.. but to no avail...
http://www.nukecops.com/postt672.html

here is my theme.php file:
Code:

<?php

//****************************************************************************
//** Welcome to the theme.php SDK (c)2003 by pixdesign.ch
//** This is a full documented version of a phpNuke theme for version 6.0
//**
//** Change color codes as described below
//** Look through this theme as there are numberos tips included
//**
//** When you have finished your customizations it's strongly recommended
//** to delete all comments (beginning with //) to ensure a small sized
//** theme.php for faster loading your website.
//**
//** This theme.php is free for all (commercial / non commercial)
//** You may freely distribute this theme.php as long as copyright notice
//** here is left in place!
//**
//****************************************************************************

//*******************************
//** Start of variable setting **
//*******************************

//**********************************
// definition of global variables **
//**********************************
global $alttext1, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $bgcolor22, $bgcolor10, $bgcolor11, $bgcolor12, $bgcolor13, $bgcolor14, $bgcolor15, $bgcolor16, $bgcolor17, $bgcolor18, $bgcolor25, $bgcolor26, $bgcolor27, $bgcolor28, $bgcolor29;

//**************************************
// color codes for the message window **
//**************************************
$bgcolor1 = "#ffffff"; // color code for background of message window
$bgcolor2 = "#ffffff"; // color code for border of message window

//**********************************
// non commented variables        **
//**********************************
$bgcolor3 = "#ffffff";
$bgcolor4 = "#ecf1f5";

//**********************************
// color codes for themeheader    **
//**********************************
$bgcolor5 = "#ffffff"; // color code for page background
$bgcolor6 = "#ffffff"; // color code for main table border (around the theme)
$bgcolor7 = "#ffffff"; // color code for background of table with logo.gif inside
$bgcolor8 = "#ffffff"; // color code for background of table with header buttons
$bgcolor9 = "#ffffff"; // color code for background of table (empty line) below header buttons

//**********************************
// color code for themefooter     **
//**********************************
$bgcolor10 = "#404040"; // color code for footer background

//**********************************
// color code for sidebox         **
//**********************************
$bgcolor11 = "#0056a7"; // color code for border of sidebox

//************************************************************
//** color codes for newsbox view on homepage               **
//** - change bgcolor 13-17 for the main window of newsbox  **
//** - change bgcolor 18 for the footer of newsbox          **
//** - change bgcolor 12 for the newsbox border             **
//************************************************************
$bgcolor12 = "#ffffff"; // color code for border of newsbox
$bgcolor13 = "#ffffff"; // color code for background on line right below topic image
$bgcolor14 = "#ffffff"; // color code for background of image in top left corner of newsbox
$bgcolor15 = "#e7eefa"; // color code for background for title of newsbox
$bgcolor16 = "#ffffff"; // color code for background of table around news content
$bgcolor17 = "#ffffff"; // color code for background of news content
$bgcolor18 = "#ffffff"; // color code for background of footer of newsbox

//************************************************************
//** color codes for detailed view (more..) of newsbox      **
//** - change bgcolor 26-30 for the main window of newsbox  **
//************************************************************
$bgcolor25 = "#d8e1ea"; // color code for border of newsbox
$bgcolor26 = "#d8e1ea"; // color code for background on line right below topic image
$bgcolor27 = "#d8e1ea"; // color code for background of image in top left corner of newsbox
$bgcolor28 = "#d8e1ea"; // color code for background for title of newsbox
$bgcolor29 = "#d8e1ea"; // color code for background of table around news content
$bgcolor30 = "#d8e1ea"; // color code for background of news content

//************************************************************************
//** color code for change of theme background (only inside main table) **
//************************************************************************
$bgcolor20 = "#ffffff"; // color code for theme background (part 1) - background exept sidebar backgrounds
$bgcolor21 = "#ffffff"; // color code for theme background (part 2) - background of left sideblocks (not inside block)
$bgcolor22 = "#ffffff"; // color code for theme background (part 3) - background of right sideblocks (not inside block)


$textcolor1 = "#000000";
$textcolor2 = "#000000";
$alttext1 = "put text here"; // text for alternative display of logo.gif (if graphic cannot be loaded)

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
    global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21;
    echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
   ."<br>";
    if ($banners) {
   include("banners.php");
   echo "<br>";
    }

    //** Making main tables **
   //** replace 800 value with the width of the main table you desire
   //** replace 800 value with 100% if you want to make the theme full width of the browser
   echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
   
   ."<img src=\"themes/skinner/images/toppic.gif\" width=\"800\" height=\"22\">"
   //."<IFRAME name=iframe src=\"themes/skinner/nav.htm\" frameBorder=0 width=100% height=15 scrolling=no marginwidth=\"0\"></iframe>"
   

   //** Making table for menu bar graphics **
   //** change height and width value with the height/width of your buttons **
   //** change links and graphics with your desired file names and links. be sure to place the graphics in the images folder **
   //** be sure that the sum of the width of all buttons is equal to the total width of the main table above **
   ."<tr><td width=\"100%\" bgcolor=\"$bgcolor8\" height=\"15\" valign=\"bottom\">\n"
   ."<a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/home.gif\" width=\"100\" height=\"15\"></a>"
   ."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/skinner/images/account.gif\" width=\"100\" height=\"15\"></a>"
   ."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/skinner/images/downloads.gif\" width=\"100\" height=\"15\"></a>"
   ."<a href=\"links.html\"><img border=\"0\" src=\"themes/skinner/images/weblinks.gif\" width=\"100\" height=\"15\"></a>"
   ."<a href=\"modules.php?name=Forums\"><img border=\"0\" src=\"themes/skinner/images/forum.gif\" width=\"100\" height=\"15\"></a>"
   ."<a href=\"topics.html\"><img border=\"0\" src=\"themes/skinner/images/topics.gif\" width=\"100\" height=\"15\"></a>"
    ."<a href=\"top.html\"><img border=\"0\" src=\"themes/skinner/images/top10.gif\" width=\"100\" height=\"15\"></a>"
    ."<a href=\"modules.php?name=Members_List\"><img border=\"0\" src=\"themes/skinner/images/members.gif\" width=\"100\" height=\"15\"></a>"

   //** Making table for logo.gif **
   //** change height value with the height of your logo.gif **
   //** replace logo.gif with the name of your logo, place the graphic in the images folder **
   ."<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/logo.gif\" alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"
   
   ."</td></tr></table>\n"
   
   //."<IFRAME name=iframe src=\"http://testcenter.pixdesign.ch/themes/skinner/nav.htm\" frameBorder=0 width=100% height=15 scrolling=no marginwidth=\"0\"></iframe>"
   
   //** this line creates the table right below the buttons
   //** you can remove the line by removing the code as menioned below:
   //** <td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\">
   ."</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=\"themes/skinner/images/line1.gif\">\n"
;
    //** Here the public message is defined (top center box)
   //**
   //**
   $public_msg = public_message();
    echo "$public_msg<br>";   
    echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   //."<td><img src=\"themes/skinner/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
   ."<td width=\"138\" bgcolor=\"$bgcolor21\" valign=\"top\" background=\"themes/skinner/images/back1.gif\" width=\"138\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/skinner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}

//*************************************************************************
//** This is the function for the themefooter with copyright notices     **
//** and the right blocks. Do not remove any copyright notices as they   **
//** must stay in place!                                                 **
//*************************************************************************
function themefooter() {
    global $index, $bgcolor22, $bgcolor10;
    echo "<br>";
    if ($index == 1) {
   echo "</td><td><img src=\"themes/skinner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"$bgcolor22\">\n";
   blocks(right);
   echo "<img src=\"themes/skinner/images/backend.gif\" width=\"100%\" height=\"20\">";
   //echo "<td><img src=\"themes/skinner/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
    }
 else {
   echo "</td><td colspan=\"2\"><img src=\"themes/skinner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"100%\" background=\"themes/skinner/images/footer.gif\" width=\"800\" height=\"70\"><tr><td width=\"100%\" valign=\"top\">"
   ."<center><br>";
    footmsg();
    echo "</center></table></table></table>";
}

//** *************************************************************
//** This is the function for the news part shown on main page  **
//**                                                            **
//****************************************************************
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath, $bgcolor12, $bgcolor13, $bgcolor14, $bgcolor15, $bgcolor16, $bgcolor17, $bgcolor18;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"$bgcolor12\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"$bgcolor13\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"$bgcolor14\">\n"
   ."</td><td width=\"100%\" height=\"16\" bgcolor=\"$bgcolor15\" align=\"left\" background=\"themes/skinner/images/news_back.gif\" width=\"503\" height=\"20\"><img border=\"0\" src=\"themes/skinner/images/news_dot2.gif\" width=\"503\" height=\"2\"><font class=\"option\"><b><center>&nbsp;$title</center></b></font><img border=\"0\" src=\"themes/skinner/images/news_dot2.gif\" width=\"503\" height=\"2\"></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"$bgcolor16\"><br>\n"
   ."<table border=\"0\" width=\"98%\" bgcolor=\"$bgcolor17\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table><br>\n"
   ."</td></tr><tr><td bgcolor=\"$bgcolor18\" align=\"left\"><img border=\"0\" src=\"themes/skinner/images/news_dot.gif\" width=\"500\" height=\"2\">\n"
   
   ."<b><center><font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " "._ON." $time $timezone <br>&nbsp($counter "._READS.")</font>\n"
   ."<font class=\"content\">$morelink</font></center>\n"
   ."<img src=\"themes/skinner/images/pixel.gif\" border=\"0\" height=\"2\">"
   ."</td></tr></table>\n"
   ."</td></tr></table><br>\n";
}

//*******************************************************************
//** This is the function for the detail view of the news (more..) **
//**                                                               **
//*******************************************************************
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#ffffff\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#ffffff\">\n"
   ."</td><td width=\"100%\" height=\"16\" bgcolor=\"#ffffff\" background=\"themes/skinner/images/news_back2.gif\" width=\"485\" height=\"20\"><img border=\"0\" src=\"themes/skinner/images/news_dot2.gif\" width=\"485\" height=\"2\"><font class=\"option\"><b><center>&nbsp;$title</center></b></font><img border=\"0\" src=\"themes/skinner/images/news_dot2.gif\" width=\"485\" height=\"2\"></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"#ffffff\"><br>\n"
   ."<table border=\"0\" width=\"98%\" bgcolor=\"#ffffff\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table><br>\n"
   ."</td></tr></table>\n"
   ."</td></tr></table><br><br>\n";
}

//*******************************************************************
//** This is the function for the side box (left and right         **
//**                                                               **
//*******************************************************************
function themesidebox($title, $content) {
    global $bgcolor11;
   // creating main tables and inserting the header (title) of sidebox (change header.gif with other background)
   echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td background=\"themes/skinner/images/header.gif\" width=\"138\" height=\"18\">"
   ."&nbsp;&nbsp;<font color=\"#000000\"><b>$title</b></font>"
   // next line will define (height of pixel.gif) the space between header.gif and the content of the sidebox
   ."</td></tr></table>\n"
   // creating table and content of sidebox (change back1.gif for other background)
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#$bgcolor11\">\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"138\">\n"
   ."<tr><td background=\"themes/skinner/images/back1.gif\" width=\"138\" bgcolor=\"#ffffff\">\n"
   ."$content"
   // next line will define (height of pixel.gif) the space between two sideboxes
   ."</td></tr></table></td></tr></table><img src=\"themes/skinner/images/back1.gif\" width=\"100%\" height=\"8\">";
}

?>


Any suggestions?


Last edited by Tank863 on Sat Jan 17, 2004 5:05 pm; edited 2 times in total
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Sat Jan 17, 2004 4:59 pm Reply with quoteBack to top

These are the steps I was told to take by flashbannernow.com
Code:

1.  Download my flashh banner (the .swf file) (which is called: 4009.swf)
2.  Displaying your Flash banner on the Web requires a special HTML code. Using your favorite HTML or simple text editor (such as Windows Notepad), paste the banner code into the HTML source of a web page where you want your banner to appear. (this is the code that was generated):

<script language="javascript" src="displayflash.js"></script>
<script language="javascript">
display("4009.swf?clicktag=http://tankweb.net");
</script>

3.   Download the "displayflash.js" JavaScript file, which is required to correctly display Flash content in the future version of Internet Explorer browser. Use your typical process to upload the 4009.swf, updated web page and displayflash.js files to your web site, placing them in the same directory (see below how to display your Flash banner on multiple web pages and web sites). Open the updated web page in your browser to test the banner.



I did # 3 and placed the .swf file along with the displayflash.js file into my /images folder.

Where do I insert the code to make the imnage appear? I know it has to go into the theme.php, but where?

any suggestions?
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
MissVicky
Private
Private


Joined: Jan 07, 2004
Posts: 45


PostPosted: Sat Jan 17, 2004 6:51 pm Reply with quoteBack to top

Look in your theme folder and edit header.html

Best Regards,
Miss Vicky
Find all posts by MissVickyView user's profileSend private message
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Sat Jan 17, 2004 7:18 pm Reply with quoteBack to top

Thank you for your reply...however

I do not have a header.html any where in my theme folder.
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Jan 19, 2004 4:34 pm Reply with quoteBack to top

Hi Chris!

My suggestion is try take this code:

Code:
  ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/logo.gif\" alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"


Remove the img src portion and replace it with your javascript code.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Mon Jan 19, 2004 6:52 pm Reply with quoteBack to top

Here is my javascript code:

Code:

<script language="javascript" src="http://tankweb.net/themes/skinner/images/displayflash.js"></script>
<script language="javascript">
display("http://tankweb.net/themes/skinner/images/4009149.swf?clicktag=http://tankweb.net");
</script>


I know I can't just insert the javascript like that... I have to change it into php format... or a format.

This is what I came up with: that show the banner/logo on my site now.
Code:

echo"<script language=\"javascript\" src=\"http://tankweb.net/themes/skinner/images/displayflash.js\"></script>"
    . "<script language=\"javascript\">"
    . "display(\"http://tankweb.net/themes/skinner/images/4009149.swf?clicktag=http://tankweb.net\");"
    . "</script>"
    ."";


You said to take out the code starting with img src portion. Is that up to logo.gif\" ? Like the following:
so it would go from this:

Code:

."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/logo.gif\" alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"


to this:


Code:
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\">  alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"


Then insert my javascript code like so:

Code:
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\">echo"<script language=\"javascript\" src=\"http://tankweb.net/themes/skinner/images/displayflash.js\"></script>"
    . "<script language=\"javascript\">"
    . "display(\"http://tankweb.net/themes/skinner/images/4009149.swf?clicktag=http://tankweb.net\");"
    . "</script>"
    ."";  alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"


When I do this.. I get all kinds of parse errors. I change the code around adding ; but that does not work. I remove the echo statement... that does not work.

I know I'm in the right direction... need a little more help.. anyone?
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Tue Jan 20, 2004 3:21 pm Reply with quoteBack to top

I have it working....
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Jskog
Nuke Soldier
Nuke Soldier


Joined: Sep 26, 2003
Posts: 12


PostPosted: Wed Jan 21, 2004 11:42 am Reply with quoteBack to top

After reading your struggle to make this work.

It is unsatisfying to read only
Rolling Eyes
I got it to to work!

Without your passing on the reasons why it did work. I don't want to burn someones time when you have the answer. Please take the time to put the complete fix at the end of your thread so future readers benefit from your valient successful struggle!

_________________
Jackson
TechnoGeez
Find all posts by JskogView user's profileSend private messageVisit poster's website
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Wed Jan 21, 2004 1:00 pm Reply with quoteBack to top

Jskog,

Ahh.. the real answer is sought. Sorry for the short reply before. I really didn't have time to post a real follow-up. But I was planning on doing it.

Here is what I did to get the code to work properly. The flash banner is now in my site where I want it to be.. but it is not the correct size yet!. I will work on that part when time permits.

What I was doing wrong:

I knew that I had to place the javascript in here... but did not know the proper coding and what I had to replace.

Code:
//** Making table for logo.gif **
   //** change height value with the height of your logo.gif **
   //** replace logo.gif with the name of your logo, place the graphic in the images folder **
   ."<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/logo.gif\" alt=\"$alttext1\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"
   
   ."</td></tr></table>\n"


After many hours of coding and many help forums suggestions... This is what "we" came up with.. and it works.

#1: I uploaded the .swf file into my /theme/skinner/images/ folder along with the displayflash.js file

The displayflash.js file looks like this:

Code:

function displayflash(swffile,link,window,width,height){
if(swffile){
if(link){
if(link.substr(0,7)!='http://'){link='http://'+link;}
link=link.replace('?','%3F');
link=link.replace('=','%3D');
link=link.replace('&','%26');
swffile=swffile+'?clicktag='+link;
}
if(window){swffile=swffile+'&target='+window;}
if(!width){width=800;}
if(!height){height=80;}
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,2,0" width="'+width+'" height="'+height+'" align="top"><param name=movie value="'+swffile+'"><param name=quality value=high><param name=menu value=false><param name=wmode value=transparent><embed src="'+swffile+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" menu="false" wmode="transparent" align="top"></embed></object>');
}
}

function display(swffile,width,height){
if(!width){width=800;}
if(!height){height=80;}
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,2,0" width="'+width+'" height="'+height+'" align="top"><param name=movie value="'+swffile+'"><param name=quality value=high><param name=menu value=false><param name=wmode value=transparent><embed src="'+swffile+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" menu="false" wmode="transparent" align="top"></embed></object>');
}



#2: Then I placed the javascript code into my Theme.php file....
Here is the code the I used:

Code:

." <tr><td width=\"100%\" height=\"60\" bgcolor=\"$bgcolor7\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><script language=\"javascript\" src=\"http://tankweb.net/themes/skinner/images/displayflash.js\"></script><script language=\"javascript\">display(\"http://tankweb.net/themes/skinner/images/4009149.swf?clicktag=http://www.example.com\");
</script></td><td align=\"right\"></td></tr></table></td></tr>\n"
 
Basically, I replaced the
 
<a href=\"index.php\"><img border=\"0\" src=\"themes/skinner/images/logo.gif\" alt=\"$alttext1\" hspace=\"0\">

with

<script language=\"javascript\" src=\"http://tankweb.net/themes/skinner/images/displayflash.js\"></script><script language=\"javascript\">display(\"http://tankweb.net/themes/skinner/images/4009149.swf?clicktag=http://www.example.com\");
</script>




Like I said.. it is working now... but does not fit the skinner theme properly.. even though I changed the size of the .swf movie to width = 800.. so I have to once again dig a little deeper into the skinner theme..

Tank863
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Jskog
Nuke Soldier
Nuke Soldier


Joined: Sep 26, 2003
Posts: 12


PostPosted: Wed Jan 21, 2004 4:50 pm Reply with quoteBack to top

Many Thanks Tank! I read quite a few posts that don't provide the solution at the end.

Just hit the wall - on yours! It was just what I was looking for!

Standing on the shoulders of Giants and reaching down - Jackson

_________________
Jackson
TechnoGeez
Find all posts by JskogView user's profileSend private messageVisit poster's website
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.858 Seconds - 120 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::