//****************************************************************************
//** 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 **
//*******************************
//**************************************
// color codes for the message window **
//**************************************
$bgcolor1 = "#ffffff"; // color code for background of message window
$bgcolor2 = "#ffffff"; // color code for border of message window
//**********************************
// 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 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"
//** 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"
//** 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> $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"
//*******************************************************************
//** 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> $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\">"
." <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
Tank863 Lieutenant
Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
Posted:
Sat Jan 17, 2004 4:59 pm
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):
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?
MissVicky Private
Joined: Jan 07, 2004
Posts: 45
Posted:
Sat Jan 17, 2004 6:51 pm
Look in your theme folder and edit header.html
Best Regards,
Miss Vicky
Tank863 Lieutenant
Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
Posted:
Sat Jan 17, 2004 7:18 pm
Thank you for your reply...however
I do not have a header.html any where in my theme folder.
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?
Tank863 Lieutenant
Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
Posted:
Tue Jan 20, 2004 3:21 pm
I have it working....
Jskog Nuke Soldier
Joined: Sep 26, 2003
Posts: 12
Posted:
Wed Jan 21, 2004 11:42 am
After reading your struggle to make this work.
It is unsatisfying to read only
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
Tank863 Lieutenant
Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
Posted:
Wed Jan 21, 2004 1:00 pm
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
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
Jskog Nuke Soldier
Joined: Sep 26, 2003
Posts: 12
Posted:
Wed Jan 21, 2004 4:50 pm
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
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