Need help placing ads inside header graphic.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Need help placing ads inside header graphic.
eradio
CZ Newbie
eradio has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 03, 2006
0.00 posts per day
Posts: 13
Points: 25
   
My header currently loads as one image. I laid the site out in Firewroks and sliced it up, but I am not savvy enough to implement that way using PHP. I would like to take out a specific size of the exsisting header. 234X60 to place either Google ads or my own banner rotation device.
Can anyone help guide me in the right direction?
Thanks...



Back to top Reply with quote
#2   re: Need help placing ads inside header graphic.
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
Just slice it, and make sure one of your slices is the size of the ad you wanna place. Slices are built in html tables in the slice you want the ad make the original image for that slice the background of that table. Your table code will look like this

<table border="1" width="342" height="199" background="path_to_image/image.gif">
   <tr>
      <td height="199" width="342">your add here</td>
   </tr>
</table>

That is just a sample yours will have more. Hope that helps


Back to top Reply with quote
#3   re: Need help placing ads inside header graphic.
eradio
CZ Newbie
eradio has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 03, 2006
0.00 posts per day
Posts: 13
Points: 25
   
Thanks for the reply, but which file will I edit..is it header.php?



Back to top Reply with quote
#4   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
In your theme folder it will be header.html



Back to top Reply with quote
#5   re: Need help placing ads inside header graphic.
eradio
CZ Newbie
eradio has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 03, 2006
0.00 posts per day
Posts: 13
Points: 25
   
I appreciate the insight, but I only have an index.html and a theme.php within the root of the theme I am using. And here is the code that relates to my header and its image..the "topp.jpg" is the header image.

/************************************************************/
/* Function themeheader() */
/************************************************************/

function themeheader() {
global $banners;
echo "<body bgcolor=\"#81AFE6\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">"
."";
if ($banners) {
include("banners.php");
}

echo "<table border=\"0\" class=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\" height=\"1\" bgcolor=\"#3C599B\">\n"
."<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"center\">";



echo "</td><td align=\"right\"><img border=\"0\" src=\"themes/ChipperXTheme/images/topp.jpg\"></td></tr></table></td></tr>\n"
."<tr><td width=\"100%\" bgcolor=\"#3C599B\" height=\"0\" valign=\"bottom\">\n"
."<img src=\"themes/ChipperXTheme/images/bar.gif\" width=\"770\" height=\"26\" usemap=\"#Map\" border=\"0\">\n"
."<map name=\"Map\"> \n"
."<area shape=\"rect\" coords=\"12,5,60,17\" href=\"modules.php?name=Ihome\">\n"
."<area shape=\"rect\" coords=\"77,5,125,17\" href=\"modules.php?name=Inews\">\n"
."<area shape=\"rect\" coords=\"140,5,185,17\" href=\"modules.php?name=Ifm\">\n"
."<area shape=\"rect\" coords=\"207,6,264,17\" href=\"modules.php?name=Isat\">\n"
."<area shape=\"rect\" coords=\"285,5,365,17\" href=\"modules.php?name=Istream\">\n"
."<area shape=\"rect\" coords=\"383,5,500,17\" href=\"modules.php?name=Iprod\">\n"
."<area shape=\"rect\" coords=\"520,5,548,17\" href=\"forums.html\">\n"
."<area shape=\"rect\" coords=\"575,6,648,17\" href=\"modules.php?name=Iprep\">\n"
."<area shape=\"rect\" coords=\"669,6,750,17\" href=\"feedback.html\">\n"
."</map>\n"
."</td></tr><tr><td width=\"100%\" height=\"0\" bgcolor=\"#3C599B\" align=\"right\"><font face=\"verdana\" size=\"1\" color=\"#000000\"><font face=\"verdana\" size=\"1\" color=\"#000000\"></a>\n"
."</td></tr></table>\n"
."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#3C599B'>\n"
;
$public_msg = public_message();
echo "$public_msg";
echo "</td></tr></table><table width=\"770\" cellpadding=\"0\" bgcolor=\"#ffffff\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td></td>\n"
."<td width=\"130\" bgcolor=\"#3C599B\" valign=\"top\">\n";
blocks(left);
echo "</td><td></td><td width=\"100%\">\n";
}


Now what? icon_redface.gif



Back to top Reply with quote
#6   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
can i see your site



Back to top Reply with quote
#7   re: Need help placing ads inside header graphic.
eradio
CZ Newbie
eradio has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 03, 2006
0.00 posts per day
Posts: 13
Points: 25
   
[ Register or login to view links on this board. ]



Back to top Reply with quote
#8   re: Need help placing ads inside header graphic.
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
Ok try this out

in index.html find this

echo "<table border=\"0\" class=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\" height=\"1\" bgcolor=\"#3C599B\">\n"
."<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"center\">";



echo "</td><td align=\"right\"><img border=\"0\" src=\"themes/ChipperXTheme/images/topp.jpg\"></td></tr></table></td></tr>\n"


Replace with

echo "<table border=\"0\" class=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"770\">\n"
."<tr><td width=\"100%\" height=\"1\" bgcolor=\"#3C599B\">\n"
."<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><TD width=\"358\">";



echo "<IMG SRC=\"themes/ChipperXTheme/images/topp_01.jpg\" WIDTH=358 HEIGHT=117\"></TD><TD background=\"themes/ChipperXTheme/images/topp_02.jpg\"><p align=\"center\">your ad here</TD>
</tr></table></td></tr>\n"

Also download the attachment and place the images here themes/ChipperXTheme/images/
I think this is what you want let me know how it works


Attached Files
images.rar (20.39 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#9   re: Need help placing ads inside header graphic.
eradio
CZ Newbie
eradio has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 03, 2006
0.00 posts per day
Posts: 13
Points: 25
   
Thanks again for the help, but there is no code in my index.html file..All my code lies within the theme.php. I tried to replace it there, because that is where the code came from, but it didnt work...nothing but a white page.
I have attached my entire theme , as it sits on my server. I also included the new images with the cuts I desire..
See what you think..
Thanks alot for the help.



Attached Files
Radio.rar (149.99 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#10   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
I see the cuts do you have the html for the images?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum