Page 33 of 33

Re: NV recent topics

Posted: Sun Feb 28, 2010 7:02 pm
by nickvergessen
just replace the request_var('f', 0) with 0

Re: NV recent topics

Posted: Wed Mar 03, 2010 10:36 am
by ricjonhay
Nice mode nickvergessen and the add-on to display on other pages came in very useful for what I need, many thanks.

Re: NV recent topics

Posted: Tue Mar 09, 2010 12:13 am
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.

Re: NV recent topics

Posted: Tue Mar 09, 2010 10:50 am
by nickvergessen
than try to find 'forum_topics_per_page' only

Re: NV recent topics

Posted: Wed Apr 07, 2010 7:52 pm
by filmfen
Does anyone know how to display the latest topic mod on every page? Thank you!

Re: NV recent topics

Posted: Wed Apr 14, 2010 1:29 am
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

Re: NV recent topics

Posted: Fri Apr 23, 2010 10:13 am
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 :)

Re: NV recent topics

Posted: Fri Apr 23, 2010 11:46 am
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);

Re: NV recent topics

Posted: Fri Apr 23, 2010 11:54 am
by bigwookie
thanks for fast response, works great :D

Re: NV recent topics

Posted: Sat May 01, 2010 8:46 am
by Ephemeraboy
hi nick
can i just use the specified forum..
not global forum...
if can, how to do..??
thx so much nick

Re: NV recent topics

Posted: Sat May 01, 2010 11:16 am
by aaalba
does it display active topics or the newst topics? Because i need active topics mod

Re: NV recent topics

Posted: Sat May 01, 2010 1:42 pm
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

Re: NV recent topics

Posted: Sat May 01, 2010 7:11 pm
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?

Re: NV recent topics

Posted: Sun May 02, 2010 11:09 am
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

Re: NV recent topics

Posted: Fri May 07, 2010 1:26 am
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