Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

PointX 1.0.3

Asked Modified Viewed 8,468 times
Y
Yodix
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
asked
Member

www.php-fusion.co.uk/infusions/marketplace/uploads/image/t_1163.png
Expanded scoring system, which provides scores on the Forum, Shoutbox and Comments. Moreover, it easy to add new things for which will be given points.



-- View this Addon --
0 replies

13 posts

H
Hugomil
H
Czech translations addons for PHP-Fusion
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
answered
Junior Member

I would like to add points for evaluation, or upload files. I do not know how do I do? Is there a manual? Thanks for the answer. :)
i43.tinypic.com/bfi1pe.jpg
0 replies
Y
Yodix
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

This function adds points:
pointx_add($user_id, "Code");

And this function deducts points.
pointx_deduct($user_id, "Code");

Functions preferably add near queries to the database.

Example:
ratings_include.php - Find a line:
$result = dbquery("INSERT INTO ".DB_RATINGS." (rating_item_id, rating_type, rating_user, rating_vote, rating_datestamp, rating_ip, rating_ip_type) VALUES ('$rating_item_id', '$rating_type', '".$userdata['user_id']."', '".$_POST['rating']."', '".time()."', '".USER_IP."', '".USER_IP_TYPE."')");

Add below:
pointx_add($userdata['user_id'], "anycode");

Find a line:
$result = dbquery("DELETE FROM ".DB_RATINGS." WHERE rating_item_id='$rating_item_id' AND rating_type='$rating_type' AND rating_user='".$userdata['user_id']."'");

Add below:
pointx_deduct($userdata['user_id'], "anycode");

With this modification a user for each submitted votes should get the points. Can be added to this limitation, eg a particular type of votes (news, articles, downloads), etc.
0 replies
W
waxzy
W
waxzy 10
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

hey great mod, been waiting for something like this.

can a user have negative points? I tried adding a new pointX with negative point but it would not let me add "-2".
it would be cool if a user has negative -50 points they get banned temporarily or something.
0 replies
H
Hugomil
H
Czech translations addons for PHP-Fusion
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
answered
Junior Member

Yodix,
thank you very much, I'll try. :)

It could be part of the new version 1.0.4?

add Downloads
add Articles
add News

in the standard setting. ;)
Edited by Hugomil on 04-04-2012 18:32,
0 replies
Y
Yodix
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

Quote

waxzy wrote:

hey great mod, been waiting for something like this.

can a user have negative points? I tried adding a new pointX with negative point but it would not let me add "-2".
it would be cool if a user has negative -50 points they get banned temporarily or something.

The current version has a lock, which completely prevents user has a negative points. The next version I will add the option of having a negative number of points.

Quote

Hugomil wrote:

Yodix,
thank you very much, I'll try. :)

It could be part of the new version 1.0.4?

add Downloads
add Articles
add News

in the standard setting. ;)

The next version I add in the standard "Submissions" (Link, News, Article, Photo, Download).
0 replies
W
waxzy
W
waxzy 10
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Quote

Yodix wrote:
The next version I will add the option of having a negative number of points.


Fantastic!
:D
0 replies
E
er1kazd
E
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

Could you please make, that admin could give like 0.001 or 0.01 points ( I think U get what I mean )?
0 replies
Y
Yodix
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

Quote

er1kazd wrote:

Could you please make, that admin could give like 0.001 or 0.01 points ( I think U get what I mean )?

The creation of such an option would require considerable modification. In version 1.0.4, rather it not be, because it is almost ready, but think about it in 1.0.5.
0 replies
E
er1kazd
E
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

Okay, thanks for thinking about it. Would really love that option.
0 replies
S
Starsmoker
S
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

Where do i add the code to give points for login ?
0 replies
— 4 months later —
C
cybernie
C
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

Hi! Just like the question above, I would to know how to give point when a user login to the site but login should be given points only once every 24 hrs.

Any new update of this infusion?

It is possible to give points in fraction like 0.0001 for user activity like posting in forum?
0 replies
— 3 months later —
E
edemars
E
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

Haven't installed yet, but does this infusion have the option of "using points"?

For instance, on Downloads. Member needs x amount of points to download.
0 replies
E
edemars
E
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

* bump *
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 7 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet