Page 8 of 80

Re: [RC] Ultimate Points 1.0.1

Posted: Tue Jun 23, 2009 6:05 pm
by SAFFLEUR
CJ1985 wrote:I'm really looking forward to this. :)

Now another question, and first of all thanks for answering my first question. My second question is, will there be a store or anything like that added like with stuff such as name color change, and stuff like that. Hope that makes sense.
I believe Adrian is working on making his Shop MOD work with Ultimate Points.

Re: [RC] Ultimate Points 1.0.1

Posted: Tue Jun 23, 2009 9:32 pm
by katib
Hi all
This is a rich featured Mod !!
but I have some stupid questions:
- what is the utility of the points users are collecting ?
- does this Mod allows us to define groups based on total points a users has ?
- does this Mod allows us to make some forums or some extrat hpbb3 functionality only available to some users with a difined points amount ?

Thanks

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 2:20 am
by femu
katib wrote:Hi all
This is a rich featured Mod !!
but I have some stupid questions:
- what is the utility of the points users are collecting ?
- does this Mod allows us to define groups based on total points a users has ?
- does this Mod allows us to make some forums or some extrat hpbb3 functionality only available to some users with a difined points amount ?

Thanks
Hi,

no. It's not planned to make it group based from our side. But anyone is free to use the Ultimate Points to create an addon, which will allow such a thing. So your wish is more like an addon using the points a user might have and then doing something based on the points, like setting groups or whatelse.

regards,
femu

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 4:34 am
by Mircea007
Great mod
www.flashjunkies.com/rehab is a proud owner of this mod

hopefully there would be a store feature added to it or something

and a question how do you change how it says points on top to whatever you want...you can change how its called but the little Points on the index doesnt change


thank you

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 5:46 am
by NathanFtw
femu wrote:
NathanFtw wrote:Installed like a breeze, all features work! The only thing i had to do was change a few language edits and some code edits for my style, other than that this mod is great thanks alot!

Edit: Oh just one thing, how do i remove the decimals from all the currencies for example in the lottery, robbery etc.
As a lot of people requested this, we added the decimals ;)

Open includes/points/functions_points.php and look for:

Code: Select all

/**
* Preformat numbers
*/
function number_format_points($num)
{
	global $user;

		$decimals = 2;
	return number_format($num, $decimals, $user->lang['POINTS_SEPARATOR_DECIMAL'], $user->lang['POINTS_SEPARATOR_THOUSANDS']);
}
Change there the value for $decimals to 0. That should do the job. But be aware ... in the background the calculations are still done with decimals. So the displayed values may not tell the trouth :mrgreen:
They still show up with decimals :(. It also shows the thousands separator example: (500,000) if a user has say 50 cash example: (50,00) how can i make it so that no decimals or thousand seperator is shown (,) for example a user has 50 points and another has 4950 points how can i make it so it shows up like that without decimals and the thousand's separator? Thanks :D.

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 8:50 am
by Mircea007
any shop mod that works with this ?

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 10:34 am
by femu
NathanFtw wrote:They still show up with decimals :(.
Sure? I'm pretty sure, we handle every occurance with this function ....
NathanFtw wrote:It also shows the thousands separator example: (500,000) if a user has say 50 cash example: (50,00) how can i make it so that no decimals or thousand seperator is shown (,) for example a user has 50 points and another has 4950 points how can i make it so it shows up like that without decimals and the thousand's separator? Thanks :D.
Try:

Code: Select all

/**
* Preformat numbers
*/
function number_format_points($num)
{
	global $user;

		$decimals = 2;
	return number_format($num, $decimals, $user->lang['POINTS_SEPARATOR_DECIMAL'], $user->lang['POINTS_SEPARATOR_THOUSANDS']);
}
replacing with:

Code: Select all

/**
* Preformat numbers
*/
/*
function number_format_points($num)
{
	global $user;

		$decimals = 2;
	return number_format($num, $decimals, $user->lang['POINTS_SEPARATOR_DECIMAL'], $user->lang['POINTS_SEPARATOR_THOUSANDS']);
}
*/
function number_format_points($num)
{
	global $user;

	return number_format($num, 0, '', '');
}
regards,
femu

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 10:39 am
by femu
Mircea007 wrote:any shop mod that works with this ?
As soon as Adrian is ready with his Shop Mod ;) He planned to integrate UPS too. Just check here the announcement.

regards,
femu

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 11:19 am
by NathanFtw
It changes it on the homepage under most rich user and in the profile views but not in the nav bar and view topic views, and the points CP shows as "cash on hand: 50,00" (just an example). Any solution? :D.

Edit: I also found another problem im going to have, there's no option to set points per topic and post only characters, i would need per topic and post not characters :S.

Sorry for being a pain.

Re: [RC] Ultimate Points 1.0.1

Posted: Wed Jun 24, 2009 11:52 am
by femu
You set the per topic and per post points in the forum tab in the ACP. Individual for each forum!

For the rest, download the new version. I think there it should work too, with the number_format.

Re: [RC] Ultimate Points 1.0.2

Posted: Wed Jun 24, 2009 11:55 am
by femu
Update to 1.0.2

Changelog:
  • [NEW] Points are now deleted from the user account, if the post or topic is deleted by the user
  • [NEW] You can now set the max percentage of the robbed users cash, which can be robbed at once
  • [NEW] You can now set an user id in the lottery settings, to define who is sending the PM to the lucky winner
  • [NEW] MOD version check from Handyman is supported
  • [FIX] Display of the mod author information was not possible
  • [FIX] German translation in mod authors information was missing
  • [FIX] Comment field in transfer parts are now UTF-8 compatible. Thanks to Dr.Death!
  • [FIX] Edit of polls and attachment were counted again
  • [FIX] The PMs in Lottery and Robbery are now sent in the receivers language
  • [CHG] Changed the display of points link in overall_header
  • [CHG] Users which won't receive PMs, now don't get any PMs from the Ultimate Points
  • [CHG] Users, which are not allowed PNs are now not allowed to fill the comment filed in the transfer option. But the users which receive the points will still get a PM
Download see first post.

Have fun!
femu & Wuerzi

Re: [RC] Ultimate Points 1.0.2

Posted: Wed Jun 24, 2009 2:17 pm
by NathanFtw
So do we just edit the files again and upload the files included replacing the old 1.0.1 ones? No SQL changes required?

Re: [RC] Ultimate Points 1.0.2

Posted: Wed Jun 24, 2009 3:32 pm
by SAFFLEUR
NathanFtw wrote:So do we just edit the files again and upload the files included replacing the old 1.0.1 ones? No SQL changes required?
Follow the update in the contrib folder.

ultimate_points_1.0.2\contrib\Update_1.0.1_to_1.0.2

Re: [RC] Ultimate Points 1.0.2

Posted: Wed Jun 24, 2009 3:43 pm
by femu
And run install_ultimate_points.php from your web browser. As the update instructions says ;)

regards,
femu

Re: [RC] Ultimate Points 1.0.2

Posted: Wed Jun 24, 2009 5:27 pm
by mutank
Should I delete the install_ultimate_points.php after everything is installed and working?

Also, how do you change how many credits someone gets when they post normally?

Example: For Enable points per topic:

and

Enable points per post: