displaying NAME OF THE TOPIC on index.

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
Locked
jen.h
Registered User
Posts: 37
Joined: Sat May 22, 2010 7:57 pm

displaying NAME OF THE TOPIC on index.

Post by jen.h »

By default, in phpbb, you just see the name of the user who made the last post on respective forum.

Could someone guide me about making it look more like mybb or vbulletin by adding TOPIC NAME first and user below it?

Thanks.
CLICK HERE to get free posts on your forum!

User avatar
jsebean
Registered User
Posts: 378
Joined: Sat Dec 12, 2009 3:20 pm
Location: Atlantic Canada
Name: Jonah
Contact:

Re: displaying NAME OF THE TOPIC on index.

Post by jsebean »

i have a mod like this on my board called NV advanced last topic titles

http://www.flying-bits.org/download.php?mod_id=2
-Jonah
:lol:

Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: displaying NAME OF THE TOPIC on index.

Post by Anyasha »

Kiss me, I'm Polish!

Rudeman72
Registered User
Posts: 64
Joined: Fri Nov 16, 2007 6:28 am
Contact:

Re: displaying NAME OF THE TOPIC on index.

Post by Rudeman72 »

I think the NV mod works (although I haven't used it), the other one posted is last post subject. If you want an alternative to NV mod you can do these edits (make sure to backup files in case you make a mistake):

------------------------------------------------------------------

First:
Open includes/functions_display.php

------------------------------------------------------------------

Look for

Code: Select all

if ($show_active)
Replace it with:

Code: Select all

$sql_array['LEFT_JOIN'][] = array('FROM' => array(TOPICS_TABLE => 't'), 
          'ON' => 'f.forum_last_post_id = t.topic_last_post_id'); 
          $sql_array['SELECT'] .= ', t.topic_id, t.topic_title'; 
           
	if ($show_active)
------------------------------------------------------------------

then look for:

Code: Select all

$forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
replace it with:

Code: Select all

$forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
                        $forum_rows[$parent_id]['topic_id'] = $row['topic_id']; 
                        $forum_rows[$parent_id]['topic_title'] = $row['topic_title'];
------------------------------------------------------------------

then look for

Code: Select all

$forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
replace it with:

Code: Select all

$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
                                $forum_rows[$parent_id]['topic_id'] = $row['topic_id']; 
                                $forum_rows[$parent_id]['topic_title'] = $row['topic_title'];
------------------------------------------------------------------

then look for:

Code: Select all

'SUBFORUMS' => $s_subforums_list,
replace it with:

Code: Select all

'SUBFORUMS'				=> $s_subforums_list,
                        'LATEST_TOPIC_TITLE_SHORT' => (utf8_strlen($row['topic_title'])> 16) ? truncate_string($row['topic_title'], 15) . "\xE2\x80\xA6" : ($row['topic_title']), 
                        'LATEST_TOPIC_TITLE_FULL' => censor_text($row['topic_title']), 
                        'U_FIRST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']),
------------------------------------------------------------------

then look for:

Code: Select all

if ($return_moderators)
and replace it with:

Code: Select all

 $template->assign_vars(array('S_LTT' => $config['ltt_url']));
	if ($return_moderators)
After that save the file.

------------------------------------------------------------------
****If you're using prosilver****

Then open stlyes/prosilver/template/forumlist_body.html

Find:

Code: Select all

<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
after add:

Code: Select all

<a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LATEST_TOPIC_TITLE_SHORT}</a><br />
Then save.
------------------------------------------------------------------
****If you're using subsilver2****

Then open stlyes/subsilver2/template/forumlist_body.html

Find:

Code: Select all

<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
before add:

Code: Select all

<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LATEST_TOPIC_TITLE_SHORT}</a></p>
then save.
------------------------------------------------------------------

That should work.

Here's a screen shot of Subsilver:
Image

Here's a screen shot of prosilver:
Image


Hope that helps.

Locked

Return to “[3.0.x] MOD Requests”