Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 61
3 members and 58 guests
bea9qgchcomberc, garere3denstc3t, int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Banner Placement Problem!
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 4
Join Date: Oct 2002
Location: USA
Banner Placement Problem! - 01-02-2003, 09:14 AM

I'm using Phpnuke 5.6 with phpbb port and fisubsilver Theme! (Like nukemods.com now)

I would like to place banner on the right hand site of logo.
But failed many times.

Can you help me? :cry:

Code:
<?php 

/************************************************************/ 
/* Theme Name: fisubsilver                                     */ 
/* Theme Design: coldblooded (www.hellhole.org)             */ 
/*                                                          */ 
/* Theme inspired by the phpbb2 style fisubsilver by           */ 
/* Daz (http://www.forumimages.com/)                     */ 
/*                                                          */ 
/************************************************************/ 

/************************************************************/ 
/* Theme Colors Definition                                  */ 
/*                                                          */ 
/* Define colors for your web site. $bgcolor2 is generaly   */ 
/* used for the tables border as you can see on OpenTable() */ 
/* function, $bgcolor1 is for the table background and the  */ 
/* other two bgcolor variables follows the same criteria.   */ 
/* $texcolor1 and 2 are for tables internal texts           */ 
/************************************************************/ 

$bgcolor1 = "#EAEDF4"; 
$bgcolor2 = "#EAEDF4"; 
$bgcolor3 = "#EAEDF4"; 
$bgcolor4 = "#EAEDF4"; 
$textcolor1 = "#000000"; 
$textcolor2 = "#000000"; 

include("themes/fisubsilver/tables.php"); 

/************************************************************/ 
/* Function themeheader()                                   */ 
/*                                                          */ 
/* Control the header for your site. You need to define the */ 
/* BODY tag and in some part of the code call the blocks    */ 
/* function for left side with: blocks(left);               */ 
/************************************************************/ 

function themeheader() { 
    global $user,$sitename, $slogan, $banners, $cookie, $prefix, $dbi; 
    cookiedecode($user); 
    $username = $cookie[1]; 
    if ($username == "") { 
        $username = "Anonymous"; 
    } 
    echo "<body bgcolor=\"#000000\" text=\"#FFFFCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">"; 


    
    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n"; 
    $topics_list .= "<option value=\"\">All Topics</option>\n"; 
   if ($banners == 1) { 
   include("banners.php");} 
    $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\">Create an account"; 
    } else { 
   $theuser = "Welcome $username!"; 
    } 
    $tmpl_file = "themes/fisubsilver/header.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
    blocks(left); 
    $tmpl_file = "themes/fisubsilver/left_center.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
} 

/************************************************************/ 
/* Function themefooter()                                   */ 
/*                                                          */ 
/* Control the footer for your site. You don't need to      */ 
/* close BODY and HTML tags at the end. In some part call   */ 
/* the function for right blocks with: blocks(right);       */ 
/* Also, $index variable need to be global and is used to   */ 
/* determine if the page your're viewing is the Homepage or */ 
/* and internal one.                                        */ 
/************************************************************/ 

function themefooter() { 
    global $index, $foot1,$foot2, $foot3, $foot4; 
    if ($index == 1) { 
   $tmpl_file = "themes/fisubsilver/center_right.html"; 
   $thefile = implode("", file($tmpl_file)); 
   $thefile = addslashes($thefile); 
   $thefile = "\$r_file=\"".$thefile."\";"; 
   eval($thefile); 
   print $r_file; 
   blocks(right); 
    }    
    $footer_message = "$foot1
$foot2
$foot3
$foot4"; 
    $tmpl_file = "themes/fisubsilver/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; 
    if ($notes != "") { 
   $notes = "

"._NOTE." $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"; 
    } 
    $posted = ""._POSTEDBY." "; 
    $posted .= get_author($aid); 
    $posted .= " "._ON." $time $timezone ($counter "._READS.")"; 
    $tmpl_file = "themes/fisubsilver/story_home.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
} 

/************************************************************/ 
/* Function themearticle()                                  */ 
/*                                                          */ 
/* This function format the stories on the story page, when */ 
/* you click on that "Read More..." link in the home        */ 
/************************************************************/ 

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { 
    global $admin, $sid, $tipath; 
    $posted = ""._POSTEDON." $datetime "._BY." "; 
    $posted .= get_author($aid); 
    if ($notes != "") { 
   $notes = "

"._NOTE." $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"; 
    } 
    $tmpl_file = "themes/fisubsilver/story_page.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
} 

/************************************************************/ 
/* Function themesidebox()                                  */ 
/*                                                          */ 
/* Control look of your blocks. Just simple.                */ 
/************************************************************/ 

function themesidebox($title, $content) { 
    $tmpl_file = "themes/fisubsilver/blocks.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
} 

?>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BBcode placement problem in the forums gknight Nuke 7.x - General 2 03-17-2005 09:56 AM
Site Visitors Block Security code image placement MurphDog Nuke 6.5 to 6.9 - Blocks 6 07-15-2003 09:36 PM
fiapple Banner/Ad Placement PCplay Nuke 6.5 to 6.9 - Themes 5 06-22-2003 08:08 PM
Banner Ad problem, please help! dac Purged Topics 3 03-06-2003 10:54 PM
banner add placement, prolly an easy question! dac Theme packs 1 02-22-2003 07:07 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31