Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
Donovan
Client


Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Sat Feb 28, 2009 12:53 pm Reply with quote

I have a theme for my kids swim team.
Only registered users can see links on this board! Get registered or login!

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=\"messages.html\"><img src=\"themes/PH2BLUE/images/header_contact.gif\" border=\"0\" alt=\"Private Messages\"></a></td>"

  . "      <td><a href=\"search.html\"><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=\"account.html\" 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
 
View user's profile Send private message Visit poster's website ICQ Number
trunks
Worker
Worker


Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Sat Feb 28, 2009 1:41 pm Reply with quote

Open your theme.php and find the following in the function themeheader() {

Code:
   if ($banners == 1) {

   include("banners.php");


Replace with:

Code:
   $ads = ads(0);

(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

Code:
$ads


i.e

<td><img src=\"themes/PH2BLUE/images/background/index.php\" alt=\"\">$ads</td>
 
View user's profile Send private message Visit poster's website MSN Messenger
Donovan
PostPosted: Sat Feb 28, 2009 1:41 pm Reply with quote

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
PostPosted: Sat Feb 28, 2009 3:07 pm Reply with quote

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
PostPosted: Sat Feb 28, 2009 3:13 pm Reply with quote

At 1280 by 1024 it is perfect, but I guess i should target at least 1024 by 768.
 
trunks
PostPosted: Sat Feb 28, 2009 5:12 pm Reply with quote

That would be defined by the possitioning of the stretch points within the header itself Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©