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.
MiloMinderbinder
Registered User
Posts: 21
Joined: Fri Jul 09, 2004 2:20 pm
Location: Italy

Re: NV recent topics

Post by MiloMinderbinder »

waxxie wrote:
nickvergessen wrote:This was asked several times, please have a look at tha last pages
the only post I can find that sort of touches on this is
http://www.phpbb.com/community/viewtopi ... x#p9768185

it seems it is for a different version?

that exact code is missing in the version I have
my version is

Code: Select all

* @version $Id: functions_recenttopics.php 201 2009-08-03 08:37:12Z nickvergessen $
which uses this code for $spec_forum_id

Code: Select all

	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);
	}
what do I have to edit?

much appreciated
nickvergessen wrote:replace by

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);

I am interested in displaying the recent topics box in both the index and the view_forum page, but I am finding it hard to understand what I should edit in order to have it show the forum view. In index works just fine.

I would also like it to display recent topics from the whole board, not limited to the forum/subforum I am visiting, because I use this mostly for highlighting announces.

Thanx for the help.
masbuskado
Registered User
Posts: 60
Joined: Sat Feb 28, 2009 7:44 pm
Location: New Mod City, NY

Re: NV recent topics

Post by masbuskado »

How I remove this from my ACP!
This was a great mod but I have some issues after I upgrade to 3.0.6 and this keep showing off in the ACP...
and no answer given here solve my problem and I was ignore in my last one... I know that you could be very busy but sometime we (all) don't have similar problems I even post my pictures showing my error and nobody couldn't point me in the right direction. Thanks anyway... I'll try the mod later when I fix the problem on my forum. I just want to know how to remove it from the ACP if it is possible if not is ok too!
User avatar
Zaid
Registered User
Posts: 590
Joined: Thu Nov 08, 2007 2:06 pm
Location: South Pacific Ocean

Re: NV recent topics

Post by Zaid »

Whos got a Demo of this ?
User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: NV recent topics

Post by madmartyau »

Zaid wrote:Whos got a Demo of this ?
Look at the Authors site
Call me Grumpy.
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 »

masbuskado wrote:I just want to know how to remove it from the ACP if it is possible if not is ok too!
ACP > System > Administration-Control-Panel > MODs >
There you can delete it. But when you install it again afterwards. I'd suggest, leave it as is, just install it to the files and use the update for the database afterwards.
No Support via PM
User avatar
Zaid
Registered User
Posts: 590
Joined: Thu Nov 08, 2007 2:06 pm
Location: South Pacific Ocean

Re: NV recent topics

Post by Zaid »

is this the same mod being used here ?

http://thewarezscene.org/forums/ ?

any one care to help?
vonhazey
Registered User
Posts: 89
Joined: Wed Dec 02, 2009 2:43 pm

Re: NV recent topics

Post by vonhazey »

Zaid wrote:is this the same mod being used here ?

http://thewarezscene.org/forums/ ?

any one care to help?
Yes it looks the same mod, just with editing to the template.
Image
User avatar
MPG187
Registered User
Posts: 519
Joined: Sun Apr 12, 2009 7:39 pm
Location: Operation420.net
Name: Operation 420
Contact:

Re: NV recent topics

Post by MPG187 »

wired076 wrote:Again your answer has already been answered above.

However I will reiterate for you...\=
I use the auto update package for any update I do and it works a treat each time I upgrade. I don't know how they didn't have it work but I already posted the possible solution for them above and this should fix their issue.

You should not experience this issue.

I suggest you use the auto update package and update to 3.0.6.
Is there a way to go back to the way things were if something with this, or any mod, should happen to go wrong?
phpBB 3.0.4, http://operation420.net/forum, download package from phpBB.com (fresh install), mods installed, British English, MySQL 4.1.14
User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: NV recent topics

Post by madmartyau »

MPG187 wrote:
wired076 wrote:Again your answer has already been answered above.

However I will reiterate for you...\=
I use the auto update package for any update I do and it works a treat each time I upgrade. I don't know how they didn't have it work but I already posted the possible solution for them above and this should fix their issue.

You should not experience this issue.

I suggest you use the auto update package and update to 3.0.6.
Is there a way to go back to the way things were if something with this, or any mod, should happen to go wrong?
Always backup files and DB.
Call me Grumpy.
User avatar
MPG187
Registered User
Posts: 519
Joined: Sun Apr 12, 2009 7:39 pm
Location: Operation420.net
Name: Operation 420
Contact:

Re: NV recent topics

Post by MPG187 »

I back up my DB all the time. If something would go wrong, would I just copy all the files back? Is there something else I have to do? Like run a php script or something?
phpBB 3.0.4, http://operation420.net/forum, download package from phpBB.com (fresh install), mods installed, British English, MySQL 4.1.14
masbuskado
Registered User
Posts: 60
Joined: Sat Feb 28, 2009 7:44 pm
Location: New Mod City, NY

Re: NV recent topics

Post by masbuskado »

nickvergessen wrote:
masbuskado wrote:I just want to know how to remove it from the ACP if it is possible if not is ok too!
ACP > System > Administration-Control-Panel > MODs >
There you can delete it. But when you install it again afterwards. I'd suggest, leave it as is, just install it to the files and use the update for the database afterwards.
Couldn't find the delete button or delete link or whatever it was but I decided to give it another chance to the mod and this is error.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /index.php:1)
I posted in a picture before but is the same error.

I am using Subsilver2 and I have to switch to prosilver because the fonts were too big.
So that can give you an idea of what is going on... I'll let it up for 2 days to see if someone can help me with this... BTW mod is working ok but am getting this error everytime I intall it.

here is the link to my forum www.forum.newmodcity.com

Thank you!
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 »

Seems like you added some whitespace/tabs before the <?php in the index.php
No Support via PM
masbuskado
Registered User
Posts: 60
Joined: Sat Feb 28, 2009 7:44 pm
Location: New Mod City, NY

Re: NV recent topics

Post by masbuskado »

nickvergessen wrote:Seems like you added some whitespace/tabs before the <?php in the index.php
How is that possible if I manually updgrade my forum with all the files from the phpbb 3.0.6 zip so all my files are new including the index.php I post everything here... http://www.phpbb.com/community/viewtopi ... #p12030065 take a look... BTW now is showing this error and keep everybody logout including myself.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /index.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /index.php:1)
masbuskado
Registered User
Posts: 60
Joined: Sat Feb 28, 2009 7:44 pm
Location: New Mod City, NY

Re: NV recent topics

Post by masbuskado »

:(
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: NV recent topics

Post by Peter77sx »

Hello, can you show how to exclude a forum from recent topics using SQL ?

I have a "hidden" forum and so not all the options show on the configure forum page.
:edit:
oops, Nevermind I found how to do it in phpmyadmin. :)





But I do have another question. why does request_var('f', 0), true) makes the edit to page report no topics or forums if I install your MOD on another phpbb page? It I take that out, it shows up fine.
Locked

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