| Author |
Message |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Mon Nov 21, 2005 9:56 pm |
  |
| Code: |
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" leftMargin=\"0\" topMargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"1\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" width=\"200\">\n"
."<a href=\"index.php\"><img src=\"themes/Junkmail/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
."<td bgcolor=\"#ffffff\" width=\"100%\">\n"
ADD BANNER HERE
."</td></tr>\n"
."</table><br>\n" |
i've tried adding variations of this code to try make the banner inside the tabler along side the logo
| Code: |
if ($banners) {
include("banners.php");
} |
any help appreciated |
|
|
     |
 |
shrek_rock
Captain


Joined: Nov 24, 2003
Posts: 709
|
Posted:
Tue Nov 22, 2005 5:21 am |
  |
|
     |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Wed Nov 23, 2005 4:41 pm |
  |
nah it doesn't
i can show banners no problem outside top table
but when i add
| Code: |
if ($banners) {
include("banners.php");
} |
inside table like above in first post it doesn't work
i got it to work before inside table when code was
| Code: |
echo "<center><table border=1 width=100% cellpadding=0 cellspacing=0><tr><td>\n\n";
echo "<a href=\"index.php\"><img src=themes/ExtraLite/images/logo.gif Alt=\""._WELCOMETO." $sitename\" border=0></a>\n";
echo "</td>\n";
if ($banners) {
echo "<td>";
include("banners.php");
echo "</td>";
}
echo "<td align=right>\n"; |
I can work out banners inside tables wrapped in
i just can't work out how to make banners work inside tables wrapped inside php
|
|
|
     |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
|
Posted:
Wed Nov 23, 2005 8:03 pm |
  |
Namsul, wrap the code:
| Code: |
if ($banners) {
echo "<td>";
include("banners.php");
echo "</td>";
}
|
to
| Code: |
if ($banners) {
echo "<td>";
echo "<table width='100%' border='0'><tr><td width='100%'>";
include("banners.php");
echo "</td></tr></table>";
echo "</td>";
}
|
|
_________________ •NukeKorea Dev. Network.
•NukeKorea Laboratories |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Wed Nov 23, 2005 10:19 pm |
  |
nope Xyberian
that doesn't work either
not sure but problem seems to be the theme.php has code wrapped in
and to make things even more painful i try to post the theme.php here and forums say code isn't allowed
pain in the a$$
i zipped the theme http://www.junkmail.com.au/software/theme.zip
if someone gets a chance to have a look it'de be appreciated
i tried finding a theme with the banner where i wanted it, the date in header and the "welcome user" in the header and this seems the only one out there |
|
|
     |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12403
|
Posted:
Wed Nov 23, 2005 10:24 pm |
  |
|
     |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Wed Nov 23, 2005 10:31 pm |
  |
output buffering?
i don't know what that means sorry  |
|
|
     |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
|
Posted:
Wed Nov 23, 2005 10:38 pm |
  |
I assumed you have a lot of experience in handling themes.
Ok.
my method and suggestion are correct, but I showed just a fraction of codes:
Follow my MODification format (let me assume you're using ExtraLite theme-pack)
| Code: |
#
# ---- [ OPEN ] ----
#
themes/ExtraLite/theme.php
#
# ----- [ FIND ] -----
#
function themeheader() {
echo "body .......
."<br>";
if ($banners) {
include("banners.php");
}
echo "<br>"
#
# ------ [ INLINE, FIND ] ------
#
function themeheader() {
#
# ------ [ AFTER, ADD ] -------
#
global $banners;
#
# ------ [ INLINE, FIND & REMOVE] ------
#
if ($banners) {
include("banners.php");
}
#
# ------ [ FIND ] ---------
#
blocks("left");
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td> </td><td width=\"100%\" valign=\"top\">";
}
#
# ------- [ INLINE, FINE ] ---------
#
}
#
# ------- [ BEFORE, ADD ] -------
#
if ($banners) {
include("banners.php");
}
#
# ------ [ SAVE ] -----------
#
EoM
|
The above code works with phpnuke 7.0 to 7.6. Add your banner and your banner picture will appear on the top-center and under your logo block. |
_________________ •NukeKorea Dev. Network.
•NukeKorea Laboratories |
|
    |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
|
Posted:
Wed Nov 23, 2005 10:42 pm |
  |
|
    |
 |
|
|