PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Donovan
Client


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

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

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


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
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 Back to top

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
Client


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

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

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>"
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


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

PostPosted: Sat Feb 28, 2009 3:07 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


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

PostPosted: Sat Feb 28, 2009 3:13 pm Reply with quote Back to top

At 1280 by 1024 it is perfect, but I guess i should target at least 1024 by 768.
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 5:12 pm Reply with quote Back to top

That would be defined by the possitioning of the stretch points within the header itself Smile
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum