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.
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 »

just replace the request_var('f', 0) with 0
No Support via PM
ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: NV recent topics

Post by ricjonhay »

Nice mode nickvergessen and the add-on to display on other pages came in very useful for what I need, many thanks.
edfrank
Registered User
Posts: 7
Joined: Tue Mar 09, 2010 12:01 am

Re: NV recent topics

Post by edfrank »

I am new at this and tried to install the NV recent topics MOD. Everything was fine, but for the editing this file: includes/acp/acp_forums.php the code in the file did not include the strings that were the subject of the search.

Specificly:

'forum_topics_per_page' => request_var('topics_per_page', 0),

and the next value:

'forum_topics_per_page' => 0,

is not found in the acp_forums.php file. I could not figure out how to make the specified changes. I tried an install anyway and everything was a success, except that no changes were made on the board. I am using version 3.0.7-PL1

Also I am wondering about trying to adapt the modifications to another style than prosilver. I like the Avalon Green style (basically a green version of prosilver) because the board f for a group interested in trees.
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 »

than try to find 'forum_topics_per_page' only
No Support via PM
filmfen
Registered User
Posts: 3
Joined: Wed Apr 07, 2010 7:06 pm

Re: NV recent topics

Post by filmfen »

Does anyone know how to display the latest topic mod on every page? Thank you!
User avatar
trionixus
Registered User
Posts: 18
Joined: Wed Apr 14, 2010 1:22 am

Re: NV recent topics

Post by trionixus »

Hello,

First some details:

I am using phpBB SEO 3.0.7-PL1

I have installed your mod finally (after many frustrating attempts, I eventually realised all I had to do was clear the cache, idiot that I am!), and it is working great. But I'd like to use it with the SubIPBoard Cloudy style (among others), how would I go about doing this? I can see from reading the thread that other people have asked this question, but I seem to get lost when trying to find the answer. Can you tell me which files I need to add the <!-- IF RT_DISPLAY --><!-- INCLUDE recent_topics_body.html --><!-- ENDIF --> line to, and where? And any other files I need to move or add or edit?

The second part of my question is how do I move the recent topics box so that it is below the categories on my main page, instead of above it?

Thanks in advance
bigwookie
Registered User
Posts: 32
Joined: Wed Mar 08, 2006 11:40 am

Re: NV recent topics

Post by bigwookie »

nickvergessen wrote:
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);
	}
Hi, I've updated to the latest version of this mod and phpbb but the codes changed, can you tell me which code needs altering/deleting so everypage shows the recent topics from the hole forum again?

thanks :)
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 »

find:

Code: Select all

	$spec_forum_ary = array();
	if ($spec_forum_id)
	{
		// Only take a special-forum
		if (!$include_subforums)
		{
			if (!in_array($spec_forum_id, $forum_ids))
			{
				return;
			}
			$forum_ids = array();
			$sql = 'SELECT 1 as display_forum
				FROM ' . FORUMS_TABLE . '
				WHERE forum_id = ' . $spec_forum_id . '
					AND forum_recent_topics = 1';
			$result = $db->sql_query_limit($sql, 1);
			$display_forum = (bool) $db->sql_fetchfield('display_forum');
			$db->sql_freeresult($result);

			if ($display_forum)
			{
				$forum_ids = array($spec_forum_id);
			}
		}
		else
		{
			// ... and it's subforums
			$sql = 'SELECT f2.forum_id
				FROM ' . FORUMS_TABLE . ' f1
				LEFT JOIN ' . FORUMS_TABLE . " f2
					ON (f2.left_id BETWEEN f1.left_id AND f1.right_id
						AND f2.forum_recent_topics = 1)
				WHERE f1.forum_id = $spec_forum_id
					AND f1.forum_recent_topics = 1
				ORDER BY f2.left_id DESC";
			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				$spec_forum_ary[] = $row['forum_id'];
			}
			$db->sql_freeresult($result);

			$forum_ids = array_intersect($forum_ids, $spec_forum_ary);

			if (!sizeof($forum_ids))
			{
				return;
			}
		}
	}
	else
	{
		$sql = 'SELECT forum_id
			FROM ' . FORUMS_TABLE . '
			WHERE ' . $db->sql_in_set('forum_id', $forum_ids) . '
				AND forum_recent_topics = 1';
		$result = $db->sql_query($sql);

		$forum_ids = array();
		while ($row = $db->sql_fetchrow($result))
		{
			$forum_ids[] = $row['forum_id'];
		}
		$db->sql_freeresult($result);
	}
replace with:

Code: Select all

		$sql = 'SELECT forum_id
			FROM ' . FORUMS_TABLE . '
			WHERE ' . $db->sql_in_set('forum_id', $forum_ids) . '
				AND forum_recent_topics = 1';
		$result = $db->sql_query($sql);

		$forum_ids = array();
		while ($row = $db->sql_fetchrow($result))
		{
			$forum_ids[] = $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 »

thanks for fast response, works great :D
User avatar
Ephemeraboy
Registered User
Posts: 331
Joined: Tue Dec 29, 2009 4:25 pm
Location: Bandung Kota Hujan
Name: Bernando Bona Tius Sianipar
Contact:

Re: NV recent topics

Post by Ephemeraboy »

hi nick
can i just use the specified forum..
not global forum...
if can, how to do..??
thx so much nick
My diary, my notepad, and my life on
http://www.bonatius.com
My online shop at
http://www.nefara.com
aaalba
Registered User
Posts: 83
Joined: Tue Dec 30, 2008 5:38 pm

Re: NV recent topics

Post by aaalba »

does it display active topics or the newst topics? Because i need active topics mod
mubasshar
Registered User
Posts: 62
Joined: Sun Sep 27, 2009 10:50 am

Re: NV recent topics

Post by mubasshar »

is it possible to use Marquee tag or any other way to add scroll option in recent topic. using this we can show more topics in less space.

if you can give any idea regarding that it would be great.

Thanks & Regards

Mubasshar
aaalba
Registered User
Posts: 83
Joined: Tue Dec 30, 2008 5:38 pm

Re: NV recent topics

Post by aaalba »

it does not work with expand categories mod. On every forum i have a +/- for expanding categories, but on recent topic forum, i do not have it. How to make it work?
mubasshar
Registered User
Posts: 62
Joined: Sun Sep 27, 2009 10:50 am

Re: NV recent topics

Post by mubasshar »

i tried the marquee tag its working almost perfect in Firefox but not giving the same result in IE. can u please check it out. below i am giving the path

http://pakdiscussion.com/demo/phpbb3/index.php


Thanks & Regards
Mubasshar
User avatar
Ephemeraboy
Registered User
Posts: 331
Joined: Tue Dec 29, 2009 4:25 pm
Location: Bandung Kota Hujan
Name: Bernando Bona Tius Sianipar
Contact:

Re: NV recent topics

Post by Ephemeraboy »

Ephemeraboy wrote:hi nick
can i just use the specified forum..
not global forum...
if can, how to do..??
thx so much nick
My diary, my notepad, and my life on
http://www.bonatius.com
My online shop at
http://www.nefara.com
Locked

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

cron