[RC] User Rank Progression Bar v0.2.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
Ahri89
Registered User
Posts: 516
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: [Dev] User Rank Progression Bar v0.1.0

Post by Ahri89 » Wed Jun 10, 2009 3:24 pm

Nice mod :D
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [Dev] User Rank Progression Bar v0.1.0

Post by IBBoard » Wed Jun 17, 2009 3:27 pm

v0.2.0 is now available.

Changes in this version:
  • Added example Subsilver 2 template and CSS changes (untested - basically a clone of prosilver with different colours)
  • Added example code for the other places that the user rank is shown (if you don't want to show it in all locations then don't modify the relevant .html file)
  • Added extra error handling for reaching the top of the rank schemes
  • Added the missing text string

[edit] Edited to fix broken link

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by Khamosh-Saya » Sat Jun 20, 2009 8:13 am

IBBoard
i have install this mod and its getting error in mine Board3portal

www.friendzsociety.com/portal.php

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1242: Missing argument 6 for get_user_rank()
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3895: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3897: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3898: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3899: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
i have check function_display
this is the line 1242

Code: Select all

function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src, &$percent_complete)
Mod nothing showing in mine forum

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Mon Jun 22, 2009 7:25 pm

The portal isn't a standard part of a phpBB install, so the Progression Bar MOD isn't compatible with it as-is. If you have any other MODs that call "get_user_rank" then you'll have to modify them to pass a sixth variable (even if you ignore that variable). I would make it an optional variable (passing a default value if it doesn't exist) but unfortunately PHP won't let you do that with reference variables.

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by Khamosh-Saya » Tue Jun 23, 2009 9:14 am

IBBoard wrote:The portal isn't a standard part of a phpBB install, so the Progression Bar MOD isn't compatible with it as-is. If you have any other MODs that call "get_user_rank" then you'll have to modify them to pass a sixth variable (even if you ignore that variable). I would make it an optional variable (passing a default value if it doesn't exist) but unfortunately PHP won't let you do that with reference variables.
yes i have seen this error "get_user_rank"
sorry ibbboard i m not expert in php :S
i just follow the instruction in install.xml

so what i do?

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Tue Jun 23, 2009 5:50 pm

The simple fix is to find everywhere that "get_user_rank" is called, count up the number of parameters that are there (the parameters are the variables being passed to the function, which are separated by commas) and add at the end:

Code: Select all

, $dummy
That should stop it throwing the warnings by passing it the extra parameter that it wants (that was added by this MOD). I'll see what I can do about a longer-term fix for interoperability with other MODs, but I can't guarantee a time frame.

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

Re: [RC] User Rank Progression Bar v0.2.0

Post by Lisbon » Sat Oct 10, 2009 8:56 am

Hi

I have instaled the Special and Normal Rank MOD and ia have also intaled the User Rank Progression Bar - Special and Normal Rank MOD Integration

But this member is not in the last Rank but the Progression Bar is not there:
Image

The Progression Bar is just visibel im user´s that have just one rank. like this one:
Image

Is that normal???

One more question. Im memberlist the Progression Bar is not visibel (subsilver2). Look:
Image

who to solve this?

I have made:

Code: Select all

Open: styles/subsilver2/template/memberlist_view.html
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
			<!-- IF RANK_IMG -->
				<tr>
					<td align="center">{RANK_IMG}</td>
				</tr>
			<!-- ENDIF -->
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
			<!-- IF PERCENTAGE_PROGRESS_NUM > -1 -->
				<tr>
					<td>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></td>
				</tr>
			<!-- ENDIF --> 
But dont see the bar.

Yes, i clean the cache also the templades and in firefox too

Tks for help

comkidwizzer3
Registered User
Posts: 375
Joined: Fri Jul 13, 2007 8:24 am
Location: $user->data['user_location'];
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by comkidwizzer3 » Wed Oct 14, 2009 5:45 am

One recommendation, if rank is a special rank don't show the bar ;)
~My MODs~
Login After Register - v1.0.0 | Custom Ranks MOD - RC

~!Hasher!~

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Fri Oct 16, 2009 6:39 pm

Lisbon: I hadn't noticed your post because you posted then edited it. An incorrect template or other change would be the most likely cause. What is the URL of the forum? The MOD doesn't include any template changes for SubSilver, and the change you've made appears to be in the "view one member's profile" file rather than the main memberlist (which is memberlist_body.html).

comkidwizzer3: It already should do that. In get_user_rank() in includes/functions_display.php the code (taken from my forum, so possibly a bit old) goes something like this (with added comments):

Code: Select all

	if (!is_int($percent_complete) || $percent_complete < 0 || $percent_complete > 100)
	{
		//If we've not got a valid value then wipe it back to "not set"
		$percent_complete = -1;
	}

	if (!empty($user_rank))
	{
		//Set the user's rank based on their special rank and don't do anything to the percentage complete
	}
	else if ($user_posts !== false)
	{
//Grab the user's normal rank and calculate their percentage
	}
}


User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Tue Dec 15, 2009 8:01 pm

It has been a while since I did anything with this MOD, but it has been running without a problem on my site. Anyone got any problems that mean it shouldn't be released?

wowfans
Registered User
Posts: 29
Joined: Sun Mar 22, 2009 12:23 pm

Re: [RC] User Rank Progression Bar v0.2.0

Post by wowfans » Wed Dec 16, 2009 5:51 am

Thanks. worked fine. ;)
Sorry for my pool English.

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Wed Dec 16, 2009 7:39 pm

I'll see what I can get done about updating and submitting it. Thanks.

rumensoft
Registered User
Posts: 34
Joined: Thu Nov 26, 2009 12:08 am

Re: [RC] User Rank Progression Bar v0.2.0

Post by rumensoft » Fri Apr 16, 2010 3:07 pm

Can you help me, to modif for style BlueStrike :)
Thanks

User avatar
IBBoard
Registered User
Posts: 542
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by IBBoard » Fri Apr 16, 2010 6:43 pm

Sorry, I don't really support any style other than the defaults as it would lead to a potentially huge amount of work. The basic template, or something similar to it, should work with minor modifications on almost all templates.

mut2nt
Registered User
Posts: 47
Joined: Sun Feb 21, 2010 8:22 pm
Location: HELL
Name: none mut2nt
Contact:

Re: [RC] User Rank Progression Bar v0.2.0

Post by mut2nt » Sat Jun 26, 2010 10:05 am

question: I dont see the bar :| i just see the text
Progress to next rank:
30%

Locked

Return to “[3.0.x] MODs in Development”