[ABD] Latest Posts

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

[ABD] Latest Posts

Post by TheUniqueTiger » Tue Dec 04, 2007 10:38 pm

MOD name : Latest Posts
MOD description : Shows a configurable number of latest posts from the forums that the user can read on the index page.
MOD version : 1.0.0 RC2
MOD author : TheUniqueTiger
phpBB3 version : 3.0.0 and RC7, RC8
MOD format : MODX

Supported styles : Prosilver, Subsilver2

MOD Features : Shows the overall x number of latest posts from the forums the user can read (the number is configured in ACP). In addition you can completely disallow display of latest posts section to guests in the ACP. Latest posts are shown from the forums that the user can read.

Some screenshots :
Prosilver:
Image

Subsilver2:
Image

Demo: Here's the link.

MOD Download: Download link

Awaiting your feedback...

(Thanks to .::Chico::. who asked me to post this MOD which I was using for myself.)
Last edited by Sam on Mon Sep 27, 2010 9:13 pm, edited 9 times in total.
Reason: Marked mod as abandoned, if the original poster wishes to continue this, please PM any MOD team member to have it unlocked.
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [DEV] Latest Posts

Post by .:: Chico ::. » Wed Dec 05, 2007 4:31 am

Really Great!!!
TheUniqueTiger wrote: (Thanks to inspiration from .:: Chico ::., I decided to post it finally! :P )
haha. ;)

User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: [RC] Latest Posts

Post by TheUniqueTiger » Thu Dec 06, 2007 9:52 pm

Version 1.0.0 RC1 has been posted. The first post has been updated accordingly.
This is the initial but complete release...
Currently supports only prosilver, but I'll go for subsilver2 too in the next RC.
If all goes well, this MOD will be going for validation soon.

Awaiting your feedback... :P
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: [RC] Latest Posts

Post by saaiberke » Fri Dec 07, 2007 9:08 am

Just installed it, it went very smoothly :) Another great mod, thank you UniqueTiger. :)
Also interested in the subsilver2 and patiently waiting the next release ;)

Grtz,

Nic

User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: [RC] Latest Posts

Post by TheUniqueTiger » Fri Dec 07, 2007 9:34 am

Thank you for your compliments...! :P
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

sevsev
Registered User
Posts: 26
Joined: Sun Oct 07, 2007 6:56 pm

Re: [RC] Latest Posts

Post by sevsev » Fri Dec 07, 2007 6:36 pm

Demo looks great, I'll have to try this one
Andrew

.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [RC] Latest Posts

Post by .:: Chico ::. » Fri Dec 07, 2007 9:42 pm

Worked beautifully.

Thanks for share this mod with us!

.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [RC] Latest Posts

Post by .:: Chico ::. » Tue Dec 11, 2007 7:15 pm

Just one thing, TUT, i noticed that last posts in global announcement topics doesn't show in the lastes posts list.

Bye

User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: [RC] Latest Posts

Post by TheUniqueTiger » Tue Dec 11, 2007 7:59 pm

The topics are selected just by their post_id and the forums which the user can read... It makes no condition on the type of the topic whether sticky/announce/global. So I can't really say... I hope you do have permissions to read in that forum.

Oh yes, I see... global topics have forum_id as 0... so it was not selecting that topic...
Its already fixed on my comp... I'll post it in the next version. Never thought about global topics which have forum_id as 0, which was the problem!
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

mzeblu
Registered User
Posts: 7
Joined: Tue Aug 21, 2007 12:35 pm

Re: [RC] Latest Posts

Post by mzeblu » Wed Dec 12, 2007 2:47 am

Dear Sir,

Thank you so much for making this mod!

Presently it displays the recent posts and will show the same thread multiple times if multiple posts were recently made.

Can you tell me how to change this to Recent Threads so it will only show one instance of the thread in the recent topics area?

:) Very good job sir!

User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: [RC] Latest Posts

Post by TheUniqueTiger » Wed Dec 12, 2007 1:33 pm

No its meant to show the latest posts and not the latest topics... If you want the latter then search for another MOD thats around...
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

User avatar
simple12
Registered User
Posts: 84
Joined: Fri Jun 01, 2007 7:39 am
Location: Varanasi, India

Re: [RC] Latest Posts

Post by simple12 » Mon Dec 17, 2007 9:30 am

I am getting following errors on the index page when i turn on the debug function in my localhost.

Code: Select all

[phpBB Debug] PHP Notice: in file /index.php on line 94: Undefined index: 0
[phpBB Debug] PHP Notice: in file /index.php on line 94: Undefined index: 0
[phpBB Debug] PHP Notice: in file /index.php on line 94: Undefined index: 0
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3424: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3426: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3427: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3428: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Also i think their is a mistake in "install file instructions".

In the install file it is mentioned that edit file board.php located at

Code: Select all

\language\acp\board.php
There is no such file.

In my view it should be

Code: Select all

\language\en\acp\board.php
This works fine.

User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: [RC] Latest Posts

Post by TheUniqueTiger » Mon Dec 17, 2007 6:28 pm

Can you tell me what are the contents of the line 94 in index.php and also a few lines above & below...

Thanks for informing me about the typo in install instructions...
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger

User avatar
simple12
Registered User
Posts: 84
Joined: Fri Jun 01, 2007 7:39 am
Location: Varanasi, India

Re: [RC] Latest Posts

Post by simple12 » Mon Dec 17, 2007 6:37 pm

yeah sure,

Code: Select all

//query the db
	$result = $db->sql_query_limit($sql, $config['latest_posts']);
	
	$latest_posts = array();
	while ($latest_post = $db->sql_fetchrow($result))
	{
		$latest_posts[] = $latest_post;
	}
	$db->sql_freeresult($result);
	if (sizeof($latest_posts))
	{
		$template->assign_var('S_SHOW_LATEST_POSTS', true); //assign the template to show latest posts section
		//get the post icons
		$post_icons = $cache->obtain_icons();
		//loop to display each of the latest posts
		foreach ($latest_posts as $latest_post)
		{
			$template->assign_block_vars('latest_post_row', array(
			'POST_TIME' => $user->format_date($latest_post['post_time']),
			'POST_SUBJECT' => $latest_post['post_subject'] != '' ? $latest_post['post_subject'] : '(No Subject)',
	//this is 94th line	'POST_ICON_IMG' => $post_icons[$latest_post['icon_id']]['img'],
			'POST_AUTHOR_FULL' => get_username_string('full', $latest_post['poster_id'], $latest_post['username'], $latest_post['user_colour']),			
			'U_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $latest_post['forum_id'] . '&t=' . $latest_post['topic_id'] . '&p=' . $latest_post['post_id']) . '&#p' . $latest_post['post_id'],
			'FORUM_NAME' => $latest_post['forum_name'],
			'U_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $latest_post['forum_id']),
			));		
		}
		unset($post_icons);
		unset($latest_posts);
		unset($latest_post);
	}	
}
//end MOD

// Grab group details for legend display
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
{
	$sql = 'SELECT group_id, group_name, group_colour, group_type
		FROM ' . GROUPS_TABLE . '
		WHERE group_legend = 1
		ORDER BY group_name ASC';
}
else
{
	$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
		FROM ' . GROUPS_TABLE . ' g
		LEFT JOIN ' . USER_GROUP_TABLE . ' ug
			ON (
				g.group_id = ug.group_id
				AND ug.user_id = ' . $user->data['user_id'] . '
				AND ug.user_pending = 0
			)
		WHERE g.group_legend = 1
			AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
		ORDER BY g.group_name ASC';
}

Amphor
Registered User
Posts: 88
Joined: Mon Dec 25, 2006 6:18 pm

Re: [RC] Latest Posts

Post by Amphor » Mon Dec 17, 2007 6:56 pm

I think it should be in header, not footer
because like when you come to the page, you can see them without scrolling down. User might not know there is such MOD installed.

Locked

Return to “[3.0.x] Abandoned MODs”