Page 1 of 1

index.php page wont appear

Posted: Tue Aug 21, 2007 12:27 pm
by steve8675537

http://totaledgepoker.com/index.php


my index page wont appear, all i i was doing was editing the index_body.tpl page so i could have some custom links, i made the edits in note pad, i've reversed all the edits now though using the undo button and reuploaded the file but the forum wont appear?

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 12:51 pm
by ric323
Your file is here
http://totaledgepoker.com/templates/fia ... x_body.tpl

Something has stripped all the line breaks out of this file, which has disrupted the operation of all the switches. Start again with a clean copy.

(I don't mean that CRLF has been converted to LF, i.e. DOS -> UNIX. I mean there are no CR or LF characters in there at all!)

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 12:51 pm
by stevemaury
Did you backup index_body.tpl before you edited it? If so, restore the backup. If not, upload a fresh copy of the file.

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 1:02 pm
by steve8675537
I didn't have a backup (i'll never not backup again!) because i've made these little custom edit links before and i really wan't expecting a mistake on something so simple, i did however click the undo button several times in notepad until it went back to original, i then saved it and uploaded it but it didn't make any different.

Here is the index_body.tpl file , i really dont want to upload a fresh copy because there are mods which are using this file. I hired a very good guy to install these mods, so i'm not overly experienced. What should i do?

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> 	<td colspan="2" class="maintitle">{L_INDEX}</td> 	</tr> <tr> <td valign="bottom" class="gensmall"> <!-- BEGIN switch_user_logged_in --> {LAST_VISIT_DATE}<br /> <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></td> <td align="right" valign="bottom" class="gensmall"> <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br /> <!-- BEGIN switch_user_logged_in --> <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br /> <a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</a><br /> ------------------- <a href="/profile.php?mode=editprofile"><br /><strong>Edit Profile</strong></a>|<a href="{U_PRIVATEMSGS}"><strong> Private Messages - {PRIVATE_MESSAGE_INFO}</a></td>    <!-- END switch_user_logged_in --> </td> </tr> </table> <!-- BEGIN switch_enable_global_marquee -->  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">    <tr>       <th>{GLOBAL_TITLE}</th>    </tr>    <tr>       <td class="row1" align="left" height="40" valign="middle"><div align="center"class="dmarquee"><div><div><span class="genmed">&nbsp;<b>{GLOBAL_ANNOUNCEMENT}</b>&nbsp;</span></div></div></div></td>    </tr>  </table>   <br>  <!-- END switch_enable_global_marquee -->   <!-- BEGIN switch_disable_global_marquee -->  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">    <tr>       <th>{GLOBAL_TITLE}</th>    </tr>    <tr>       <td class="row1" align="left" height="40" valign="middle"><div align="center"><span class="genmed">&nbsp;<b>{GLOBAL_ANNOUNCEMENT}</b>&nbsp;</span></div></td>    </tr>  </table>   <br>  <!-- END switch_disable_global_marquee -->   <table border="0" cellpadding="0" cellspacing="0" class="ttb"> 	<tr> 		<td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td> 		<td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> 		<td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td> 	</tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th colspan="2">{L_FORUM}</th> <th>{L_TOPICS}</th> <th>{L_POSTS}</th> <th>{L_LASTPOST}</th> </tr> <!-- BEGIN catrow --> <tr> <td class="cat" colspan="5"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a><img src="images/spacer.gif" alt="" width="280" height="12" /></td> </tr> <!-- BEGIN forumrow --> <tr> <td class="row1" height="45"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> <td class="row1" width="100%"><a href="{catrow.forumrow.U_VIEWFORUM}" class="nav">{catrow.forumrow.FORUM_NAME}</a><br /> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td> <td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> </tr> <!-- END forumrow --> <!-- END catrow --> </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> 	<tr> 		<td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td> 		<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> 		<td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td> 	</tr> </table> <br /> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> <tr>  <td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td> <td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> <td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <td class="cat" colspan="2"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td> </tr> <tr> <td class="row1" rowspan="4"><img src="templates/fiappleblue/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" width="40" height="30" title="{L_WHO_IS_ONLINE}" /> </td> <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br /> {TOTAL_USERS}<br /> {NEWEST_USER}</span></td> </tr> <!-- Start add - Last visit MOD --> <tr>  	<td class="row1" align="left"><span class="gensmall">{L_USERS_TODAY}&nbsp;{L_USERS_LASTHOUR}<br />{USERS_TODAY_LIST}</br></span></td>     </tr>  <!-- Start add - Last visit MOD --> <tr> <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>  ] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br /> {RECORD_USERS}<br /> {LOGGED_IN_USER_LIST}</span></td> </tr> <tr> <td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> 	<tr> 		<td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td> 		<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> 		<td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td> 	</tr> </table> <!-- BEGIN switch_user_logged_out --> <br /> <form method="post" action="{S_LOGIN_ACTION}"> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> <tr>  <td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td> <td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> <td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td class="cat">{L_LOGIN_LOGOUT}</td> </tr> <tr> <td class="row1" align="center"> <table border="0" cellspacing="0" cellpadding="2"> <tr>  <td class="gensmall">{L_USERNAME}:&nbsp;</td> <td><input class="post" type="text" name="username" size="10" /></td> <td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td> <td><input class="post" type="password" name="password" size="10" maxlength="32" /></td> <td class="gensmall">&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN}</td> <td><input class="text" type="checkbox" name="autologin" /></td> <td>&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td> </tr> </table></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> 	<tr> 		<td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td> 		<td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> 		<td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td> 	</tr> </table> </form> <!-- END switch_user_logged_out --> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td> </tr> </table> <br /> <table border="0" align="center" cellpadding="0" cellspacing="3"> <tr> <td><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td> <td class="gensmall">{L_NEW_POSTS}</td> <td>&nbsp;</td> <td><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td> <td class="gensmall">{L_NO_NEW_POSTS}</td> <td>&nbsp;</td> <td><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" title="{L_FORUM_LOCKED}" /></td> <td class="gensmall">{L_FORUM_LOCKED}</td> </tr> </table>

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 1:11 pm
by stevemaury
The Undo button in Notepad only reverts the last change you made. So if you type something, then undo, it deletes it and if you hit undo again it redoes it.

Is it possible that the person that did the MODS on that file has a backup? I know if I had done it, I would.

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 1:51 pm
by steve8675537
thanks for the responces, i dont know what i did, i'll see if the guy who helped me with the site can help out again.

TY

p.s by the way it was wordpad it opened in not notepad, maybe wordpad messed iut up ?

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 2:11 pm
by ric323
This is a long shot, but try this version:
(all I have done is insert line breaks where the switches are)

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr>    <td colspan="2" class="maintitle">{L_INDEX}</td>    </tr> <tr> <td valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
 {LAST_VISIT_DATE}<br /> 
<!-- END switch_user_logged_in -->
 {CURRENT_TIME}<br /> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></td> <td align="right" valign="bottom" class="gensmall"> <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br /> 
<!-- BEGIN switch_user_logged_in -->
 <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br /> <a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</a><br /> ------------------- <a href="/profile.php?mode=editprofile"><br /><strong>Edit Profile</strong></a>|<a href="{U_PRIVATEMSGS}"><strong> Private Messages - {PRIVATE_MESSAGE_INFO}</a></td>    
<!-- END switch_user_logged_in -->
 </td> </tr> </table> 
<!-- BEGIN switch_enable_global_marquee -->
  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">    <tr>       <th>{GLOBAL_TITLE}</th>    </tr>    <tr>       <td class="row1" align="left" height="40" valign="middle"><div align="center"class="dmarquee"><div><div><span class="genmed">&nbsp;<b>{GLOBAL_ANNOUNCEMENT}</b>&nbsp;</span></div></div></div></td>    </tr>  </table>   <br>  
<!-- END switch_enable_global_marquee -->
   
<!-- BEGIN switch_disable_global_marquee -->
  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">    <tr>       <th>{GLOBAL_TITLE}</th>    </tr>    <tr>       <td class="row1" align="left" height="40" valign="middle"><div align="center"><span class="genmed">&nbsp;<b>{GLOBAL_ANNOUNCEMENT}</b>&nbsp;</span></div></td>    </tr>  </table>   <br>  
<!-- END switch_disable_global_marquee -->
   <table border="0" cellpadding="0" cellspacing="0" class="ttb">    <tr>       <td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td>       <td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>       <td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td>    </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th colspan="2">{L_FORUM}</th> <th>{L_TOPICS}</th> <th>{L_POSTS}</th> <th>{L_LASTPOST}</th> </tr> 
<!-- BEGIN catrow -->
 <tr> <td class="cat" colspan="5"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a><img src="images/spacer.gif" alt="" width="280" height="12" /></td> </tr> 
<!-- BEGIN forumrow -->
 <tr> <td class="row1" height="45"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> <td class="row1" width="100%"><a href="{catrow.forumrow.U_VIEWFORUM}" class="nav">{catrow.forumrow.FORUM_NAME}</a><br /> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td> <td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> </tr> 
<!-- END forumrow -->
 
<!-- END catrow -->
 </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb">    <tr>       <td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td>       <td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>       <td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td>    </tr> </table> <br /> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> <tr>  <td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td> <td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> <td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <td class="cat" colspan="2"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td> </tr> <tr> <td class="row1" rowspan="4"><img src="templates/fiappleblue/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" width="40" height="30" title="{L_WHO_IS_ONLINE}" /> </td> <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br /> {TOTAL_USERS}<br /> {NEWEST_USER}</span></td> </tr> 
<!-- Start add - Last visit MOD -->
 <tr>     <td class="row1" align="left"><span class="gensmall">{L_USERS_TODAY}&nbsp;{L_USERS_LASTHOUR}<br />{USERS_TODAY_LIST}</br></span></td>     </tr>  
<!-- Start add - Last visit MOD -->
 <tr> <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>  ] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br /> {RECORD_USERS}<br /> {LOGGED_IN_USER_LIST}</span></td> </tr> <tr> <td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb">    <tr>       <td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td>       <td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>       <td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td>    </tr> </table> 
<!-- BEGIN switch_user_logged_out -->
 <br /> <form method="post" action="{S_LOGIN_ACTION}"> <table border="0" cellpadding="0" cellspacing="0" class="ttb"> <tr>  <td><img src="templates/fiappleblue/images/tt12_l.gif" width="10" height="12" alt="" /></td> <td class="tt12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td> <td><img src="templates/fiappleblue/images/tt12_r.gif" width="10" height="12" alt="" /></td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td class="cat">{L_LOGIN_LOGOUT}</td> </tr> <tr> <td class="row1" align="center"> <table border="0" cellspacing="0" cellpadding="2"> <tr>  <td class="gensmall">{L_USERNAME}:&nbsp;</td> <td><input class="post" type="text" name="username" size="10" /></td> <td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td> <td><input class="post" type="password" name="password" size="10" maxlength="32" /></td> <td class="gensmall">&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN}</td> <td><input class="text" type="checkbox" name="autologin" /></td> <td>&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td> </tr> </table></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" class="ttb">    <tr>       <td><img src="templates/fiappleblue/images/tb12_l.gif" width="10" height="12" alt="" /></td>       <td class="tb12bkg"><img src="images/spacer.gif" width="200" height="12" alt="" /></td>       <td><img src="templates/fiappleblue/images/tb12_r.gif" width="10" height="12" alt="" /></td>    </tr> </table> </form> 
<!-- END switch_user_logged_out -->
 <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td> </tr> </table> <br /> <table border="0" align="center" cellpadding="0" cellspacing="3"> <tr> <td><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td> <td class="gensmall">{L_NEW_POSTS}</td> <td>&nbsp;</td> <td><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td> <td class="gensmall">{L_NO_NEW_POSTS}</td> <td>&nbsp;</td> <td><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" title="{L_FORUM_LOCKED}" /></td> <td class="gensmall">{L_FORUM_LOCKED}</td> </tr> </table>

Re: index.php page wont appear

Posted: Tue Aug 21, 2007 2:23 pm
by steve8675537
it looks like your long shot has curled right into the top corner!!!!

unless i'm missing something its worked, thanks alot for doing that copy :)

Re: index.php page wont appear

Posted: Thu Aug 23, 2007 2:22 pm
by volvomad
When you upload, make sure your ftp client is set to ASCII format.

Re: index.php page wont appear

Posted: Thu Aug 23, 2007 3:48 pm
by steve8675537
oh right is that what went wrong, cheers