vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User Points System (https://vborg.vbsupport.ru/showthread.php?t=32060)

E 03-11-2002 02:11 AM

2 things...
Can u make it so only Admins can give points... cuz my mods are ****ing it up.....
also... this should be easy.. but what script do i use for putting Top Points person with they're points.. like top poster... thx pz

Reeve of shinra 03-11-2002 02:21 AM

Dez - U, not sure where the problem your having is comming from. Try going through the install steps again to make sure you have everything right. Especially important is the urls.

Freehtml - There is a way to specify whether individual mods can give out points and such. When you add a mod to a forum, it asks whether they can delete posts, ect... check there and add an option to have them give points out or not.

eisecure, I think Palmer mentioned how to make this admin viewable somewhere earlier, ... if not then maybe i will post something on that later.

As for a 'store' system. the one we use has not and likely will not be publically released... try the itemshops that have been floating around.

Radon3k - Thanks! :)

edove - yes, upload it to your admin directory only, not your mod. Make sure the links point correctly and your set. (Or in latin, dont do that very last step in the instructions.)

Reeve of shinra 03-11-2002 02:26 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=35423" target="_blank"> Search for users by Custom Profile Field - by Firefly</a>

Try that...

E 03-11-2002 02:32 AM

Ok... But what about the Thing too add the person with the top points... like
"The Person With the Most Points is {Profile = {userid={code}{code?} with {point number code}

freehtml 03-11-2002 05:00 AM

Quote:

Originally posted by Reeve of shinra

Freehtml - There is a way to specify whether individual mods can give out points and such. When you add a mod to a forum, it asks whether they can delete posts, ect... check there and add an option to have them give points out or not.


Thanks for reply... How do I actually go about doing it?? I am not good at PHP or MySQL

E 03-11-2002 11:02 PM

uppin for answerr to questionm on page 11

Reeve of shinra 03-12-2002 12:35 PM

pls dont bump this topic up ... I get emailed on it and I have enough emails already. I read your requests and the moment I do not have the time to work on it. Anyone else who can assist, will likely reply.

On that note: I might actually code it to display the user with the most points on the front page... its something I think I would like for our own forum. However, I just dont have the time. When I do and when its complete - it will be published here.

j_lorence 03-16-2002 04:51 AM

Great hack, but is there anyone that can make it to where points go up automatically instead of doing it manually? Say for instance you get 2 points for each reply you make and 3 points for each thread you start.

freehtml 03-16-2002 12:05 PM

yah..there is so much to be added on to the features

Reeve of shinra 03-16-2002 08:03 PM

That defeats the purpose of the hack, we want to reward users for good stuff - not have another post count. If you want auto-points, try the karma hack.

dgessler 03-16-2002 09:52 PM

Quote:

Originally posted by e_dove
Ok... But what about the Thing too add the person with the top points... like
"The Person With the Most Points is {Profile = {userid={code}{code?} with {point number code}


I like that idea, that would be awesome..


Dan

mas404 03-19-2002 04:58 AM

even i change the groub the modr. can give points .

and also i try only one user , as you tell but it does not work?

can i give only one user even if he is not modr.?

ExcErr 03-20-2002 08:19 PM

can you make some feature:
Top millioner(who has best points count)

E 03-21-2002 05:29 AM

^^I requested that alreeady... lol.....

ExcErr 03-21-2002 04:43 PM

but we haven't result:)

Velocd 03-24-2002 03:01 AM

I haven't read through all these threads yet, so don't get upset if I ask something that has already been asked. But, I was wondering if there was a way to add points automatically to a members point count every time they post. As opposed to doing it individually to each user, which can take alot of time if you have many active users on your forum :/. For example, lets say everytime someone posts they get 3 points.

Although even this is sorta basic, and to go even further would there be a way to make it work in conjuction with the HP/MP/EXP hack, so that the amount of points you get per posts depends on your level?

For example, but not necessarily in this fashion:
lvl 1 = 1point per post
lvl 2 = 2.5points per post
lvl 3 = 4points per post
and so on.....at each level incrementing at gradually increasing rates

If you can help, I (and I'm sure others) would be very gratiful.

mav 03-24-2002 08:35 PM

Quote:

Originally posted by Velocd
I haven't read through all these threads yet, so don't get upset if I ask something that has already been asked. But, I was wondering if there was a way to add points automatically to a members point count every time they post. As opposed to doing it individually to each user, which can take alot of time if you have many active users on your forum :/. For example, lets say everytime someone posts they get 3 points.

Although even this is sorta basic, and to go even further would there be a way to make it work in conjuction with the HP/MP/EXP hack, so that the amount of points you get per posts depends on your level?

For example, but not necessarily in this fashion:
lvl 1 = 1point per post
lvl 2 = 2.5points per post
lvl 3 = 4points per post
and so on.....at each level incrementing at gradually increasing rates

If you can help, I (and I'm sure others) would be very gratiful.

This would be GREAT. Hopefully someone can help... :squareeyed:

Erwin 03-25-2002 08:49 AM

Installed fine on 2.2.4 - thanks. I swapped over from the karma hack because the karma hack had a HUGE overhead in terms of DB queries.

E 03-25-2002 09:09 AM

yes there is a way.. i dont see any point but there is.... i can give u what u need too make it so u get points for posting... but im making a different hack that uses conjunction between the points and the level hack.... and i cant use levels very well for some reason... anyways.. peace!

mas404 03-25-2002 09:58 AM

Hi

How can i but the points $post[field6] on the welcome text
so the user can see his point on the formhome page.

mav 03-25-2002 11:54 AM

Yeah I figured it out last night.... All you have to do is add a mySQL update on newthread.php and newreply.php that adds x amount to your custom user field when posting or replying.

The Sorcerer 03-25-2002 08:49 PM

Where do i find this STEP 6: Edit TEMPLATE postbit

ADD Underneath "Posts: $post[posts]<br>"

Like u know there is a file named moderator.php, which file is it in(i.e. templates.php, modertaor.php, etc) which one?

Erwin 03-25-2002 10:18 PM

Quote:

Originally posted by The Sorcerer
Where do i find this STEP 6: Edit TEMPLATE postbit

ADD Underneath "Posts: $post[posts]<br>"

Like u know there is a file named moderator.php, which file is it in(i.e. templates.php, modertaor.php, etc) which one?

:)

It's not a file, it's a TEMPLATE - the title of that step says "Edit TEMPLATE".

You can find the postbit template by going to your Admin CP, clicking on Modify Templates, and Show All. You should see the postbit template then.

WanderBug 04-04-2002 03:18 AM

Installed the hack on 2.2.4. It worked fine.

However, when trying to add a new style, vB gave me the following error message:

Database error in vBulletin Control Panel 2.2.4:

Invalid SQL: INSERT INTO replacementset VALUES (NULL,'New Style')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Does the hack alters the replacementset table?

Reeve of shinra 04-04-2002 03:39 AM

Nope ....

The hack utilizes a customer profile field which is fully supportable in vb, a php which pulls the data from that field and does some math before reinserting it, and a few quick template edits....

Reeve of shinra 04-04-2002 03:40 AM

Actually, you might be having trouble with the points on reply mod that was released, in which case you will need to talk to the poster of it.

WanderBug 04-04-2002 03:55 AM

Thak you :cool:

Erwin 04-04-2002 09:18 AM

Works fine in 2.2.5... :D

heretic 04-04-2002 03:57 PM

I'm curious, can this hack be modified to show commas? the users on my site earn up in the hundred thousands, and was wondering how it can be more readable, so instead of 1234567 it'd be 1,234,567

Vivi Ornitier 04-04-2002 04:12 PM

Hmm, maybe. I think you just need to change the type of mySQL info it holds. Like change it to an integer or something...

GuruXL 04-10-2002 07:42 PM

Quote:

Originally posted by mas404
Hi

How can i but the points $post[field6] on the welcome text
so the user can see his point on the formhome page.

yep i need to do the same thing, but i can't get it to work

Vivi Ornitier 04-10-2002 08:04 PM

I went into phpMyAdmin and changed the userfield used for the points to an int instead of char.

Edit: Guru and mas - just changed it to $bbuserinfo[field6] and that should fix it.

GuruXL 04-11-2002 01:48 AM

Quote:

Originally posted by Vivi Ornitier
I went into phpMyAdmin and changed the userfield used for the points to an int instead of char.

that didn't work for me :(

Vivi Ornitier 04-11-2002 07:19 PM

Well, I'm not sure. I played around for a while but couldn't get it working.

Anyway, here is an addition to the automatic points for posting:
PHP Code:

      $newpts=$bbuserinfo[posts]/10 ;
      
$newptsround($newpts) ; 
      
$newpts=$newpts+;
      
$DB_site->query("UPDATE userfield SET
          fieldX=fieldX+
$newpts WHERE userid='$bbuserinfo[userid]'"); 

This will make it so the user will get 1 point if he/she has 10 posts, 10 for 100, etc. If you already have the auto-point added, just replace it with this and change the proper X's.
If not, find this in newreply.php and newthread.php:
PHP Code:

          $DB_site->query("UPDATE user SET
          "
.iif ($foruminfo[countposts],"posts=posts+1,","")."
          
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
      } 

And place my code underneath that.

Palmer ofShinra 04-17-2002 09:02 PM

Quote:

Originally posted by heretic
I'm curious, can this hack be modified to show commas? the users on my site earn up in the hundred thousands, and was wondering how it can be more readable, so instead of 1234567 it'd be 1,234,567
echo number_format($points);

heretic 04-17-2002 10:44 PM

where? in points.php?

Palmer ofShinra 04-18-2002 12:53 AM

Use it in whatever file is appropriate...

If it's for displaying next to posts... just add $points=number_format($points) into the getpostbit part of functions.php

For display on the forum main page, edit index.php

And so forth.

heretic 04-18-2002 01:09 AM

since I want it to show in the postbit, I put it in functions.php in the buildpostbit function, the echo statement you have doesn't do anything, and hte example from the post above gives me a parse error...should I put it in global.php instead?

heretic 04-18-2002 01:11 AM

meh, I forgot the ;

heretic 04-18-2002 01:20 AM

nope, no matter where I put that, it doesn't work


All times are GMT. The time now is 05:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01699 seconds
  • Memory Usage 1,822KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete