PHP Help Needed

Status
Not open for further replies.

SpaceMonkey

New member
Aug 18, 2007
151
1
0
I own the site, http://audioraider.com. I made the mistake of not having my coder include an audioraider.com/results page. What I want to do is add some text, image, and advertisement code just when it shows the results of the search. I know I need to include an if statement, but I'm not exactly sure what to put. I really appreciate any help that I can get.

If you want to see the code just let me know and I'll PM you.

Thanks
 


Why do you need an if statement, thats only for conditionals. It seems to me like your always including it.

You can do:
Code:
<? include("page.html"); ?>
 
I'm not sure if I understand you but if all you want to do is add some text, image, & an ad when the results load why not just add that information right before this in the result code
Code:
<div id="searchresults">Loading...</div>
 
I'm not sure if I understand you but if all you want to do is add some text, image, & an ad when the results load why not just add that information right before this in the result code
Code:
<div id="searchresults">Loading...</div>

Thanks, that was a lot easier than I thought.
 
One more question. How can I make my logo clickable and a link back to my homepage? I tried using the usual html image link, but that didn't work. I don't get CSS...
 
Hmmm....mine seems a little different than the example.

* { margin: 0; padding: 0; }
#pagecontainer { float: left; width: 100%; text-align: center; background: #000000;}
#headerbg { background: #000000 url(images/headerbg.jpg) repeat-x; height:189px; margin:0; padding:0;}
#header { background:url(images/audioradioheader.jpg) no-repeat; height:189px; margin:0; padding:0;}
#logobg { width:950px; margin:0 auto; padding:0; clear:both; float:left;}
#content { margin: 0 auto; width: 915px; text-align: left; }
#content_bg { float: left; text-align:left; width: 915px; margin: 60px 0 0 0; padding: 0 0 5px 0; background-color:#000000; min-height:200px;}
#content_bottom { float: left; width: 915px; height: 40px; }
#logologo {position:absolute !important; top:13px !important; margin-left:34px !important; float:left !important;}
#top { float: left; width: 915px; height: 27px; text-align: right; }
#searcharea { width: 915px; height: 40px; margin: 0px; text-align: center; vertical-align: middle; }
#resultsarea { float: left; width: 700px; margin: 0px auto; background: #000000;}
#footer { color:#dddddf; font-weight:bold; text-align:center; }
#hmenu { height:189px;}

#menu li {
margin:0 0 0 0;
padding:152px 0 0 5px;
float:left;
list-style:none;
}
input#searchbox{
display: block;
margin: 5px 0;
padding: 6px 10px;
width: 370px;
height: 32px;
line-height: 32px;
font-size: 16px;
background: transparent url(images/search-box.jpg);
border: 0;
float:left;
}
#dosearch {
margin-left:10px;

}

body {
margin: 0;
font: 11px, Arial, Helvetica, Serif;
background: #000000;
color: #CCCCCC;
min-width: 900px;
}
hr {
height:5px;
width:100%;
background:#484848;
margin: 0px auto;
}
a {
color: #2092e8;
font-weight: bold;
text-decoration: none;
overflow: hidden;
}

/* Google stuff */

.gs-result{
padding: 10px 0;
border-bottom: 1px dotted #AAA;
}

.gs-result:hover{
opacity: 1.0;
}

.gsc-resultsHeader{
display: none;
}

.gsc-result-selector{
display: none;
}

.gsc-result div.gs-watermark{
display: none;
}

.gs-result .gs-title, .gs-result .gs-title b{
font-size: 18px;
font-weight: normal;
letter-spacing: -1px;
}

.gs-result .gs-title b{
border-bottom: 1px dotted #AAA;
}

.gs-snippet b{
font-weight: normal;
}

.gs-webResult .gs-visibleUrl-short{
font-size: 10px;
color: #999;
}

.gs-webResult .gs-visibleUrl-long{
display: none;
}

.gsc-results .gsc-trailing-more-results a{
color: #fc00ff;
font: 12px, Arial, Helvetica, Serif;
font-weight: bold;
text-decoration: none;
overflow: hidden;
}
I'm really not sure what exactly to change with the #header. I have just one more question. In firefox everything is great, but in IE the text in the search box looks bad and the footer is too far up. Why is this happening?

I REALLY appreciate the help guys. I'm probably going to have to learn to do my own coding soon or at least enough for me to actually understand what's happening.
 
I will have to look at it again later tonight, don't have time at the moment. BUT a quick fix without learning maps or the CSS way would to do something like this;
Code:
<div id="header"><a href="index.php" target="_self"><img src="transparent.png"></a></div>

Now I haven't looked at your code again so this might not be the case. All you have to do is make a transparent img file the same size as your header and wrap you link code around that.
 
Status
Not open for further replies.