![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
| Hello, I am trying to get my banners working, but it is not. At the bottom of my HeaderTemplate is the following. <? # include_once($BannerPath."/ShowBanner.php?BannerType=120x60"); ?> <? # include_once($BannerPath."/ShowBanner.php?BannerType=468x60"); ?> </center> <br /> What are the "#" symbols for? Is that why my banners are not showing? Thanks www.ufindabiz.com Last edited by MoodyMare; 10-06-2007 at 06:52 PM. Reason: Adding website |
|
#2
| ||||
| ||||
| Your page also has to be changed to php to run php coding, and Im not sure about the # but that should be "?php" and no #, I think you used something to edit or copy and stripped out your coding. It also doesnt look complete to me. When copying source code from a web page, make the habit of copying to notepad first, then recopying to your destination. That way you dont lose coding. Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#3
| ||||
| ||||
| This is the error I get when I remove the # signs. Warning: include_once() [function.include-once]: URL file-access is disabled in the server configuration in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389 Warning: include_once(http://www.ufindabiz.com/ShowBanner....nerType=120x60) [function.include-once]: failed to open stream: no suitable wrapper could be found in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389 Warning: include_once() [function.include]: Failed opening 'http://www.ufindabiz.com/ShowBanner.php?BannerType=120x60' for inclusion (include_path='.:/usr/lib/php') in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389 Warning: include_once() [function.include-once]: URL file-access is disabled in the server configuration in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 393 Warning: include_once(http://www.ufindabiz.com/ShowBanner....nerType=468x60) [function.include-once]: failed to open stream: no suitable wrapper could be found in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 393 Warning: include_once() [function.include]: Failed opening 'http://www.ufindabiz.com/ShowBanner.php?BannerType=468x60' for inclusion (include_path='.:/usr/lib/php') in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 393 This is a code that I purchased. I just looked up that the # sign's at the beginning of the line make it a comment line, not a function of the code. So I thought I'd remove the #'s and see what happens. The above error was plastered all over my home page. Do you think I need some {}'s or ()'s around the include once command? Thanks |
|
#4
| ||||
| ||||
| I think you need to go back to where you got the code and copy it to notepad as I suggested. Then copy it to your page. If you purchased it, then it also should have instructions for installing it to your site. Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#5
| ||||
| ||||
| Hi Karen, I actually bought the whole website, codes, and html included. (As one package). I did not have to copy and paste anything. And unfortunately I paid for them to install it, and it does not come with any instructions. You would think that I could ask "them" where I got it from, but unfortunately, they tell me things are working, when infact they are not. So I have had to learn how read, and correct code. At this point, I am just looking at this code, and other than removing the #'s to stop it from just reading those lines, and seeing if it would execute, I have not touched or copied anything. Do you think if I copy and paste the whole code, you could take a look for me? Thanks for your time. :) |
|
#6
| ||||
| ||||
| Ya.. Ill look.. Naval probably will be the one to have to in the end or watdaflip, but ill look. If the number signs are comments, then removing ONE number sign and adding the php instead will probably fix it, but not sure. They should have some comments in there about what to edit etc somewhere. Should also be some supporting docs. Since you paid for this, i wouldnt hesitate two seconds being a pain in the butt and INSISTING they explain to you HOW to do this coding. But thats me. Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#7
| ||||
| ||||
| One other thought.. are you supposed to be manually editing this, or doing it thru whatever builder you chose and selcting it from the admin panel? Rather than figure out the coding, id almost download the file and pop whatever header i wanted in there thru dreamweaver, upload the image and upload the file back to the server, but thats me. Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#8
| ||||
| ||||
| Thanks. My main concern is the last 8 lines of the script. So you can probably skip the rest. Anyway, I have tried to contact the site where I purchased it from, but they are not getting back to me. I had an earlier issue with them about something else not working, and they did not reply to my email. Unfortunately, there is no telephone # for me to call them. Anyway, the issue right now, is getting my banners to work. <html><head><link rel="stylesheet" type="text/css" href="style.css" media="all" title="business directory"/><title><?=$aset[SiteTitle]?></title><meta dcb license 123456789><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="DESCRIPTION" CONTENT="<?=$aset[SiteDescription]?>"><META NAME="KEYWORDS" CONTENT="<?=$aset[SiteKeywords]?>"><script language="JavaScript">function CheckSearch() { if(document.f1.what.value=="") { window.alert('Enter the search criteria, please!'); document.f1.what.focus(); return false; }}function CheckFriend() { if(document.sfriend.f1.value=="") { window.alert('Enter your email address!'); document.sfriend.f1.focus(); return false; } if(document.sfriend.f2.value=="") { window.alert('Enter your friend email address!'); document.sfriend.f2.focus(); return false; }}function CheckLogin() { if(document.lform.us.value=="") { window.alert('Enter your username, please!'); document.lform.us.focus(); return false; } if(document.lform.ps.value=="") { window.alert('Enter your password, please!'); document.lform.ps.focus(); return false; }}function CheckForgot() { if(document.ForgotForm.u2.value=="") { window.alert('Enter your username, please!'); document.ForgotForm.u2.focus(); return false; }}function CheckRegister() { if(document.RegForm.NewUsername.value=="") { window.alert('Enter your username, please!'); document.RegForm.NewUsername.focus(); return false; } if(document.RegForm.p1.value=="") { window.alert('Enter your password, please!'); document.RegForm.p1.focus(); return false; } if(document.RegForm.p2.value=="") { window.alert('Confirm your password, please!'); document.RegForm.p2.focus(); return false; } if(document.RegForm.p1.value != "" && document.RegForm.p2.value != "" && document.RegForm.p1.value != document.RegForm.p2.value) { window.alert('Enter and confirm your password again!'); document.RegForm.p1.value=""; document.RegForm.p2.value=""; document.RegForm.p1.focus(); return false; } if(document.RegForm.CompanyName.value=="") { window.alert('Enter your company name, please!'); document.RegForm.CompanyName.focus(); return false; } if(document.RegForm.CategoryID.value=="") { window.alert('Select your business category, please!'); document.RegForm.CategoryID.focus(); return false; } if(document.RegForm.FirstName.value=="") { window.alert('Enter your First Name, please!'); document.RegForm.FirstName.focus(); return false; } if(document.RegForm.LastName.value=="") { window.alert('Enter your Last Name, please!'); document.RegForm.LastName.focus(); return false; } if(document.RegForm.address.value=="") { alert('Enter your address, please!'); document.RegForm.address.focus(); return false; } if(document.RegForm.city.value=="") { alert('Enter your city, please!'); document.RegForm.city.focus(); return false; } if(document.RegForm.state.value=="") { alert('Enter your state, please!'); document.RegForm.state.focus(); return false; } if(document.RegForm.country.value=="") { alert('Select your country, please!'); document.RegForm.country.focus(); return false; } if(document.RegForm.phone.value=="") { window.alert('Enter your Phone, please!'); document.RegForm.phone.focus(); return false; } if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.RegForm.email.value)) { return true; } alert("Invalid E-mail Address! Please re-enter."); document.RegForm.email.focus(); return false; }function CheckProfile() { if(document.RegForm.p1.value=="") { window.alert('Enter your password, please!'); document.RegForm.p1.focus(); return false; } if(document.RegForm.p2.value=="") { window.alert('Confirm your password, please!'); document.RegForm.p2.focus(); return false; } if(document.RegForm.p1.value != "" && document.RegForm.p2.value != "" && document.RegForm.p1.value != document.RegForm.p2.value) { window.alert('Enter and confirm your password again!'); document.RegForm.p1.value=""; document.RegForm.p2.value=""; document.RegForm.p1.focus(); return false; } if(document.RegForm.FirstName.value=="") { window.alert('Enter your First Name, please!'); document.RegForm.FirstName.focus(); return false; } if(document.RegForm.LastName.value=="") { window.alert('Enter your Last Name, please!'); document.RegForm.LastName.focus(); return false; } if(document.RegForm.address.value=="") { alert('Enter your address, please!'); document.RegForm.address.focus(); return false; } if(document.RegForm.city.value=="") { alert('Enter your city, please!'); document.RegForm.city.focus(); return false; } if(document.RegForm.state.value=="") { alert('Enter your state, please!'); document.RegForm.state.focus(); return false; } if(document.RegForm.country.value=="") { alert('Select your country, please!'); document.RegForm.country.focus(); return false; } if(document.RegForm.phone.value=="") { window.alert('Enter your Phone, please!'); document.RegForm.phone.focus(); return false; } if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.RegForm.email.value)) { return true; } alert("Invalid E-mail Address! Please re-enter."); document.RegForm.email.focus(); return false;}function CheckOffer() { if(document.PostForm.CategoryID.value=="") { alert('Select the category in which your offer will appear!'); document.PostForm.CategoryID.focus(); return false; } if(document.PostForm.year.value=="") { alert('Select the vehicle year, please!'); document.PostForm.year.focus(); return false; } if(document.PostForm.SelectMake.value=="") { alert('Select the vehicle make, please!'); document.PostForm.SelectMake.focus(); return false; } if(document.PostForm.VehicleModel.value=="") { alert('Enter the vehicle model, please!'); document.PostForm.VehicleModel.focus(); return false; } if(document.PostForm.VehicleColor.value=="") { alert('Enter the vehicle color, please!'); document.PostForm.VehicleColor.focus(); return false; } if(document.PostForm.mileage.value=="") { alert('Enter the vehicle mileage, please!'); document.PostForm.mileage.focus(); return false; } if(document.PostForm.DetailedDesc.value=="") { alert('Describe your vehicle in details, please!'); document.PostForm.DetailedDesc.focus(); return false; } if(document.PostForm.Price.value=="") { alert('Enter the price, please!'); document.PostForm.Price.focus(); return false; }}</script></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="758" border="0" align="center" cellpadding="0" cellspacing="0"><tr> <td colspan="2"><img src="images/sp****.gif" width="1" height="35" alt=""></td></tr><tr> <td width="203" valign="bottom" align="center"> <table width="160" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="images/index_05.jpg"><div align="center"><b><font face="Geneva, Arial, Helvetica, san-serif">UFindABiz.com</font></b></div></td> <td><img src="images/sp****.gif" width="1" height="71" alt=""></td> </tr> <td><img src="images/index_07.jpg" width="159" height="50" alt=""></td> <td><img src="images/sp****.gif" width="1" height="50" alt=""></td> </tr> </table> </td> <td width="555" align="right"> <img src="images/index_03.jpg" width="555" height="113" alt=""><br> <a href="index.php"><img src="images/index_09.jpg" alt="" width="100" height="27" border="0"></a><a href="search.php"><img src="images/index_10.jpg" alt="" width="96" height="27" border="0"></a><?=$TopNav?><a href="mailto:info@ufindabiz.com"><img src="images/index_13.jpg" alt="" width="79" height="27" border="0"></a><img src="images/index_14.jpg" width="95" height="27" alt=""> </td></tr><tr> <td valign="top"> <?if ($BottomNav == "login") {?> <form method=post action="login.php" name=lform onsubmit="return CheckLogin();" style="display: inline"> <table width="203" height="114" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td rowspan="4" width="48" height="114"><img src="images/index_15.jpg" width="48" height="114" alt=""></td> <td width="155" height="13"><img src="images/index_16.jpg" width="155" height="13" alt=""></td> </tr> <tr> <td height="37" bgcolor="#252525" valign="middle"> <input name="us" type="text" size="16" style="width: 140px"> </td> </tr> <tr> <td height="38" bgcolor="#252525" valign="middle"> <input name="ps" type="password" size="16" style="width: 140px"> </td> </tr> <tr> <td height="26" background="images/index_21.jpg"><input type="submit" name="s1" value="LOGIN"></td> </tr> </table> </form> <?} else {?> <table width="203" height="114" border="0" align="center" cellpadding="0" cellspacing="0" style="background: url('images/bg_u_m.gif')"> <tr> <td valign=top class=usmenu> <?=$BottomNav?> </td> </tr> </table> <?}?> <img src="images/index_23.jpg" width="203" vspace="5" height="44" alt=""><br> <?=$Categories?> <br> <?=$RandomProperty?> </td> <td valign="top" style="font-family: Arial; font-size: 14px; color: #252525; padding: 5px;"> <center> <? # include_once($BannerPath."/ShowBanner.php?BannerType=120x60"); ?> <? # include_once($BannerPath."/ShowBanner.php?BannerType=468x60"); ?> </center> <br /> Last edited by MoodyMare; 10-06-2007 at 10:55 PM. Reason: Ease of reading |
|
#9
| ||||
| ||||
| Quote:
Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#11
| ||||
| ||||
| No luck :( I think it has something to do with the include_once. I can't find a file with .inc ext. I'll try changing it to require_once and see what happens. |
|
#13
| ||||
| ||||
| What is this nitemare program you are using? Karen
__________________ KMAC Enterprise Granny's Country Nook 10%Off, your code: Forum Discounts Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost ![]() |
|
#14
| ||||
| ||||
| The site is functioning, so i suppose you solved the problem. Probably the path provided wrong ?
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |
|
#15
| ||||
| ||||
| Thanks naval. The site is still not functioning. I just put up a banner manually. I have client banners in my database, and that is what is not working. Would you like me to take the manual banner back off, so you can take a look? Does the highlighted portion of the code make sense? <? # include_once($BannerPath."/ShowBanner.php?BannerType=120x60"); ?> Is the # sign stopping it from reading the code? And do I not need a file with .inc if I am using the include_once command? Thanks, I look forward to your reply, as I have a client waiting to purchase the banner spot.
__________________ www.UFindABiz.com World Wide Web-based Business Directory www.reikiforhorses.ca Balance Your Horse's Energy For Self-Healing www.lucynixon.ca Reiki For Pets and Their People |
|
#16
| ||||
| ||||
| The #'s should be (normally) removed. However, when you do, the code is looking for the $BannerPath" and doesn't find it, probably because you have defined it as absolute URL (http://www. etc) instead of simply providing the folder name. Try doing so.
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Downl |