Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> PhpBB3 General Support
wills99

Last post details

Is it possible to alter the Last Post column on the index page to show the actual topic the last post was made in.

At the moment I have this in editor mode on my index page, edited via forumlist_body.html-

Spoiler:

Last Post by editor  

in ./viewtopic.php?f=22&p=13686#p13686

on Sat May 17, 2008 11:40 pm



I am looking to change the viewtopic details into a link of the last post topic, like this.

Spoiler:

Last Post by editor  

in celebrations

on Sat May 17, 2008 11:40 pm



Nothing I have tried so far works, can something be added in to allow this
e.g- {forumrow.LAST_POST_TITLE} or {forumrow.U_LAST_POST_TITLE}.

http://all80suk.myfastforum.org

Hope this makes sense.

Thanks,
Wills
admin (no pm's please)

sorry no. this would be very bad for the servers.
Nick(NR)

You could however, edit the: icon_latest_reply.gif to suit your template and have the text on it say "goto post" as that icon does link to the post.


then you can fiddle around relocating the: icon_latest_reply.gif on the index body to a more suitable position.
Nick(NR)

THIS IS FOR PHPBB2

example here: http://portalogy.myfastforum.org/index.php

Find in index_body.tpl:
Code:
<td class="indexleft" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="indexleft" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>


replace with:
Code:
<td class="indexleft" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="indexleft" align="center" valign="middle" height="50" nowrap="nowrap"><span class="postdetails">{catrow.forumrow.LAST_POST_TIME}<br />{catrow.forumrow.LAST_POST_AUTHOR}<br />
<div style="padding-top:3px;">{catrow.forumrow.LAST_POST_IMG}</div></span></td>
  </tr>


Just gonna go and have a look at seeing if a similar thing can be done with phpbb3
Nick(NR)

THIS IS FOR PHPBB3

example here: http://portalogy.myfabforum.org/index.php

Find in forumlist_body.html:
Code:
<dd class="lastpost"><span>
                  <!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
<br />{L_POSTED_ON_DATE} {forumrow.LAST_POST_TIME}
                  <!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></span>
               </dd>


and replace with:
Code:
<dd class="lastpost"><span>
                  <!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<br />{L_POSTED_ON_DATE} {forumrow.LAST_POST_TIME} <br />
                  <div style="padding-top:3px;"><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a></div><!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></span>
               </dd>


Upload an image to your template called: icon_topic_latest.gif

now in the select image drop down list find General Icons(should be in bold) and select last post, this should now show you the icon you see on your live template, go down the page a tad and you'll see another drop down box with the name image, go down to global(should be in bold) and select: /images/icon_topic_latest.gif ,,, adjust the width according to the new image and click the top submit button.

If done correctly you should see it working similar to: http://portalogy.myfabforum.org/index.php
wills99

admin (no pm's please) wrote:
sorry no. this would be very bad for the servers.

No problem, thanks again for the quick response.

Cheers,
Wills
wills99

Nick(NR) wrote:
You could however, edit the: icon_latest_reply.gif to suit your template and have the text on it say "goto post" as that icon does link to the post.
then you can fiddle around relocating the: icon_latest_reply.gif on the index body to a more suitable position.

Super idea Nick, managed it ok althought it's not live yet, only active in editor mode. Many thanks for your help.

Cheers,
Wills

       myfreeforum.org Forum Index -> PhpBB3 General Support
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum