Page 2 of 5

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

Posted: Wed Jun 10, 2009 3:24 pm
by Ahri89
Nice mod :D

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

Posted: Wed Jun 17, 2009 3:27 pm
by IBBoard
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

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

Posted: Sat Jun 20, 2009 8:13 am
by Khamosh-Saya
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

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

Posted: Mon Jun 22, 2009 7:25 pm
by IBBoard
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.

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

Posted: Tue Jun 23, 2009 9:14 am
by Khamosh-Saya
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?

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

Posted: Tue Jun 23, 2009 5:50 pm
by IBBoard
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.

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

Posted: Sat Oct 10, 2009 8:56 am
by Lisbon
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

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

Posted: Wed Oct 14, 2009 5:45 am
by comkidwizzer3
One recommendation, if rank is a special rank don't show the bar ;)

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

Posted: Fri Oct 16, 2009 6:39 pm
by IBBoard
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
	}
}


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

Posted: Tue Dec 15, 2009 8:01 pm
by IBBoard
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?

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

Posted: Wed Dec 16, 2009 5:51 am
by wowfans
Thanks. worked fine. ;)

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

Posted: Wed Dec 16, 2009 7:39 pm
by IBBoard
I'll see what I can get done about updating and submitting it. Thanks.

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

Posted: Fri Apr 16, 2010 3:07 pm
by rumensoft
Can you help me, to modif for style BlueStrike :)
Thanks

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

Posted: Fri Apr 16, 2010 6:43 pm
by IBBoard
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.

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

Posted: Sat Jun 26, 2010 10:05 am
by mut2nt
question: I dont see the bar :| i just see the text
Progress to next rank:
30%