|
» Online Users: 50 |
| 0 members and 50 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
Tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
|
|
|
|
|
|
|
|
About this Page This is a discussion on How to Place the Banner ? within the Purged Topics forums, part of the NM Staff category; I'm using Phpnuke 5.6 with phpbb port and fisubsilver Theme!
And i'm using banner on my website! =?... |
|
 |
 |
|
 |

12-26-2002, 08:30 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: USA
Posts: 4
|
|
|
How to Place the Banner ?
I'm using Phpnuke 5.6 with phpbb port and fisubsilver Theme!
And i'm using banner on my website! =?Normal display, not block display!
As usual , the banner was showed at the top and centre of the site!
Now, my question is : How can I move the Banner Placement to the Right Hand Side of Site Logo?
Thanks for Help!
|

12-26-2002, 12:04 PM
|
|
Junior Member
|
|
Join Date: Nov 2002
Posts: 13
|
|
Dont know the code your gonna have to change cuz i dont have that theme, but in the theme.php file of ur theme, fisubsiver, there is this at the top, line 47 i think:
|
Code:
|
if ($banners == 1) {
include("banners.php");} |
Put that code where you want the banner to show up. but back up your theme.php file before doing so, just incase im wrong. 
|

12-27-2002, 02:10 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Posts: 14
|
|
|
What if we are using a theme with html templates? Like you guys do for your themes.. "header.html, footer.html, block.html, etc"
Would we put the code in the html header?
|

12-27-2002, 07:59 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: USA
Posts: 4
|
|
|
Originally Posted by Craka
|
Dont know the code your gonna have to change cuz i dont have that theme, but in the theme.php file of ur theme, fisubsiver, there is this at the top, line 47 i think:
|
Code:
|
if ($banners == 1) {
include("banners.php");} |
Put that code where you want the banner to show up. but back up your theme.php file before doing so, just incase im wrong.
|
I haven't change any code!
I have did the action you are mention above! But, no success! :cry:
The Banner Can't Place At The Right Hand Side Of My Site Logo!
Below is my Theme.php code! Can you or others Help ME?
Thank you very much!
I want to Place Banner On the Right Hand Site Of the Site Logo:
|
Code:
|
<meta http-equiv="Page-Exit" content="blendTrans(Duration=1.0)">
<?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&op=userinfo&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&op=userinfo&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;
}
?> |
|

12-27-2002, 11:54 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Posts: 14
|
|
Here is the code to one of my old themes that had the banners to the right of the logo.. Hope this helps.
(it's just the first part of theme header in theme.php)
|
Code:
|
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#f3f3f3\" background=\"themes/KTB-Grey/images/mainBackground2.gif\"text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
."
\n";
/*
if ($banners) {
include("banners.php");
}
*/ |
So I assume you would just replace this line of code in your theme.php:
|
Code:
|
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\">"; |
With this..
|
Code:
|
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\">";
."
\n";
/*
if ($banners) {
include("banners.php");
}
*/ |
Just make sure you BACKUP your theme.php before you try this because I could be wrong.
|

12-29-2002, 07:26 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: USA
Posts: 4
|
|
|
Thanks for help !
But Fail!!! :cry:
Parse error: parse error in /home/public_html/themes/fisubsilver/theme.php on line 48
Fatal error: Call to undefined function: themeheader() in /home/public_html/header.php on line 47
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|