Jump to content

mzuhair

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mzuhair's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I was trying to use frontpage to eidt the template I think thats what caused the error. I don't know any thing about codes. Can someone please fix this template? Thanks
  2. I was trying to edit my template.php file and I think I have done some thing stupid. If I type in my url http://www.PregnancyBay.com I am getting this error message: Parse error: syntax error, unexpected '?' in /home/isawy0/public_html/pregnancybay/template/template.php on line 83 Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title><?=$sitetitle?></title> <style type="text/css"> @import "<?=$imgfpath?>css/common.css"; </style> <meta name="description" content="<?=$basemetadesc?>" /> <meta name="abstract" content="<?=$basemetakeywd?>" /> <meta name="keywords" content="<?=$basemetakeywd?>" /> <meta name="copyright" content="<?=$sitecopyright?>" /> <meta name="author" content="<?=$sitedomname?>" /> <meta name="classification" content="<?=$basekeywd?>" /> <meta name="language" content="en-us" /> <meta name="distribution" content="GLOBAL" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="robots" content="All, index,follow" /> <link href="<?=$imgfpath?>font.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script language="javascript" src="<?=$imgfpath?>popin.js"></script> <script language="javascript" src="<?=$imgfpath?>popin_launch.js"></script> <? $sqlfeatured=mysql_query("select displayadd from eweb_webinfo")or die(mysql_error()); if(mysql_num_rows($sqlfeatured)>0){ $featuredstatus=mysql_result($sqlfeatured,0); $fval=explode("#",$featuredstatus); } $affltequr=mysql_query("select addoption from eweb_affiliate where aid > 0")or die(mysql_error()); if(mysql_num_rows($affltequr)>0) $optforgog=mysql_result($affltequr,0,0); include ($imgfpath."includes/templates.inc.php"); echo showpopin($imgfpath); ?> </head> <body> <div id="root"> <div class="wrpr"> <div id="header"> <h1><?if($h1tagtit!=""){echo $h1tagtit;}else if(file_exists("includes/config.php")){ echo $KEYWORDS[0]." Articles & Information | ".$KEYWORDS[1]." | ".$KEYWORDS[2];} else { echo "KEYWORD Articles & Information | Keyword | Keyword";}?></h1> <a href="<?=$imgfpath?>sitemap.html" title="Sitemap" class="float_r"> -Sitemap</a> <img src="<?=$imgfpath?>http://www.warriorforum.com/images/logo.jpg" alt="<?=WEBTOPIC." Articles & Information Logo";?>" id="logo"?>" id="logo"?>" id="logo" /> <? if($optforgog==1){ $selgtop=mysql_query("select status,content from eweb_ads where id = 1")or die(mysql_error()); if(mysql_num_rows($selgtop)>0){ $gtop=mysql_result($selgtop,0,0); $googcont=mysql_result($selgtop,0,1); if($gtop==1){?> <div id="google_top"> <?=stripslashes($googcont);?> </div> <?}}}?> </div> <div class="cc"> <!-- // --> </div> <div id="main"> <div class="wrpr"> <div id="content"> <?include $flname;?> <?include $imgfpath."includes/randomarticles.php";?> <?include $imgfpath."includes/newsfeed.php";?> </div> </div> <div id="rightbar"> <? if($optforgog==1){ $selgside=mysql_query("select status,content from eweb_ads where id=4")or die(mysql_error()); if(mysql_num_rows($selgside)>0) $gside=mysql_result($selgside,0,0); $gcon=mysql_result($selgside,0,1); if($gside=1){?> <div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;"> <?=stripslashes($gcon); //include $imgfpath."includes/googleside.php";?> </div> <?}}else if($optforgog==2){ $selyside=mysql_query("select status,content from eweb_ads where id=6")or die(mysql_error()); if(mysql_num_rows($selyside)>0) $yside=mysql_result($selyside,0,0); $ycont=mysql_result($selyside,0,1); if($yside==1){?> <div id="google_rightbar" style="text-align: center; margin: 0 -5px 0 0;"> <? echo stripslashes($ycont); //include $imgfpath."includes/ypnside.php";?> </div> <?}}?> <br /> <?if($fval[1]=='1'){include $imgfpath."includes/friends.php";}?> <?$selebay=mysql_query("select status from eweb_ads where id=8")or die(mysql_error()); if(mysql_num_rows($selebay)>0) $ebstat=mysql_result($selebay,0); if($ebstat==1){?> <br /><div style="text-align: center; margin: 0 -7px 0 0;"> <?include $imgfpath."includes/amazonside.php";?> </div> <?}?> </div> </div> <div id="sidebar"> <? $sqlnews=mysql_query("select status,header_name,content from eweb_newsletter")or die(mysql_error()); if(mysql_num_rows($sqlnews)>0){ $newsstatus=mysql_result($sqlnews,0,0); $name_header=mysql_result($sqlnews,0,1); $cont=mysql_result($sqlnews,0,2); ?> <?if($newsstatus=='Y'){?> <div class="box"> <div class="box_header"> <h4><?=stripslashes($name_header)?></h4> </div> <?=stripslashes($cont);?> </div> <?}?> <?}?> <?include $imgfpath."includes/newarticleside.php";?> <?include $imgfpath."includes/navigation.php";?> <?include $imgfpath."includes/articlecategory.php";?> <?$soption=mysql_query("select ser_option from eweb_searchphrase where ser_id=1")or die (mysql_error()); if(mysql_num_rows($soption)>0) $svalue=mysql_result($soption,0); if($svalue=='Y'){?> <?include $imgfpath."includes/directorylist.php";?> <?}?> <?if($fval[3]=='3'){include $imgfpath."includes/featuredwebsite.php";}?> <?include $imgfpath."includes/facts.php";?><br /> <div id="rightxml"> <?$xmlart=mysql_num_rows(mysql_query("select * from eweb_articles")); if($xmlart>0){ include $imgfpath."readxml.php";?> <a href="<?=$imgfpath?>article.xml"><img src="<?=$imgfpath?>http://www.warriorforum.com/images/XML.gif" alt="XML Article Feed." width="36" height="14" vspace="2" border="0" /></a><br /> <a href="http://fusion.google.com/add?feedurl=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/add.gif" alt="Add XML to Google." width="104" height="17" border="0" /></a> <br /> <a href="http://add.my.yahoo.com/rss?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/addtomyyahoo4.gif" alt="Add XML to Yahoo." width="91" height="17" border="0" /></a> <br /> <a href="http://my.msn.com/addtomymsn.armx?id=rss&ut=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/addtomymsn.gif" alt="Add XML to MSN." width="91" height="17" border="0" /></a> <br /> <a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?="http://www."._DOMAIN_NAME_."/"?>article.xml"?>article.xml"?>article.xml"><i mg src="<?=$imgfpath?>http://www.warriorforum.com/images/ngsub2.gif" alt="Add XML to NewsGator." width="91" height="17" border="0" /></a> <br /> <?}?> </div> </div> <div class="cc"> <!-- // --> </div> <div id="footer"> <p class="float_l">Copyright www. <?=_DOMAIN_NAME_?> © <?=date("Y")?> - <a href="<?=$imgfpath?>privacy.html">(Read the Website TOS</a>)</p> </div> </div> </div> </body> </html> How do I count the lines because different editor shows different line numbers? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.