Author
Message
Donovan Client Joined: Oct 07, 2003 Posts: 735 Location: Ohio
Posted:
Sat Feb 28, 2009 12:53 pm
I have a theme for my kids swim team.
I want to make use of the space to the right of the logo, and enable advertisers to display banners. The images are rotated randomly with every page refresh. I can't seem to be able to put the echo ads(0) in the correct place.
I am running rn2.30.01
Here is the relevant part of the themeheader
Code: echo"<table class=\"bodyline\" align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"
. "<tr><td valign=\"top\">"
. "<table width=\"100%\" height=\"21\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. " <tr>"
. " <td background=\"themes/PH2BLUE/images/header_top.gif\" width=\"100%\"></td>"
. " <td><a href=\"index.php\"><img src=\"themes/PH2BLUE/images/header_home.gif\" border=\"0\" alt=\"Home\"></a></td>"
. " <td><a href=\"modules.php?name=Private_Messages\"><img src=\"themes/PH2BLUE/images/header_contact.gif\" border=\"0\" alt=\"Private Messages\"></a></td>"
. " <td><a href=\"modules.php?name=Search\"><img src=\"themes/PH2BLUE/images/header_search.gif\" border=\"0\" alt=\"Search\"></a></td>"
. " </tr>"
. "</table>"
. "<table width=\"100%\" height=\"134\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. " <tr>"
. " <td><img src=\"themes/PH2BLUE/images/header_01.jpg\" width=\"277\" height=\"134\" alt=\"\"></td>"
. " <td><img src=\"themes/PH2BLUE/images/background/index.php\" alt=\"\"></td>"
. " <td width=\"100%\" background=\"themes/PH2BLUE/images/spacer_top.jpg\"></td>"
. " </tr>"
. "</table>"
. "<table width=\"100%\" height=\"48\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. " <tr>"
. "<td><img src=\"themes/PH2BLUE/images/header_04.jpg\" width=\"311\" height=\"48\" alt=\"\"></td>"
. "<td><a href=\"index.php\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item1','','themes/PH2BLUE/images/header_05_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_05.jpg\" name=\"Item1\" width=\"98\" height=\"48\"></a></td>"
. "<td><a href=\"topics.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item2','','themes/PH2BLUE/images/header_06_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_06.jpg\" name=\"Item2\" width=\"99\" height=\"48\"></a></td>"
. "<td><a href=\"forums.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item3','','themes/PH2BLUE/images/header_07_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_07.jpg\" name=\"Item3\" width=\"100\" height=\"48\"></a></td>"
. "<td><a href=\"downloads.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item4','','themes/PH2BLUE/images/header_08_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_08.jpg\" name=\"Item4\" width=\"100\" height=\"48\"></a></td>"
. "<td><a href=\"modules.php?name=Your_Account\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item5','','themes/PH2BLUE/images/header_09_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_09.jpg\" name=\"Item5\" width=\"104\" height=\"48\"></a></td>"
. "<td width=\"100%\" background=\"themes/PH2BLUE/images/spacer_bottom.jpg\"></td>"
. " </tr>"
. "</table>"
. "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. "<tr>"
. "<td width=\"194\" height=\"12\"><img src=\"themes/PH2BLUE/images/left_block_top.jpg\"></td>"
. "<td width=\"100%\" height=\"12\" background=\"themes/PH2BLUE/images/middle_block_top.jpg\"></td>"
. "$topblock"
. "</tr></table>"
. ""
. "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">"
. "<tr valign=\"top\">"
. "<td valign=\"top\" background=\"themes/PH2BLUE/images/block_left.jpg\">";
// Modification to hide left blocks in Forums
blocks(left);
echo "</td><td align=\"center\" bgcolor=\"#FCFCFC\" valign=\"top\" width=\"100%\">\n";
echo ads(0);
}
Thanks
trunks Worker Joined: Oct 05, 2007 Posts: 152 Location: United Kingdom
Posted:
Sat Feb 28, 2009 1:41 pm
Open your theme.php and find the following in the function themeheader() {
Code: if ($banners == 1) {
include("banners.php");
Replace with:
(the number should correspond with the number you have set in the advertisement module)
Then open your theme header and the following to the image that you wish banners to be placed on
i.e
<td><img src=\"themes/PH2BLUE/images/background/index.php\" alt=\"\">$ads</td>
Donovan Client Joined: Oct 07, 2003 Posts: 735 Location: Ohio
Posted:
Sat Feb 28, 2009 1:41 pm
Nevermind.
Code:
. " <td><img src=\"themes/PH2BLUE/images/background/index.php\" alt=\"\"></td>"
. " <td width=\"100%\" background=\"themes/PH2BLUE/images/spacer_top.jpg\">";
echo ads(0);
echo"</td>"
. " </tr>"
. "</table>"
Donovan Client Joined: Oct 07, 2003 Posts: 735 Location: Ohio
Posted:
Sat Feb 28, 2009 3:07 pm
How do people handle the issue with different resolutions while still placing ads in the header. At 1024 Raven's header still looks ok. Mine looks like crap. My ad file is 420 by 120.
Donovan Client Joined: Oct 07, 2003 Posts: 735 Location: Ohio
Posted:
Sat Feb 28, 2009 3:13 pm
At 1280 by 1024 it is perfect, but I guess i should target at least 1024 by 768.
trunks Worker Joined: Oct 05, 2007 Posts: 152 Location: United Kingdom
Posted:
Sat Feb 28, 2009 5:12 pm
That would be defined by the possitioning of the stretch points within the header itself
View next topic
View previous topic
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