• Page 1 of 2
  • 1
  • 2
  • »
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » User Point System (Tutorial)
User Point System
HellorHeaven
Posts: 31
Reputation: -2

Message # 1 | 4:27 AM
This Is A Common Feature Of Forum. But For The Limitations In uCoz. It's Not Possible To Implement With PHP. That's Why I am Posting This Tutorial Here

Paste This In The Appearance Of Forum Entries (Where You Want It To Be Appear)

Code
<script type="text/javascript">
for (y=1;y<=1;y=y+$POSTS$) {
document.write("Points: "+<?if($AWARDS$)?>(<?endif?>(y*$POSTS$*2)<?if($AWARDS$)?>+$AWARDS$)<?endif?>+);
}
</script>

Explanation :

Y's integer is 1, meaning (y-1=0)

If "Y" manages to go under "1" It would do the following sum,

Set the integer of "Y" to "Y" + (Amount of Comments)

To change this, you need to only change

=y+$POSTS$

To change this watch the following

y = 1
$POSTS$ = 76

You can do a variet of things here.

* = Multiply, 2*5 = 10
+ = Plus, 2+5 = 7
/ = Divide, 10/2 = 5
- = Subtract, 10-3 = 7

You can use these in the code like this,

=y/2*4+15-6+$POSTS$

= 1 Divided by 2 | Multiplied by 4 | Plus 15 | Subtract 6 | Plus 76 = 87, giving quite a variety since you're getting a random number,

Author: kostova
Author's Site: http://ucozers.ucoz.com


Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
Dangem
Posts: 54
Reputation: 0

Message # 2 | 5:53 AM
Sir how it works?

how can i make a point system like this the screen shot i give..

Attachments: 4438905.jpg (176.0 Kb)
Hermes
Posts: 19
Reputation: 7

Message # 3 | 11:30 AM
Quote (Dangem)
how can i make a point system like this the screen shot i give..

In this picture I do not know, but look how I made ​​it on the forum.

Quote
HellorHeaven, Paste This In The Appearance Of Forum Entries (Where You Want It To Be Appear)

Main » Customize design » Editing templates » Forum » Appearance of entries » and place where you want it to be appear

In my case, this is below what is written in red letters the points. These you can rewrite to: Points

Here you go. I hope you wanted this:


Have fun wink
Post edited by Hermes - Thursday, 2011-05-12, 11:32 AM
HellorHeaven
Posts: 31
Reputation: -2

Message # 4 | 12:41 PM
Hermes,

Quote (Hermes)

if(ue) exp+= ue+' </a><img src="/smiles/sm/blackcat.gif">';

Provide The Image Properly


Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
Hermes
Posts: 19
Reputation: 7

Message # 5 | 12:45 PM
Quote (HellorHeaven)
Hermes,

Quote (Hermes)

if(ue) exp+= ue+' </a><img src="/smiles/sm/blackcat.gif">';

Provide The Image Properly

Code
if(ue) exp+= ue+' </a><img src="http://rapidexyu.ucoz.org/smiles/sm/blackcat.gif/smiles/sm/blackcat.gif">';
Post edited by Hermes - Thursday, 2011-05-12, 12:47 PM
Dangem
Posts: 54
Reputation: 0

Message # 6 | 2:42 PM
Quote (Hermes)
Quote (Dangem)
how can i make a point system like this the screen shot i give..
In this picture I do not know, but look how I made ​​it on the forum.

Quote
HellorHeaven, Paste This In The Appearance Of Forum Entries (Where You Want It To Be Appear)
Main » Customize design » Editing templates » Forum » Appearance of entries » and place where you want it to be appear

In my case, this is below what is written in red letters the points. These you can rewrite to: Points

Here you go. I hope you wanted this:

sir can you translate it to english??? and sir can you show me the code of your appearance entries

Animorph
Posts: 2856
Reputation: 189

Message # 7 | 3:13 PM
Dangem, the codes are in english only the screenshot is not in english.
To busy building a passive income online ;)
Dangem
Posts: 54
Reputation: 0

Message # 8 | 4:57 PM
thank you sir i already hitted thanks for both of you...

sir may i know.. what is the point system about? how to earn points?

for example:

per post reply in forum = 0.5 points
per thread you make = 1 points

HellorHeaven
Posts: 31
Reputation: -2

Message # 9 | 5:19 PM
Quote (HellorHeaven)
Y's integer is 1, meaning (y-1=0)

If "Y" manages to go under "1" It would do the following sum,

Set the integer of "Y" to "Y" + (Amount of Comments)

To change this, you need to only change

=y+$POSTS$

To change this watch the following

y = 1
$POSTS$ = 76

You can do a variet of things here.

* = Multiply, 2*5 = 10
+ = Plus, 2+5 = 7
/ = Divide, 10/2 = 5
- = Subtract, 10-3 = 7

You can use these in the code like this,

=y/2*4+15-6+$POSTS$

= 1 Divided by 2 | Multiplied by 4 | Plus 15 | Subtract 6 | Plus 76 = 87, giving quite a variety since you're getting a random number,

You'll Get Your Answer By Reading This


Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
Dangem
Posts: 54
Reputation: 0

Message # 10 | 4:09 PM
but sir HellorHeaven im not good in math tongue

can you just tell me what is the points for? pleasE?

sample is:

points per post: 0.5
point for new thread: 1

Added (2011-05-13, 5:37 Am)
---------------------------------------------

Code
<script type="text/javascript">  
for (y=1;y<=1;y=y+$POSTS$) {  
document.write("Points: "+<?if($AWARDS$)?>(<?endif?>(y*$POSTS$*2)<?if($AWARDS$)?>+$AWARDS$)<?endif?>+);  
}  
</script>
HellorHeaven,

sir i applied it in my site but nothings appear?

Added (2011-05-13, 10:09 Am)
---------------------------------------------
can anyone explain this to me in english not in formula?

how the point system work
what is needed to do to earn points

Magnum-019-Negotin
Posts: 45
Reputation: 0

Message # 11 | 8:28 PM
i need code for this on image smile
http://www.onlinesaprevodom.com
kostova
Posts: 97
Reputation: 9

Message # 12 | 11:26 PM
I believe you forgot to cite where you got this script from, thank you very much:
http://ucozers.ucoz.com/forum/27-324-1#2173

If I may ask a moderator to kindly edit the topic for me. That means to cite the creator and link.
Thank you.

Post edited by kostova - Friday, 2011-05-13, 11:36 PM
HellorHeaven
Posts: 31
Reputation: -2

Message # 13 | 2:26 AM
kostova, I saw this code on your forum, but I also saw this on a russian forum. I took it from there.
Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
kostova
Posts: 97
Reputation: 9

Message # 14 | 2:29 AM
Well I hope you know I wrote that. It's a little different when you know you wrote it, and when someone uses it without citing where they got it from.
And no, you got that exact post from the uCozers forum.
If I may ask, which russian forum did you apparently see this from?
Post edited by kostova - Saturday, 2011-05-14, 2:32 AM
HellorHeaven
Posts: 31
Reputation: -2

Message # 15 | 7:40 AM
kostova, it's ucozen.ru

Now I think they just copied your post and Then I took it from there.

But I am sure that I didn't take it from ucozers.ucoz.com I didn't even know that there is such site.

for now I'll request someone to give your copyright.

Added (2011-05-14, 1:40 Am)
---------------------------------------------
Animorph, As kostova saying, can you please add the text below to my first post?

Quote
Author : kostova
Author's Site : http://ucozers.ucoz.com

Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
Post edited by HellorHeaven - Saturday, 2011-05-14, 7:39 AM
uCoz Community » For Webmasters » Custom Solutions » User Point System (Tutorial)
  • Page 1 of 2
  • 1
  • 2
  • »
Search: