NV recent topics

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
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: NV recent topics

Post by nickvergessen »

phpbb_forums -Table added column: forum_recent_topics
phpbb_config - added values:

Code: Select all

			$sql = 'DELETE FROM ' . CONFIG_TABLE . "
				WHERE config_name = 'rt_anti_topics'
					OR config_name = 'rt_mod_version'
					OR config_name = 'rt_number'
					OR config_name = 'rt_page_number'
					OR config_name = 'rt_index'";
			$result = $db->sql_query($sql);
phpbb_modules - Need to be remove with the ACP:
ACP > System > Administration-Controll-Panel > MODs >
No Support via PM
User avatar
SoonDead
Registered User
Posts: 51
Joined: Wed Jan 21, 2009 10:00 am
Location: Hungary
Name: Márton Vincze
Contact:

Re: NV recent topics

Post by SoonDead »

thanks! :D
bigwookie
Registered User
Posts: 32
Joined: Wed Mar 08, 2006 11:40 am

Re: NV recent topics

Post by bigwookie »

I've got this mod working on the index, viewtopic & viewforum and it all works apart from on the viewtopic & viewforum it shows recent topics from that category only and not the whole forums, I've checked and redone my edits but I cant work out why it doing this or what I've done or missed.

This is the site www.soe-squad.com its running on and any help would be appreciated
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: NV recent topics

Post by nickvergessen »

bigwookie wrote:I've got this mod working on the index, viewtopic & viewforum and it all works apart from on the viewtopic & viewforum it shows recent topics from that category only and not the whole forums, I've checked and redone my edits but I cant work out why it doing this or what I've done or missed.

This is the site http://www.soe-squad.com its running on and any help would be appreciated
this is how its supposed to be.
if you dont want that, simply open includes/functions_recenttopics.php
find and delete:

Code: Select all

	if ($spec_forum_id)
	{
		$spec_forum_ary = array($spec_forum_id);
		$sql = 'SELECT parent_id, forum_id
			FROM ' . FORUMS_TABLE . '
			WHERE ' . $db->sql_in_set('forum_id', $forum_ary) . '
			ORDER BY left_id';
		$result = $db->sql_query($sql);
		while ($row = $db->sql_fetchrow($result))
		{
			if (in_array($row['parent_id'], $spec_forum_ary))
			{
				$spec_forum_ary[] = $row['forum_id'];
			}
		}
		$db->sql_freeresult($result);
	}
No Support via PM
bigwookie
Registered User
Posts: 32
Joined: Wed Mar 08, 2006 11:40 am

Re: NV recent topics

Post by bigwookie »

there isnt that exact bit of code and when you delete the closest part i get a white error, i'm using your latest version 1.0.4
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: NV recent topics

Post by nickvergessen »

That code is from 1.0.4
you may check whether you deleted enough code.
No Support via PM
bigwookie
Registered User
Posts: 32
Joined: Wed Mar 08, 2006 11:40 am

Re: NV recent topics

Post by bigwookie »

arr nice, i missed one bit but works ace now :oops: :)

btw is there anyway of cementing topics to the recent topic block?
User avatar
Epick One
Registered User
Posts: 27
Joined: Mon Jul 28, 2008 6:24 pm

Re: NV recent topics

Post by Epick One »

Nice mod, i am going to use this modification on my site. alos use you who was here.


Thank you.
Pyscho Streets Down Town - Music's Best Creations.
crazymummy
Registered User
Posts: 88
Joined: Thu Apr 23, 2009 1:27 pm

Re: NV recent topics

Post by crazymummy »

I have installed this Mod, and ran the installation, at it has created a new MOD tab in my ACP as it should. But it is not showing up on my forum index at all. Is there something else I have to do in the ACP?
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: NV recent topics

Post by nickvergessen »

The MOD-Tab is from phpbb but is hidden when its empty just for your information...

You need to refresh your template and purge your cache in the acp.
No Support via PM
koalaii
Registered User
Posts: 176
Joined: Sun Jan 02, 2005 4:25 pm
Location: France

Re: NV recent topics

Post by koalaii »

Hello,

I'm trying to implement this mod "Different topic title color for old topics" http://www.phpbb.com/community/viewtopi ... &t=1618675

However I have a problem with this command line in function_recenttopics.php :

Code: Select all

		'TIME_LIMIT_BACKGROUND'     => ($row['topic_time'] < time() - 60 * 60 * 24 * 60 ) ? true : false, 
(after 'FIRST_POST_TIME' => $user->format_date($row['topic_time']), )

It seems it can't recognize the topic_time. Any idea what could cause that ?

Thanks

koa
Humanrag3
Registered User
Posts: 157
Joined: Thu Oct 30, 2008 3:58 am

Re: NV recent topics

Post by Humanrag3 »

How can I make it read topics from only certain forums?(only forums)
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: NV recent topics

Post by nickvergessen »

Simple go to ACP > Forums > Manage forums >
Edit the other forums and turn the Option display in Recent Topics to No
No Support via PM
Humanrag3
Registered User
Posts: 157
Joined: Thu Oct 30, 2008 3:58 am

Re: NV recent topics

Post by Humanrag3 »

WOW! Amazing mod! very nice work.

EDIT: is it possible to show recent topics on a custom page?

I added

Code: Select all

if ($config['rt_index'])
{
	if (!function_exists('display_recent_topics'))
	{
		include($phpbb_root_path . 'includes/functions_recenttopics.' . $phpEx);
	}
	display_recent_topics($config['rt_number'], $config['rt_page_number'], $config['rt_anti_topics']);
}
on the custompage.php

doesn't seem to work.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: NV recent topics

Post by Peter77sx »

You have to add
include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);

somewhere before page_header is called..
Locked

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