Last Posts Titles

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
actualpolitics
Registered User
Posts: 6
Joined: Wed Apr 23, 2008 10:54 am
Contact:

Re: Last Posts Titles

Post by actualpolitics »

I used this to do away with that annoying "Re: " at the beginning of all the titles...

Changed

Code: Select all

'LAST_POST_SHORTENED_SUBJECT'	=> (utf8_strlen($last_post_subject) > 26) ? truncate_string($last_post_subject, 25) . "\xE2\x80\xA6" : $last_post_subject,
To

Code: Select all

'LAST_POST_SHORTENED_SUBJECT'	=> (utf8_strlen($last_post_subject) > 26) ? (str_replace("Re:","",truncate_string($last_post_subject, 25))) . "\xE2\x80\xA6" : (str_replace("Re:","",$last_post_subject)),

ferx
Registered User
Posts: 45
Joined: Mon Apr 14, 2008 10:59 am

Re: Last Posts Titles

Post by ferx »

is there any demo site for this mod...

rashy
Registered User
Posts: 58
Joined: Sun Dec 02, 2007 4:51 pm

Re: Last Posts Titles

Post by rashy »

Hi LEW21 will this work on v3.0.1 :?:

ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA
Contact:

Re: Last Posts Titles

Post by ham1299 »

rashy wrote:Hi LEW21 will this work on v3.0.1 :?:
yes :D
Heather

rashy
Registered User
Posts: 58
Joined: Sun Dec 02, 2007 4:51 pm

Re: Last Posts Titles

Post by rashy »

Thanks ham1299 for the confirmation :D
I tried it and it works like a charm :)
Thanks LEW21 for this mod Image

ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA
Contact:

Re: Last Posts Titles

Post by ham1299 »

rashy wrote:Thanks ham1299 for the confirmation :D
I tried it and it works like a charm :)
Thanks LEW21 for this mod Image
You're welcome! :D
Heather

Tulojow
Registered User
Posts: 29
Joined: Wed Apr 09, 2008 7:53 am

Re: Last Posts Titles

Post by Tulojow »

Thanks for this mod - it was one of the things my members were missing from other software. this was my first mod in phpbb3, so it was a bit of an experience, but it was an easy first mod to try out with. Everything ended up working, except I ran into a little trouble with the template modification with a non-subsilver style. The template form didn't have the exact topicdetails line:
<!-- ELSEIF not forumrow.S_IS_LINK -->
<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
<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>
So, I improvised and put it where it seemed most logical:
<!-- ELSEIF not forumrow.S_IS_LINK -->
<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SHORTENED_SUBJECT}</a></p>
<dd class="lastpost">
<!-- 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>
<!-- ENDIF -->
For the most part it worked, however there's a gap between the topic summary and the topic author. Is there any way to get rid of that gap? (url - http://www.firesatmidnight.net/phpBB3/)

Thanks

rashy
Registered User
Posts: 58
Joined: Sun Dec 02, 2007 4:51 pm

Re: Last Posts Titles

Post by rashy »

LEW21 how this mod is different from nickvergessen's mod:
http://www.phpbb.com/community/viewtopi ... 9&t=871075

Modification name: last post topic title
Author: nickvergessen
Modification description: With this MOD you can display the title of the last post or topic on the forumlist
Modification version: 1.2.3

cunyalen
Registered User
Posts: 127
Joined: Sat Jul 14, 2007 9:09 pm

Re: Last Posts Titles

Post by cunyalen »

After I made this MOD, I got messed forum list. As the image shows, the first category block shows in a different color. Sometimes, the row height doesn't show properly. I could point the mouse to it or scroll the page to fix it. Is this a browser problem? Can I fix it by somehow changing the code a little bit? Thanks.

Image

madrid400
Registered User
Posts: 22
Joined: Sat Jan 21, 2006 9:12 pm
Location: Spain

Re: Last Posts Titles

Post by madrid400 »

sorry this silly question, but the ZIP file comes withot any readme or install guidelines,
executing install.xml I only see mention to the file

Files to Edit: * includes/functions_display.php

and a nice line with

Installation Level: Easy

sure, but where are the instructions?
in the first page of this topic there is a link "Modification overview page:" but the url
goes to the "MOD Database" page.

it's is so hard to include an readme.txt in the zip file with the instructions or a link to instructions?

This is my first mod install :roll:
Thanks in advance.

cunyalen
Registered User
Posts: 127
Joined: Sat Jul 14, 2007 9:09 pm

Re: Last Posts Titles

Post by cunyalen »

There's another MOD for forumlist_body.html. The instruction is in the template folder.
These are the only two files we need MOD.

piwai
Registered User
Posts: 17
Joined: Sat May 10, 2008 10:24 pm

Re: Last Posts Titles

Post by piwai »

To remove the "Re:" part, proceed as follow:

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php
#
#-----[ FIND ]------------------------------------------
#
$last_post_subject = censor_text($row['forum_last_post_subject']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( strpos($last_post_subject, 'Re: ') === 0 )
{
$last_post_subject = substr($last_post_subject, 4);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

I hope it helps, it works for me ;-)

madrid400
Registered User
Posts: 22
Joined: Sat Jan 21, 2006 9:12 pm
Location: Spain

Re: Last Posts Titles

Post by madrid400 »

piwai wrote:To remove the "Re:" part, proceed as follow:

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php
#
#-----[ FIND ]------------------------------------------
#
$last_post_subject = censor_text($row['forum_last_post_subject']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( strpos($last_post_subject, 'Re: ') === 0 )
{
$last_post_subject = substr($last_post_subject, 4);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

I hope it helps, it works for me ;-)
My file functions_display.php don't have this line exactly, but

line 351:
$last_post_subject = $row['forum_last_post_subject'];

madrid400
Registered User
Posts: 22
Joined: Sat Jan 21, 2006 9:12 pm
Location: Spain

Re: Last Posts Titles

Post by madrid400 »

cunyalen wrote:There's another MOD for forumlist_body.html. The instruction is in the template folder.
These are the only two files we need MOD.
where can found this mod?

bouncybeatz
Registered User
Posts: 106
Joined: Fri Apr 11, 2008 10:35 pm
Location: Liverpool
Contact:

Re: Last Posts Titles

Post by bouncybeatz »

How do i get the topic icons too show on the index page too, Im usin phpbb3.0.1 and the Melankolia theme
I have just installed this mod and works great but does,nt show the topic icons. Any ideas how to show them?
Heres what i added in forumlist_body.html.

Code: Select all

<!-- IF forumrow.LAST_POST_TIME -->
					<p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
					<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
					 <a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT}</a><br />
                                                <a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				<!-- ELSE -->
					<p class="topicdetails">{L_NO_POSTS}</p>
				<!-- ENDIF -->

Plus does anyone know how to remove these white view latest post icons on the index?
Image

Locked

Return to “[3.0.x] MOD Database Releases”