New post count on index

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
sard
Registered User
Posts: 10
Joined: Fri Nov 28, 2008 2:28 am

Re: New post count on index

Post by sard » Thu Dec 25, 2008 4:29 pm

DragonMaster1 wrote:
sard wrote:I will apreciate Instructions for subsilver based themes :) .

BUMP?
I don't now what bump is :? but the modification works only on prosilver based themes :( .

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: New post count on index

Post by DragonMaster1 » Thu Dec 25, 2008 10:44 pm

sard wrote:
DragonMaster1 wrote:
sard wrote:I will apreciate Instructions for subsilver based themes :) .

BUMP?
I don't now what bump is :? but the modification works only on prosilver based themes :( .

Someone asked that a while back is why it was a bump?

No problem, I am using a different mod that does the same

Thanx anyway

User avatar
matt1206
Registered User
Posts: 213
Joined: Wed Mar 08, 2006 3:04 pm
Location: Sheffield, UK
Name: Matt Worthington

Re: New post count on index

Post by matt1206 » Sat Dec 27, 2008 8:01 pm

lefty74 wrote:you could try
open includes/functions.php

FIND

Code: Select all

		// The following assigns all _common_ variables that may be used at any point in a template.
BEFORE, ADD

Code: Select all

$sql = 'SELECT COUNT(post_id) as count
    FROM ' . POSTS_TABLE . ' 
		WHERE post_time > ' . $user->data['user_lastvisit'] . '
    AND poster_id != ' . $user->data['user_id'];

$result = $db->sql_query($sql);
$post_count = $db->sql_fetchfield('count', false, $result);
$db->sql_freeresult($result);  
FIND

Code: Select all

		'SITENAME'						=> $config['sitename'],
BEFORE, ADD

Code: Select all

		'NEW_POST_COUNT' => $post_count ,
and then delete the parts referred to in the mod in the index.php page
Fantastic. Works a treat :D

User avatar
DoYouSpeakWak
Registered User
Posts: 2307
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: New post count on index

Post by DoYouSpeakWak » Wed Apr 15, 2009 1:32 am

subsilver2 is a bit more difficuelt because the new post number are shown in the overall_header.html file. So its easy to get it shown on index.

Search

Code: Select all

{L_SEARCH_NEW}
Add after in-line

Code: Select all

 ({NEW_POST_COUNT})
But it needs to be viewable on viewforum,viewtopic,mcp,ucp,faq etc as well. My guess is that each of those main root files have to have the same edits in them as the index.php (or very similar) in them for it to work.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid phpBB help and System administrator services.

Locked

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