linkable banner inside the header - is this possible?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   linkable banner inside the header - is this possible?
darren1234
CZ Newbie
darren1234 has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: Nov 12, 2006
0.00 posts per day
Posts: 6
Points: 25
   
Hi was wonedring if someone could help me

Im running phpnuke 7.9 (patched) and am wondering if there was any chance i could add a linkable banner to the top right side of my themes header.

I run a pc hardware review site and the left side of our header shows our site name - this is flash.
On the right side of the header is where i want to place a linkable banner for one of my sponsors.

heres an example of what i want to do:


any help would be greatly apreciated.
thanks
darren



Back to top Reply with quote
#2   re: linkable banner inside the header - is this possible?
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 42
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
If your asking is it possible? Then it depends on the way your theme head/header.php is built.

Meaning that if the whole header is flash. Then you could insert 1 banner there if you had the original flash file.

If its html/php you can adjust the header tables to allow for a complete banner system.



Back to top Reply with quote
#3   re: linkable banner inside the header - is this possible?
darren1234
CZ Newbie
darren1234 has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: Nov 12, 2006
0.00 posts per day
Posts: 6
Points: 25
   
hi thanks for your reply

I dont think the whole header is flash - because when the theme maker helped me edit the header it was only the left side which was visible in the fla. and swf files.

i only know the basics of html/php and ive taken a look in the theme.php and the header.html files - and am completely puzzled when it comes to all that code.

i wouldnt have the first idea of how to configure this.

I have edited php/html files before - so with direct instructions on where i would have to edit the file and what i would have to insert - i could do this.

here is part of the theme.php file:


/************************************************************/
/* Function themeheader()                                   */
/************************************************************/
    function themeheader() {
    global $user, $sitename, $slogan, $cookie, $prefix;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    $public_msg = public_message();
    echo "$public_msg";
    //$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
    //$topics_list .= "<option value=\"\">All Topics</option>\n";
    //$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
    //while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    //if ($topicid==$topic) { $sel = "selected "; }
        //$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
        //$sel = "";
   
    if ($username == "Anonymous") {
        $theuser = "<a href=\"modules.php?name=Your_Account&op=new_user\">Login /Register</a>";
    } else {
        $theuser = "Hello $username!";
    }
    echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
    $tmpl_file = "themes/Evasion/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/Evasion/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
     global $index, $foot1, $banners, $foot2, $foot3, $foot4;
/************************************************************/
/* banners are set with openbox function on the footer, if  */
/* you like to have it on the header you can do that as well*/
/************************************************************/
    if ($banners == 1) {
      OpenTable();
        include("banners.php");
      CloseTable();
    }
    if ($index == 1) {
   $tmpl_file = "themes/Evasion/left_center.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
   blocks(right);
    }
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/Evasion/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/* This function format the stories on the Homepage         */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
    }
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    //Code Changed - just show posted by
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ";
    //End Code Change
    $datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
    $morelink = substr($morelink, strlen($datetime) + 2);
    $tmpl_file = "themes/Evasion/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}


and heres whats written in the header.html file:


<HTML>
<HEAD>
<TITLE>layout-head</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (header.psd) -->
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
   <TR>
      <TD COLSPAN=4>
         <A HREF="http://www.webzonez.com">
            <IMG SRC="themes/Evasion/images/header_01.gif" WIDTH=346 HEIGHT=12 BORDER=0 ALT=""></A></TD>
      <TD COLSPAN=5>
         <IMG SRC="themes/Evasion/images/header_02.gif" WIDTH=280 HEIGHT=12 ALT=""></TD>
      <TD COLSPAN=2 ROWSPAN=2>
         <IMG SRC="themes/Evasion/images/header_03.gif" WIDTH=62 HEIGHT=225 ALT=""></TD>
      <TD ROWSPAN=7 background="themes/Evasion/images/header_04.gif" WIDTH=100% HEIGHT=250></TD>
      <TD ROWSPAN=7>
         <IMG SRC="themes/Evasion/images/header_05.gif" WIDTH=74 HEIGHT=250 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
   </TR>
   <TR>
      <TD COLSPAN=9>
         <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="626" height="213" id="logo" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="themes/Evasion/images/logo.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#a7b6cf" />
<embed src="themes/Evasion/images/logo.swf" quality="high" bgcolor="#a7b6cf" width="626" height="213" name="logo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
</TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=213 ALT=""></TD>
   </TR>
   <TR>
      <TD ROWSPAN=5>
         <IMG SRC="themes/Evasion/images/header_07.gif" WIDTH=195 HEIGHT=25 ALT=""></TD>
      <TD COLSPAN=7>
         <IMG SRC="themes/Evasion/images/header_08.gif" WIDTH=360 HEIGHT=2 ALT=""></TD>
      <TD COLSPAN=2 ROWSPAN=5>
         <IMG SRC="themes/Evasion/images/header_09.gif" WIDTH=85 HEIGHT=25 ALT=""></TD>
      <TD ROWSPAN=2>
         <A HREF="/~webzone/core/modules.php?name=Your_Account&stop=1">
            <IMG SRC="themes/Evasion/images/header_10.gif" WIDTH=48 HEIGHT=9 BORDER=0 ALT=""></A></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=2 ALT=""></TD>
   </TR>
   <TR>
      <TD ROWSPAN=4>
         <A HREF="/~webzone/core/index.php">
            <IMG SRC="themes/Evasion/images/header_11.gif" WIDTH=38 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD ROWSPAN=4>
         <A HREF="/~webzone/core/modules.php?name=Forums">
            <IMG SRC="themes/Evasion/images/header_12.gif" WIDTH=55 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD COLSPAN=2 ROWSPAN=4>
         <A HREF="/~webzone/core/modules.php?name=Downloads">
            <IMG SRC="themes/Evasion/images/header_13.gif" WIDTH=75 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD ROWSPAN=4>
         <A HREF="/~webzone/core/modules.php?name=Web_Links">
            <IMG SRC="themes/Evasion/images/header_14.gif" WIDTH=66 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD ROWSPAN=4>
         <A HREF="/~webzone/core/modules.php?name=Your_Account">
            <IMG SRC="themes/Evasion/images/header_15.gif" WIDTH=61 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD ROWSPAN=4>
         <A HREF="/~webzone/core/modules.php?name=Affiliates">
            <IMG SRC="themes/Evasion/images/header_16.gif" WIDTH=65 HEIGHT=23 BORDER=0 ALT=""></A></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=7 ALT=""></TD>
   </TR>
   <TR>
      <TD>
         <IMG SRC="themes/Evasion/images/header_17.gif" WIDTH=48 HEIGHT=2 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=2 ALT=""></TD>
   </TR>
   <TR>
      <TD>
         <A HREF="/~webzone/core/modules.php?name=Your_Account&op=new_user">
            <IMG SRC="themes/Evasion/images/header_18.gif" WIDTH=48 HEIGHT=8 BORDER=0 ALT=""></A></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
   </TR>
   <TR>
      <TD>
         <IMG SRC="themes/Evasion/images/header_19.gif" WIDTH=48 HEIGHT=6 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>
   </TR>
   <TR>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=195 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=38 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=55 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=66 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=61 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=71 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD>
      <TD>
         <IMG SRC="themes/Evasion/images/spacer.gif" WIDTH=74 HEIGHT=1 ALT=""></TD>
      <TD></TD>
   </TR>
</TABLE>
<!-- End ImageReady Slices -->
<!-- This table below is what separates the header and the body of the theme, change the height of the TD to adjust the amount of space you want-->
<TABLE align="center" WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr><td height="5"></td></tr></table>


<!-- These 2 tables I wouldnt recommend changing if this is your first attempt on making themes, they control the left/ right blocks on the theme, I will try to explain in the tutorial -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top">
<td></td></tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top">
<td></td>
<td width="165" valign="top">
</BODY>
</HTML>


any help on this would be apreciated
thanks
darren


Back to top Reply with quote
#4   re: linkable banner inside the header - is this possible?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
The good news is that the flash movie sits inside a cell in the table that makes up your header. It is possible to put a link banner in the header if there's enough room beside the flash movie.

The bad news is you'll probably need to rewrite the whole table that makes up th header. Whoever created the theme used the garbage spit out by Image Ready instead of writing their own code. The result of that is that you have a table full of empty cells and unnecessary spacer.gifs. Trying to figure out all the colspans and rowspans in that mess is a headache waiting to happen.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum