Default code needed

Asked by sudeepghosh

I need the default Template code. My web designer set this up for me. I logged in and tried to look at the template code and saved it without edits and everything was gone. Now I get this error:

Blank.
For some reason, there was no output in the shownews.php file. Either (a) no articles are active, or (b) the template that is being used is empty.

I need the default code that needs to be put in.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
phpns Edit question
Assignee:
No assignee Edit question
Solved by:
alecwh
Solved:
Last query:
Last reply:
Revision history for this message
Best alecwh (alecwh) said :
#1

main article template (minus {reddit} and {digg}):

<div style="margin-bottom: 30px; min-height: 130px;">
 <h2 style="margin-bottom: 0pt"><a href="{article_href}" style="text-decoration: none;">{title}</a></h2>
 <h3><em>{sub_title}</em></h3>
 <h4 style="margin: 0 0 0 3em; font-weight: normal;">Posted by <a href="#">{author}</a> on {date}</h4>
 <span style="float: right"><a href="{image_location}">{image}</a></span>
<div style="float:right; padding: 0 0 10px 10px"></div>
 {main_article}
 {extended_article}
 <div id="comments" style="text-align: right; clear: both;">
  <strong><a href="{article_href}#comments">{comment_count} comments</a></strong>
 </div>
</div>

--
comment template:

<div style="background: #eee; margin: 20px 0 0 5%; padding: 5px;">
 <div style="border: 1px solid #ccc; padding: 3px; background: #ccc; margin-bo
ttom: 5px;">
  <div style="text-align: right; float: right"> {timestamp} {admin}</div>
  <strong>Posted by <a href="{website}">{author}</a></strong> as {ip}
 </div>
 {comment}
</div>

--
comment form template:

<form style="margin-top: 50px;" action="{action}" method="post">
 <input type="text" name="name" id="name" /> <label for="name">Name (required)</label><br />
 <input type="text" name="email" id="email" /> <label for="email">Email (not publishe
d) (required)</label><br />
 <input type="text" name="website" id="website" /> <label for="website">Website</label><br />
 <textarea name="comment" style="width:100%; height: 150px"></textarea><br />
 <input type="text" name="captcha" style="width: 100px" /> <label for="captcha"><strong>What is {captcha_question}?</strong></label><br />
 {hidden_data}
 {captcha_answer}
 <input type="submit" value="Submit comment" id="submit" />
</form>

--
article pagination template:

<a style="padding: 3px; margin: 10px; border: 1px solid #888;" href="{previous_page}">Previous Page</a> {middle_pages} <a style="padding: 3px; margin: 10px; border: 1px solid #888;" href="{next_page}">Next Page</a>

Revision history for this message
sudeepghosh (ghosh-sudeep) said :
#2

Thanks alecwh, that solved my question.