NV advanced last topic 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
Fliggerty
Registered User
Posts: 90
Joined: Fri Jul 11, 2008 11:01 pm

Re: last post topic title

Post by Fliggerty »

All right, so I inserted that section into this code block like this:

Code: Select all

		// Create last post link information, if appropriate
		if ($row['forum_last_post_id'])
		{
			$last_post_subject = censor_text($row['forum_last_post_subject']);
			if (!$config['altt_last_post'])
			{
				$last_topic_title = $row['topic_title'];
				$last_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']);
				$last_topic_title_substr = ( utf8_strlen($last_topic_title) > $config['altt_char_limit'] + 3 )? (utf8_substr($last_topic_title, 0, $config['altt_char_limit']) . '...') : ($last_topic_title);
				$last_post_subject_substr = '';
			}
			else
			{
				$last_topic_title = '';
				$last_topic_url = '';
				$last_topic_title_substr = '';
				$last_post_subject_substr = ( utf8_strlen($last_post_subject) > $config['altt_char_limit'] + 3 )? (utf8_substr($last_post_subject, 0, $config['altt_char_limit']) . '...') : ($last_post_subject);
			}

			$last_post_time = $user->format_date($row['forum_last_post_time']);
			$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = '';
		}
Then as you said, I would be unable to find the next part. So I put it in like this:

Code: Select all

		$template->assign_block_vars('forumrow', array(
			'S_IS_CAT'			=> false,
			'S_NO_CAT'			=> $catless && !$last_catless,
			'S_IS_LINK'			=> ($row['forum_type'] == FORUM_LINK) ? true : false,
			'S_UNREAD_FORUM'	=> $forum_unread,
			'S_LOCKED_FORUM'	=> ($row['forum_status'] == ITEM_LOCKED) ? true : false,
			'S_SUBFORUMS'		=> (sizeof($subforums_list)) ? true : false,

			'FORUM_ID'				=> $row['forum_id'],
			'FORUM_NAME'			=> $row['forum_name'],
			'FORUM_DESC'			=> generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
			'TOPICS'				=> $row['forum_topics'],
			$l_post_click_count		=> $post_click_count,
			'FORUM_FOLDER_IMG'		=> $user->img($folder_image, $folder_alt),
			'FORUM_FOLDER_IMG_SRC'	=> $user->img($folder_image, $folder_alt, false, '', 'src'),
			'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
			'FORUM_IMAGE_SRC'		=> ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
			'LAST_POST_SUBJECT'		=> $last_post_subject,
			'LAST_TOPIC_TITLE'			=> (isset($last_topic_title) && $config['altt_active'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? censor_text($last_topic_title) : '',
			'LAST_TOPIC_TITLE_SHORT'	=> (isset($last_topic_title_substr) && $config['altt_active'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? censor_text($last_topic_title_substr) : '',
			'LAST_POST_SUBJECT_SHORT'	=> (isset($last_post_subject_substr) && $config['altt_active'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? censor_text($last_post_subject_substr) : '',
			'U_LAST_TOPIC'				=> (isset($last_topic_url) && $config['altt_active'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? $last_topic_url : '',

			'LAST_POST_SHORTENED_SUBJECT'	=> (utf8_strlen($last_post_subject) > 26) ? truncate_string($last_post_subject, 25) . "\xE2\x80\xA6" : $last_post_subject,
			'LAST_POST_TIME'		=> $last_post_time,
			'LAST_POSTER'			=> get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'LAST_POSTER_COLOUR'	=> get_username_string('colour', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'LAST_POSTER_FULL'		=> get_username_string('full', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'MODERATORS'			=> $moderators_list,
			'SUBFORUMS'				=> $s_subforums_list,

			'L_SUBFORUM_STR'		=> $l_subforums,
			'L_FORUM_FOLDER_ALT'	=> $folder_alt,
			'L_MODERATOR_STR'		=> $l_moderator,

			'U_VIEWFORUM'		=> $u_viewforum,
			'U_LAST_POSTER'		=> get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'U_LAST_POST'		=> $last_post_url)
		);
I ran the installer, set up my preferences in the acp, and refreshed my cache, and nothing is showing up at all. Something is telling me that last code block is the problem. Am I right in assuming that? Or could there be a different problem?

Edit: Nevermind. It's working now. I didn't do anything different, but it just started working after a while. :mrgreen:

Dennix
Registered User
Posts: 21
Joined: Sat Oct 13, 2007 11:39 pm

Re: last post topic title

Post by Dennix »

Could anyone please help me?

Im using the template/style called Xand, I tried a few things, but its not working.

http://www.pokemonforum.nl/forum/index.php

How do I edit the xand forumlist body so that it will show the topic title (and clickable)

This is what it looks like:

Code: Select all

<table class="tablebg" cellspacing="1" width="100%">
<tr>
   <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
   <th nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th nowrap="nowrap">&nbsp;{L_LAST_POST}&nbsp;</th>
</tr>
<!-- BEGIN forumrow -->
   <!-- IF forumrow.S_IS_CAT -->
      <tr>
         <td class="cat" colspan="2"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td>
         <td class="catdiv" colspan="3">&nbsp;</td>
      </tr>
   <!-- ELSEIF forumrow.S_IS_LINK -->
      <tr>
         <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
         <td class="row1">
            <!-- IF forumrow.FORUM_IMAGE -->
               <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
            <!-- ENDIF -->
            <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
            <p class="forumdesc">{forumrow.FORUM_DESC}</p>
            <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
         </td>
         <!-- IF forumrow.CLICKS -->
            <td class="row2" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
         <!-- ELSE -->
            <td class="row2" colspan="3" align="center">&nbsp;</td>
         <!-- ENDIF -->
      </tr>
   <!-- ELSE -->
      <!-- IF forumrow.S_NO_CAT -->
         <tr>
            <td class="cat" colspan="2"><h4>{L_FORUM}</h4></td>
            <td class="catdiv" colspan="3">&nbsp;</td>
         </tr>
      <!-- ENDIF -->
      <tr>
         <td class="row1" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
         <td class="row1" width="100%">
            <!-- IF forumrow.FORUM_IMAGE -->
               <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
            <!-- ENDIF -->
            <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
            <p class="forumdesc">{forumrow.FORUM_DESC}</p>
            <!-- IF forumrow.MODERATORS -->
               <p class="forumdesc">{forumrow.L_MODERATOR_STR}: {forumrow.MODERATORS}</p>
            <!-- ENDIF -->
            <!-- IF forumrow.SUBFORUMS -->
               <p class="forumdesc">{forumrow.L_SUBFORUM_STR}: {forumrow.SUBFORUMS}</p>
            <!-- ENDIF -->
            <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
         </td>
         <td class="row2" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
         <td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
         <td class="row2" align="center" nowrap="nowrap">
            <!-- 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}">{LAST_POST_IMG}</a>
               </p>
            <!-- ELSE -->
               <p class="topicdetails">{L_NO_POSTS}</p>
            <!-- ENDIF -->
         </td>
      </tr>
   <!-- ENDIF -->
<!-- BEGINELSE -->
   <tr>
      <td class="row1" colspan="5" align="center"><p class="gensmall">{L_NO_FORUMS}</p></td>
   </tr>
<!-- END forumrow -->
</table>
Last edited by Dennix on Fri Jul 25, 2008 10:49 pm, edited 2 times in total.

Idire
Registered User
Posts: 4
Joined: Tue Jul 22, 2008 11:37 am

Re: last post topic title

Post by Idire »

any luck working out why the last post title works for me but not the topic?

lace-rules
Registered User
Posts: 66
Joined: Wed May 28, 2008 9:42 am

Re: last post topic title

Post by lace-rules »

I have tested this Modification on phpBB 3.02 using the AeroBlueX Theme and It Works Perfectly!

I am creating a Pre-Modded phpBB 3 and am glad to say your mod is included in the Mod's!

Congratulations!

P.S. Anyone who cant get this Mod to work needs to download my Pre-Modded Forum! Links will be available soon!

Regards
lace
Do you want a FREE pre-modded phpBB3 Forum instead of modding your own? phpBB-X is a pre-modded forum software that has a very popular style and has loads of mods installed! For more information, visit: http://phpbbx.net76.net

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: last post topic title

Post by nickvergessen »

lace-rules wrote:I am creating a Pre-Modded phpBB 3 and am glad to say your mod is included in the Mod's!
I don't like that! :evil:
No Support via PM

lace-rules
Registered User
Posts: 66
Joined: Wed May 28, 2008 9:42 am

Re: last post topic title

Post by lace-rules »

nickvergessen wrote:
lace-rules wrote:I am creating a Pre-Modded phpBB 3 and am glad to say your mod is included in the Mod's!
I don't like that! :evil:
Why Not? :roll:

Your modification will become more popular and In effect giving you more popularity! :mrgreen:

And your mod is better then your rivals because it works fine with Advanced Quick Reply!

Regards
lace
Do you want a FREE pre-modded phpBB3 Forum instead of modding your own? phpBB-X is a pre-modded forum software that has a very popular style and has loads of mods installed! For more information, visit: http://phpbbx.net76.net

Dennix
Registered User
Posts: 21
Joined: Sat Oct 13, 2007 11:39 pm

Re: last post topic title

Post by Dennix »

Whenever I try the install.php i keep getting this message:

Language file info_acp_altt.php couldn't be opened.

it seems it cant find the file or something?
But I dont know where to put the file then.

Edit: NVM its working, it was because my forum has a standard language that isnt english.

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: last post topic title

Post by nickvergessen »

lace-rules wrote:
nickvergessen wrote:
lace-rules wrote:I am creating a Pre-Modded phpBB 3 and am glad to say your mod is included in the Mod's!
I don't like that! :evil:
Why Not? :roll:
Because most premoddeds don't get fixed and updated propably if there are any risks
No Support via PM

Idire
Registered User
Posts: 4
Joined: Tue Jul 22, 2008 11:37 am

Re: last post topic title

Post by Idire »

Code: Select all

updated to 1.2.4 and now all my forums when I click on the last read post say "the requested topic doesnt exist"

and last topic still doesnt work

EDIT: Checked my installation, now the links work but now both the topics and last mode option show the last post title with RE: etc on it

any idea why?

lace-rules
Registered User
Posts: 66
Joined: Wed May 28, 2008 9:42 am

Re: last post topic title

Post by lace-rules »

nickvergessen wrote:
lace-rules wrote:
nickvergessen wrote:
lace-rules wrote:I am creating a Pre-Modded phpBB 3 and am glad to say your mod is included in the Mod's!
I don't like that! :evil:
Why Not? :roll:
Because most premoddeds don't get fixed and updated properly if there are any risks
Mine Does, I released Rev 1 and found it had some bugs and holes so I quickly fixed it! So dont think of us stero-typically!
Do you want a FREE pre-modded phpBB3 Forum instead of modding your own? phpBB-X is a pre-modded forum software that has a very popular style and has loads of mods installed! For more information, visit: http://phpbbx.net76.net

DSL Line
Registered User
Posts: 168
Joined: Tue May 20, 2008 5:49 am

Re: last post topic title

Post by DSL Line »

Hello

i have problem in my style After using this mod!!


http://xs128.xs.to/xs128/08253/wqeweqweweqw747.jpg



how i can fix it ?!!!

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: last post topic title

Post by nickvergessen »

please show the forumlist_body.html
No Support via PM

DSL Line
Registered User
Posts: 168
Joined: Tue May 20, 2008 5:49 am

Re: last post topic title

Post by DSL Line »

Code: Select all

<!-- DEFINE $CA_FORUMLIST = '1' -->
<!-- BEGIN forumrow -->
	<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT -->
		</table>
		{$CA_BLOCK_END}
		<br />
	<!-- ENDIF -->

	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW or forumrow.S_NO_CAT -->
	    {$CA_BLOCK_START}
		<table class="tablebg" cellspacing="{$CA_SPACING}" width="100%">
		{$CA_CAP_START}<!-- IF forumrow.S_IS_CAT --><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4><!-- ELSE -->{L_FORUM}<!-- ENDIF -->{$CA_CAP_END}
		<tr>
		
			<th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
			<th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
			<th width="50">&nbsp;{L_POSTS}&nbsp;</th>
			<th width="175">&nbsp;{L_LAST_POST}&nbsp;</th>
		</tr>
	<!-- ENDIF -->
	
	<!-- IF not forumrow.S_IS_CAT -->
		<!-- IF forumrow.S_IS_LINK -->
			<tr>
				<td class="row1" width="31" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
				<td class="row1">
				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
					<p class="forumdesc">{forumrow.FORUM_DESC}</p>
    <!-- IF forumrow.FORUM_IMAGE -->
                      <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="middle" style="padding-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</td><td width="100%" valign="middle">
    </td></tr></table>
                   <!-- ENDIF -->
                   
					
				<!-- IF forumrow.CLICKS -->
					<td class="row2" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
				<!-- ELSE -->
					<td class="row2" colspan="3" align="center">&nbsp;</td>
				<!-- ENDIF -->
			</tr>
		<!-- ELSE -->
		<tr>
			<td class="row2" width="31" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="row1">
				<a class="forumlink<!-- IF forumrow.S_UNREAD_FORUM --> link-new<!-- ENDIF -->" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
				<p class="forumdesc">{forumrow.FORUM_DESC}</p>
    <!-- IF forumrow.FORUM_IMAGE -->
                      <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="middle" style="padding-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</td><td width="100%" valign="middle">
    </td></tr></table>
                   <!-- ENDIF --> 
			
				<!-- IF forumrow.MODERATORS -->
					<p class="forumdesc"><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}</p>
				<!-- ENDIF -->
				<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS -->
					<p class="forumdesc"><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}</p>
				<!-- ENDIF -->
				
			</td>
			<td class="row2" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
			<td class="row1" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
			<td class="row2" align="center" nowrap="nowrap">
				<!-- IF forumrow.LAST_POST_TIME -->
									<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SHORTENED_SUBJECT}</a></p>
					<p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
					    <p class="topicdetails">{forumrow.LAST_POSTER_FULL}
    <a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
        
				<!-- ELSE -->
					<p class="topicdetails">{L_NO_POSTS}</p>
				<!-- ENDIF -->
			</td>
		</tr>
		<!-- ENDIF -->
	<!-- ENDIF -->
	<!-- IF forumrow.S_LAST_ROW -->
		<!-- IF not S_IS_BOT and U_MARK_FORUMS -->
		<tr>
			<td colspan="5" class="cat" align="center">
				<a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a>
			</td>
		</tr>
		<!-- ENDIF -->
		</table>
		{$CA_BLOCK_END}
	<!-- ENDIF -->
<!-- BEGINELSE -->
<table class="tablebg" cellspacing="{$CA_SPACING}" width="100%">
{$CA_CAP_START}{L_MESSAGE}{$CA_CAP_END}
<tr>
	<td class="row1" colspan="5" align="center" style="padding: 25px 5px;"><p class="gensmall">{L_NO_FORUMS}</p></td>
</tr>
</table>
<!-- END forumrow -->

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: last post topic title

Post by nickvergessen »

find:

Code: Select all

<td class="row2" align="center" nowrap="nowrap">
replace with:

Code: Select all

<td class="row2" align="center">
No Support via PM

DSL Line
Registered User
Posts: 168
Joined: Tue May 20, 2008 5:49 am

Re: last post topic title

Post by DSL Line »

nickvergessen wrote:find:

Code: Select all

<td class="row2" align="center" nowrap="nowrap">
replace with:

Code: Select all

<td class="row2" align="center">
thanx it's work with fire fox only

but IE SAME PROBLEM!!

plz help

Locked

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