Text
Edit for blog viewable

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Add-on`s for your forum
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Sat Sep 15, 2007 10:51 am    Post subject: Edit for blog viewable Reply with quote

Please remember to use the Editor account before making any template changes, If you have not made an editor account yet please read HERE

Secondly you must have all ready made a template you can edit.

If you have not done this please read HOWTODOIT

PLEASE read this post before you do any editing for this code.

http://howtodoit.myfreeforum.org/...component=content&topicid=673


Ok all that done now goto

admin panel -- 3. Styles -- Edit Templates/Logos

Now open up your template using the drop box marked Choose Template to Edit for example myff_howtodoit1 and using the top drop box called Choose Forum template/javascript/css File to Edit find

viewtopic_body.tpl

1. Ok you now need to find the second
Code:
</table>


And place this code straight afterwards
.

Code:
<!-- BEGIN postrow -->
<!-- IF S_BLOGVIEW == 1 && postrow.POST_NUMBER == 1 -->
<div class="forumbg forumbg-table">
      <div class="inner"><span class="corners-top"><span></span></span>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
   <tr>
      <td width="150" align="left" valign="top" ><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
     
   
      <td width="100%" height="28" valign="top" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
         <tr>
            <td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}<script language="JavaScript" type="text/javascript"><!--

   if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
      document.write(' {ICQ_IMG}');
   else
      document.write('</td><td>&nbsp;</td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div>');
           
            //--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
         </tr>
<tr><td><h2><a name="{postrow.U_POST_ID}"></a>A Blog by - {postrow.POSTER_NAME}</h2><br />{postrow.POSTER_AVATAR}</td></tr>
      </table></td>
   </tr>
   
<tr>
            <td class="{postrow.ROW_CLASS}" colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
         </tr>

</table>   
<span class="corners-bottom"><span></span></span>
</div></div>

<!-- ENDIF -->
<!-- END postrow -->


2. You should now see a block of code something like this.
Code:
<tr align="right">
      <td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
   </tr>


You need to replace that with

Code:
<!-- IF S_BLOGVIEW != 1 -->
   <tr align="right">
      <td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
   </tr>
<!-- ENDIF -->


3. Now look for the SECOND
Code:
<!-- BEGIN postrow -->
and after it place

Code:
<!-- IF S_BLOGVIEW != 1 || postrow.POST_NUMBER > 1 -->


4. Find the last
Code:
<!-- END postrow -->
and place afterwards

Code:
<!-- ENDIF -->


You should now see a difference once you have clicked on the view comments link like below.

Before edit



After Edit



And That Is HOWTODOIT


Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Add-on`s for your forum All times are GMT
Page 1 of 1

 
Jump to:  
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

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum