Hello all, been using phpld for almost a year now without any problems, this morning, when I try to enter my phpld homepage at my root url, it doesn't show anything, tried to access the site through the submit.php page or any other static page and alas, it works, from there, I can see top links, latest links, and everything else. Then tried to use the default template from the admin (admin module works also), and also worked, so I'm guessing it has something to do with the main.tpl of the template i'm using. If someone could lend me a hand in resolving this issue I would greatly appreciate it. The base url is www [dot] gmapsdirectory [dot] com Thx in advance, AL
if you have your original copy of main.tpl . rename exist file and upload it again . ( do not overwrite )
Thx for your reply, tried renaming main.tpl, and then uploading the working main.tpl (tweaked by me for logo and presentation purposes) and didn't work. EDIT: Tried also uploading main.tpl from the original template package downloaded, and didn't work either... now I'm just lost in what could be wrong.
did you edit header.tpl or any file included in top of main.tpl . because you upload this file .. it should a problem in files that included on top of main.tpl like header.tpl or file like this . can you past source of header and main.tpl ?
Put these 2 lines on top of your main page. error_reporting(E_ALL); ini_set('display_errors', '1'); PHP: And see if you get any errors.
sure, but before i do that, let me tell you that if you try to enter the site through the submit page, that would be: www [dot] gmapsdirectory [dot] com [slash] submit [dot] php you can see the header, so I don't think that the header.tpl or topbar.tpl could have something to do with it, but anyways, i'll post the source codes cause you could see something i'm not seeing. CODE FOR MAIN.TPL {* Calculate title from path *} {capture name="title"} {if count($path) > 1} - {/if} {foreach from=$path item=category name=path} {if $smarty.foreach.path.iteration gt 2} > {/if} {if not $smarty.foreach.path.first} {$category.TITLE} {/if} {/foreach} {/capture} {strip} {if $title_prefix} {assign var="in_page_title" value=$title_prefix|cat:$category.TITLE} {else} {assign var="in_page_title" value=$category.TITLE} {/if} {assign var="description" value=$category.DESCRIPTION} {include file="header.tpl"} {include file="top_bar.tpl"} <link rel="shortcut icon" href="favicon.ico" > <table width="770" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="70%" valign="top"> {* Calculate the number of categories per row *} {php} $this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / CATS_PER_ROW)); {/php} {if $cats_per_col > 15} {php} $this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / (CATS_PER_ROW + 1))); {/php} {/if} {* Show category search results *} {if $search_category} {$search_category} {/if} {if isset($have_search_results) and $have_search_results == 0} <div class="navmenu"> <p>{l}Sorry, no records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"</p> <p>{l}Suggestions{/l}:</p> <p> <ul> <li>{l}Make sure all words are spelled correctly{/l}.</li> <li>{l}Try different keywords{/l}.</li> <li>{l}Try more general keywords{/l}.</li> </ul> </p> </div> {/if} {* Categories *} {if !empty($categs)} {if !empty($category.ID)} <table width="98%" border="0" class="border2"> <tr> <td class="bar"> {l}Categories{/l} </td> </tr> </table> {/if} {* Categories *} <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> {foreach from=$categs item=cat name=categs} {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td valign="top">{/if} {* Start Categories Modifications By Vegabond *} <table width="100%" border="0" cellspacing="4" cellpadding="0"> <td><div class="cat"><a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escape}/{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE|escape}</a>{if $smarty.const.CATS_COUNT} <font size="1">({$cat.COUNT})</font>{/if}</div></td> </tr> </table> {* Display subcategories *} {if !empty($cat.SUBCATS)} <table width="100%" border="0" cellspacing="4" cellpadding="0"> <tr> <td><div class="subcat"> {foreach from=$cat.SUBCATS item=scat name=scategs} <a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escape}/{$scat.TITLE_URL|escape}/{else}index.php?c={$scat.ID}{/if}"> {$scat.TITLE|escape}</a>, {/foreach} ... </div> </td> </tr> </table> {/if} {* End Categories Modifications By Vegabond *} {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if} {/foreach} </tr></table><div class="break"></div> {/if} {if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)} <div class="break"></div> <table width="98%" border="0" class="border2"> <tr> <td class="bar"> {l}Featured links{/l} </td> </tr> </table> <table width="98%" border="0" cellspacing="0" cellpadding="5"> <tr> <td> {foreach from=$feat_links item=link name=links} <div class="f_link">{include file="link.tpl" link=$link}</div> {/foreach} </td> </tr> </table> <div class="break"></div> {/if} {if $category.ID gt 0 or $search} {if count($links) gt 0} {include file="googlead.tpl"} {/if} {/if} {* Links heading and sorting*} {if ($uid || $search || !empty($category.ID) || $list) && !empty($links)} <table width="98%" border="0" class="border2"> <tr> <td class="bar"> {l}Regular Links{/l}{if not $list}<span class="small" style="margin-left:250px;">{l}Sort by{/l}: {if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'}<span class="sort"> {l}PageRank{/l}</span>{else}<a href="?s=P{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $search}&search={$search}{/if}{if $uid}&uid={$uid}{/if}"> {l}PageRank{/l}</a>{/if} |{/if} {if $sort eq 'H'} <span class="sort">{l}Hits{/l}</span>{else} <a href="?s=H{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $search}&search={$search}{/if}{if $uid}&uid={$uid}{/if}">{l}Hits{/l}</a>{/if} {if $sort eq 'A'} | <span class="sort">{l}Alphabetical{/l}</span>{else} | <a href="?s=A{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $search}&search={$search}{/if}{if $uid}&uid={$uid}{/if}">{l}Alphabetical{/l}</a>{/if} </span>{/if} </td> </tr> </table> <table width="98%" border="0" cellspacing="0" cellpadding="5"> <tr> <td> {foreach from=$links item=link name=links} <div class="r_link">{include file="link.tpl" link=$link}</div> {/foreach} </td> </tr> </table> {/if} {if $category.ID==0 and count($categs) gt 0} <table width="98%" border="0" class="border"> <tr> <td class="bar">Featured Google Maps Mashups</td> </tr> </table> <table width="98%" border="0" cellspacing="4" cellpadding="3" class="box_border"> <tr><td> <table><tr> <td width="115" class="subcat"><div align="center"><a href="http://www.mychurch.org" target="_blank"> <img class="thumbnail" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r=http://www.mychurch.org" align=absmiddle width=101 height=74 title="MyChurch.org" /><br> MyChurch</a></div></td> <td width="115" class="subcat"><div align="center"><a href="mailto:editor@gmapsdirectory.com"> <img class="thumbnail" src="templates/StoneFlash/images/featured.jpg" align=absmiddle width=101 height=74 title="Feature your Mashup for only $15 per month" /><br>Available</a></div></td> <td width="115" class="subcat"><div align="center"><a href="mailto:editor@gmapsdirectory.com"> <img class="thumbnail" src="templates/StoneFlash/images/featured.jpg" align=absmiddle width=101 height=74 title="Feature your Mashup for only $15 per month" /><br>Available</a></div></td> <td width="115" class="subcat"><div align="center"><a href="mailto:editor@gmapsdirectory.com"> <img class="thumbnail" src="templates/StoneFlash/images/featured.jpg" align=absmiddle width=101 height=74 title="Feature your Mashup for only $15 per month" /><br>Available</a></div></td> </tr> </table> </td></tr> <tr><td align="center"><h2>Feature your mashup for only $15 per month<br>Send email to: <a href="mailto:editor@gmapsdirectory.com">editor@gmapsdirectory.com<a></h2></td></tr></table> <br /> {/if} </td> <td width="230" valign="top"> {include file="right.tpl"} </td> </tr> </table> {* Javascript for tracking link clicks *} {if $StopLinkHits eq 0} <script language="javascript" type="text/javascript"> /* <![CDATA[ */ var root = '{$smarty.const.DOC_ROOT}'; {literal} var a = document.getElementsByTagName("a"); for(i = 0; i< a.length; i++) if(a[i].id != '') a[i].onclick = count_link; function count_link() { i = new Image(); i.src= root+'/cl.php?id='+this.id; return true; } {/literal} /* ]]> */ </script> {/if} {include file="footer.tpl"} {/strip} Code (markup): CODE FOR HEADER.TPL <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> {* Prototype library - all comming JavaScripts are based on this *} <script type="text/javascript" language="javascript" src="{$smarty.const.DOC_ROOT}/javascripts/prototype/prototype.js"></script> {* Scriptaculous - Incredible effects and controls library built on Prototype *} <script type="text/javascript" language="javascript" src="{$smarty.const.DOC_ROOT}/javascripts/scriptaculous/scriptaculous.js"></script> {* Category selection library *} <script type="text/javascript" language="javascript" src="{$smarty.const.DOC_ROOT}/javascripts/categ_selection.js"></script> {* Document/Browser title *} <title>{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if}{$smarty.capture.title|strip|trim}</title> {* Document character set *} <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> {* CSS Style file *} <link rel="stylesheet" type="text/css" href="{$smarty.const.FULL_TEMPLATE_PATH}/style/style.css" /> {* Custom META tags *} {if $smarty.const.ENABLE_META_TAGS} {if !empty($MetaKeywords)} <meta http-equiv="keywords" content="{$MetaKeywords|strip|escape|trim}" /> {/if} {if !empty($MetaDescription)} <meta name="description" content="{$MetaDescription|strip|escape|trim}" /> {/if} {if !empty($MetaAuthor)} <meta name="author" content="{$MetaAuthor|strip|escape|trim}" /> {/if} {if !empty($MetaCopyright)} <meta name="copyright" content="{$MetaCopyright|strip|escape|trim}" /> {/if} {if !empty($MetaRobots)} <meta name="robots" content="{$MetaRobots|strip|escape|trim}" /> {/if} {/if} {* Please keep this line for better version tracking *} <meta name="generator" content="PHP Link Directory {$smarty.const.CURRENT_VERSION}" /> {* Live Bookmarks *} {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID gt 0 or $list) and count($links) gt 0} <link rel="alternate" type="application/rss+xml" title="{$in_page_title|escape|trim}" href="{$smarty.const.SITE_URL}rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $p}p={$p}{elseif $list}list={$list}{else}c={$category.ID}{/if}" /> {/if} {* JavaScript libraries *} {* SmartyFormtool for manipulating forms with JavaScript *} {formtool_init src="javascripts/formtool/formtool.js"} {* OverLIB library for popups and tooltips *} <script type="text/javascript" language="javascript" src="javascripts/overlib/overlib.js"></script> </head> <body> {* This is important for the OverLIB library! *} <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> {* Error and confirmation messages *} {include file="../$core_templates/messages.tpl"} <table width="770" border="0" align="center"> <tr> <td><img src="templates/StoneFlash/images/logo.jpg" alt="Google Maps Directory" height="154" width="770"></td> </tr> </table> Code (markup):
Try upload the index.php I think that may be your problem as all other pages work.I looked at you index code and there is none! If you had a problem with your tpl files you would get smarty errors and you have none just a blank page If you have a backup that works after you have uploaded the index.php and still same upload the backup. If you require any help pm me and let me know what template your using and i will fix for you no charge i like to help. Hope this helps
I'm also having almost the same problem. I intend to do minor modification on the header, need to add a short text. so after openning the header.tpl, and save. only my header text appear at the top. the rest of the page is missing. I tried installing the old header.tpl, nothing happen. any possibilities ??? thanks
To my surprice the submit page still intact, normal. All I can remember, I only open the header.tpl and that it.