|
Text
|
 |
|
 |
|
| Author |
Message |
Symon
Guide Legend



Joined: 11 Jun 2006
Posts: 909
Location: Hampshire,England

Add Comment
Show Comments
|
Posted: Thu Mar 08, 2007 11:17 am |
 |
|
Please remember to use the Editor account before making any template changes
Second you must have all ready a template you can edit.
If you have not done this please read HOWTODOIT
Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings
You will now see a screen that looks like this
If you do not already see a portal named CATEGORIES then (if you do then IGNORE Steps 1- 5)
1.Click on the Blank box icon that looks like this
Now you see a screen like this
2.Add COMMENT to the name
3.And then what you want in the Title.
4. Click Create New Portal
5. Now goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit
Now look at the bottom in the area marked Choose Portal template File to Edit use the drop down bar and find
cms_comment.tpl
And add the following code
| Code: | <!--BEGIN switch_comment_title -->
<h2> {COMMENT_TITLE} - {USERNAME}</h2>
<!--END switch_comment_title -->
<table width="500" cellpadding="2" cellspacing="1" border="1" class="forumline" align="center">
<tr>
<th class="thTop">Author</th><th class="thTop">Comment</th>
</tr>
<!-- BEGIN comment -->
<tr>
<td class="row1" ><span class="topictitle"> {comment.USERNAME}</span></td>
<td class="row1" ><span class="topictitle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><span class="postdetails">{L_POSTED}: {comment.DATE}</span></td>
<td valign="top" nowrap="nowrap">{comment.DELETE_IMG} </td>
</tr>
<td width="100%" colspan="2">{comment.COMMENT}</td>
</table>
</td>
</tr>
</tr>
<!-- END comment -->
</table> |
6.You Can Change The bit below in bold in admin panel --- 3. Styles --- Portal Settings --- COMMENT
| Code: | [COMMENT]
component=COMMENT
self=1;
deleteothers=0;
title =View Comments
allow=1 |
You can change the permissions to suit your forum by using the guide below
self - 1- you can comment on yourself 0-no self commenting
deleteothers 0-you cannot delete comments about yourself 1 - you can delete comments about yourself
allow - who can comment 0-registered 1-MODS 2-ADMINS
Now submit and goto your forum and goto
Admin Panel --- Styles Admin---Edit Templates/Logos
Now by using the drop down bar select the template you wish to edit.
Now by using the drop down bar Titled
Choose Forum template/javascript/css File to Edit
Now find viewtopic_body.tpl
And add the following code where you wish it to show.
| Code: | <a href="javascript:void(0)" onclick="window.open('addcomment.php?userid={postrow.POSTER_ID}&component=COMMENT', '_addcomment', 'resizable=yes,width=500,height=360')">Add Comment</a><br/>
<a href="javascript:void(0)" onclick="window.open('showcomment.php?userid={postrow.POSTER_ID}&component=COMMENT', '_showcomment', 'resizable=yes,width=500,height=360')">Show Comments</a> |
So if you wish it to be under Location like i have on here then you find
| Code: | | {postrow.POSTER_FROM} |
So the code would look like below
| Code: | <span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}<br />
<a href="javascript:void(0)" onclick="window.open('addcomment.php?userid={postrow.POSTER_ID}&component=COMMENT', '_addcomment', 'resizable=yes,width=500,height=360')">Add Comment</a><br/>
<a href="javascript:void(0)" onclick="window.open('showcomment.php?userid={postrow.POSTER_ID}&component=COMMENT', '_showcomment', 'resizable=yes,width=500,height=360')">Show Comments</a></span> |
It is worth noting that if you put the code before
then it will be in the same style and size as location.
Now Submit and using the drop down bar again find profile_view_body.tpl:
Now again add the following code where you wish it too be.
| Code: | <a href="javascript:void(0)" onclick="window.open('addcomment.php?userid={USER_ID}&component=COMMENT', '_addcomment', 'resizable=yes,width=500,height=360')">Add Comment</a><br/>
<a href="javascript:void(0)" onclick="window.open('showcomment.php?userid={USER_ID}&component=COMMENT', '_showcomment', 'resizable=yes,width=500,height=360')">Show Comments</a> |
So say on here i wish it to be under Interest i would find
| Code: | | <td> <b><span class="gen">{INTERESTS}</span></b></td> |
And add the code after so it would look something like this,
| Code: | <tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</b></td>
<tr><td><a href="javascript:void(0)" onclick="window.open('addcomment.php?userid={USER_ID}&component=COMMENT', '_addcomment', 'resizable=yes,width=500,height=360')">Add Comment</a><br/>
<a href="javascript:void(0)" onclick="window.open('showcomment.php?userid={USER_ID}&component=COMMENT', '_showcomment', 'resizable=yes,width=500,height=360')">Show Comments</a></span></td>
</tr> |
Note how i added and this was so it showed under interest and in its own table row so if you add the plain code and it doesn't show in line try adding them aswell.
It is worth noting that if you put the code before
then it will be in the same style and size as interests.
Ok now you are done and if done right should look like this.

|
|
| |
|
 |
|
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
HOWTODOIT was designed and built by Symon Field Creator Of ☆ ☆ FunnyWorld ☆
HOWTODOIT© Symon Field 2006,2007,2008 Powered by phpBB Group © 2001,2005.
|
|
|
|