I am making some more modifications and was wondering if you could tell me whether these will work and if I need to alter anything further.
When viewing a record I want to get rid of some things that i dont need. So I got rid of the following stuff from index.tpl:
The first two are the voting bit and some of the icons with actions. Is there more I have to do to remove those features? Altough I am quite confused by the last item - what is switchLanguage? I dont see anything like that in the middle column when viewing an article. Is this related to the language drop down menu on the left column?--------DELETED----------
<!-- Voting Form -->
<form action="{saveVotingPATH}" method="post" style="display: inline;">
<fieldset>
<legend>{msgVoteUseability}</legend>
<input type="hidden" name="artikel" value="{saveVotingID}" />
<input type="hidden" name="userip" value="{saveVotingIP}" />
<p align="center"><strong>{msgAverageVote}</strong> {printVotings}</p>
<p align="center">{msgVoteBad}
<input class="radio" type="radio" name="vote" value="1" /> 1
<input class="radio" type="radio" name="vote" value="2" /> 2
<input class="radio" type="radio" name="vote" value="3" /> 3
<input class="radio" type="radio" name="vote" value="4" /> 4
<input class="radio" type="radio" name="vote" value="5" /> 5
{msgVoteGood}<br />
<input class="submit" type="submit" name="submit" value="{msgVoteSubmit}" />
</p>
</fieldset>
</form>
<!-- /Voting Form -->
--------DELETED----------
+
--------DELETED----------
<img src="images/email.gif" alt="{writeSend2FriendMsgTag}" title="{writeSend2FriendMsgTag}" width="16" height="16" border="0" /> {writeSend2FriendMsg}<br />
<img src="images/pdf.gif" alt="{writePDFTag}" title="{writePDFTag}" width="16" height="16" border="0" /> {writePDF}<br />
<img src="images/xml.gif" alt="{writeXMLMsgTag}" title="{writeXMLMsgTag}" width="24" height="16" border="0" /> {writeXMLMsg}
--------DELETED----------
+
--------DELETED----------
{switchLanguage}
--------DELETED----------
Also I want to remove the right hand column completely, as well as some other components of the left hand column. Does this mean the following changes to index.tpl?
Is this enough? Should I do something else?-----------------DELETED-------------------
<!-- start right sidebar -->
<div class="rightcolumn sidebar" id="sidebar-right">
<div class="rightpadding">
<div class="content">
<div id="topten">
<h3>{writeTopTenHeader} <a href="feed/topten/rss.php" target="_blank"><img src="images/rss.png" width="28" height="16" alt="RSS" /></a></h3>
{writeTopTenRow}
</div>
</div>
<div class="content">
<div id="latest">
<h3>{writeNewestHeader} <a href="feed/latest/rss.php" target="_blank"><img src="images/rss.png" width="28" height="16" alt="RSS" /></a></h3>
{writeNewestRow}
</div>
</div>
</div>
</div>
<!-- end right sidebar -->
---------------------DELETED----------------
+
--------DELETED---------------------------
<!-- start language selection box -->
<div class="content">
<div id="langform">
<form action="{writeLangAdress}" method="post">
<label for="language">{languageBox}</label>
{switchLanguages}<br />
<input type="submit" name="submit" value="Go" class="submit" />
</form>
</div>
</div>
<!-- end -->
----------DELETED----------------
+
----------DELETED----------------
<!-- start language selection box -->
<div class="content">
<div id="langform">
<form action="{writeLangAdress}" method="post">
<label for="language">{languageBox}</label>
{switchLanguages}<br />
<input type="submit" name="submit" value="Go" class="submit" />
</form>
</div>
</div>
<!-- end -->
<div class="content">
<div id="useronline">
{userOnline}
</div>
</div>
---------DELETED------------------
Another thing that I want to change is the first page someone sees so that instead of the news there is a list of Recent 15 entries. These are the steps that I plan to take
########################################################
template/main.tpl
#######################################################
---------DELETED-----------------
<!-- begin news -->
<div id="news">
<h2>{writeNewsHeader} <a href="feed/news/rss.php" target="_blank"><img src="images/rss.png" width="28" height="16" alt="RSS" /></a></h2>
{writeNews}
<p align="center">{writeNumberOfArticles}</p>
</div>
<!-- end news -->
---------DELETED-----------------
+
-------------ADDED-----------------------------------
<!-- begin Recent -->
<div class="content">
<div id="latest">
<h3>{writeNewestHeader}</h3>
{writeNewestRow}
</div>
</div>
<!-- end Recent -->
<br />
<br />
<p align="center">{writeNumberOfArticles}</p>
--------------ADDED----------------------------------
########################################################
inc/constants.php
#######################################################
---------CHANGED---------------------
/**
* Number of records for the latest entries
*
* @var const 5
*/
define('PMF_NUMBER_RECORDS_LATEST', 5);
TO
/**
* Number of records for the latest entries
*
* @var const 15
*/
define('PMF_NUMBER_RECORDS_LATEST', 15);
-------------CHANGED-----------------
Again, is this sufficient?