User posts with next rank

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.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28009
Joined: Sat Aug 16, 2003 7:36 am

User posts with next rank

Post by Extensions Robot » Thu Sep 11, 2008 9:24 am

Modification name: User posts with next rank
Author: ameeck
Modification description: Displays the user's post count on the top header bar with the amount of posts needed for the next rank.
Modification version: 1.0.1
Tested on phpBB version: 3.0.2

Download file: user_posts_with_next_rank_101.zip
File size: 29.47 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Mar 27, 2017 3:10 pm, edited 8 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

User posts with next rank

Post by A_Jelly_Doughnut » Thu Sep 11, 2008 9:24 am

Modification validated/released

Notes:
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

User posts with next rank

Post by ameeck » Thu Sep 11, 2008 9:24 am

I will be glad for any support: Image

Screenshot added. This modification is very simple and was made due to a request from a few users, the screenshot will show you the modification:
Attachments
total_posts.png
total_posts.png (19.29 KiB) Viewed 4641 times
Last edited by ameeck on Mon Oct 13, 2008 4:16 pm, edited 2 times in total.

zmay44
Registered User
Posts: 37
Joined: Sun Dec 18, 2005 11:53 pm

Re: User posts with next rank

Post by zmay44 » Thu Sep 11, 2008 8:50 pm

screens?

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: User posts with next rank

Post by Lisbon » Fri Sep 12, 2008 8:51 am

When can you adapte for subsilver2?

Have you a sreenshot of the mod?

tks

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: User posts with next rank

Post by danswano » Sat Sep 13, 2008 12:48 am

It's just showing the total post count :? :? :? useless mod.

Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: User posts with next rank

Post by Anyasha » Sat Sep 13, 2008 10:30 pm

All this does is tell you your total number of posts plus the next rank level. Kind of useless. Now maybe if you had a second variable where the user's posts were subtracted from the next rank posts, it might be more useful.

Find:

Code: Select all

					if ($user->data['user_posts'] < $rank['rank_min'])
					{
						$next_rank_posts = (int) $rank['rank_min'];
					}
After, add:

Code: Select all

		$needed_posts = $next_rank_posts - $user->data['user_posts'];
Find:

Code: Select all

					'NEXT_RANK_POSTS'						=> $next_rank_posts,
After, add:

Code: Select all

					'NEEDED_POSTS'						=> $needed_posts,
Now in the template, you can place {NEEDED_POSTS} wherever you like, at least making sure it's between <!-- IF NEXT_RANK_POSTS != 0 --> and <!-- ENDIF -->.

I also did this in ucp_main.php instead because I didn't want my users to be bothered with it on every single page. This way it only shows when they visit their control panel...which seems like a more logical place IMO.
Kiss me, I'm Polish!

simvader
Registered User
Posts: 144
Joined: Thu Sep 06, 2007 5:54 pm
Location: Netherlands
Contact:

Re: User posts with next rank

Post by simvader » Fri Sep 19, 2008 1:40 pm

Thats allot beter matey! :D

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: User posts with next rank

Post by ameeck » Fri Sep 19, 2008 2:14 pm

Added screenshot in the second post.

chicken_chicken
Registered User
Posts: 46
Joined: Wed Jun 27, 2007 5:20 pm

Re: User posts with next rank

Post by chicken_chicken » Sun Nov 16, 2008 4:05 am

Code: Select all

$ranks = $cache->obtain_ranks();
throws an error at 3.0.3

any fix?

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: User posts with next rank

Post by ameeck » Sun Nov 16, 2008 9:33 am

What error is it?

It's probably caused by changing some part of the MOD during the update. Try going through the installation instructions again and check if everything is intact.

robtotmedia
Registered User
Posts: 5
Joined: Sat Dec 20, 2008 9:23 am

Re: User posts with next rank

Post by robtotmedia » Sat Dec 20, 2008 1:45 pm

I'm wondering, where it says 'Total Posts' in the header, how can I change that to say something like 'Total XP'
When I make a change in the code it puts brackets around it like this '{ Total_XP }'
This is what it says to use in the installer

Code: Select all

{L_TOTAL_POSTS}: {USER_POSTS}<!-- IF NEXT_RANK_POSTS != 0 --> / 
And this is what I changed it to, resulting in the brackets

Code: Select all

{L_Total_XP}: {USER_POSTS}<!-- IF NEXT_RANK_POSTS != 0 --> / 
Any help would be appreciated :)
www.mattkellyshow.com - Season 3 now LIVE!

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: User posts with next rank

Post by ameeck » Sat Dec 20, 2008 1:50 pm

Change it like you did to:

Code: Select all

{L_TOTAL_XP}
then open language/en/common.php and add this line to the array:

Code: Select all

'TOTAL_XP' => 'Total XP',
it doesn't matter where as long as it's between the other entries.

robtotmedia
Registered User
Posts: 5
Joined: Sat Dec 20, 2008 9:23 am

Re: User posts with next rank

Post by robtotmedia » Sun Dec 21, 2008 12:48 am

That worked perfectly, thank you :D

I seem to be having troubles getting the next rank to show up now, but I think it might have something to do with also having http://www.phpbb.com/community/viewtopi ... 9&t=879895 installed.

For now it just says the post count/XP count, with no 'next rank' section next to it. Any ideas? :)
www.mattkellyshow.com - Season 3 now LIVE!

annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: User posts with next rank

Post by annepenullar » Sun Jan 11, 2009 6:07 pm

Hello, I'm using Special and Normal Rank Images.

So when configure a group rank to be "special" this mod, only shows the "Total Post: XX". I was wondering if it would be possible to display the same behavior, ie, Total posts: xx / xx even if the rank is set to special. Just like it is set to user default.

Thank you very much.

Locked

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

cron