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)

Shaede 01-21-2002 02:03 AM

Edit: Nevermind...I figured it out on my own...thanks. :\

Shenlong 01-21-2002 05:30 AM

is there way to add multiple fields to this?

for example, instead of typing a point score i type in a word

so far I have a weapon field, I want to add Armor and Gil, is there a way to do that?

Shenlong 01-21-2002 05:45 AM

NM! I got it

MaineI30 01-22-2002 04:16 AM

hey guys,

novice here, wondering how you can make it so that "points" is only hyperlinked (under user name in posts) if the thread reader is an admin or moderator... and to everyone else, it's just not clickable...

Palmer ofShinra 01-26-2002 07:47 PM

Simple...

You find the getpostbit function in functions.php

Add a line that checks permissions to see if the person is authorized to give points.

Example - Only admins can

if ($bbuserinfo[usergroupid]==6) {
$points="blahblah"; <-- make that the code with the link
} else {
$points="Points: $post[field5]";
}

I have an even cooler solution working... but I'm keeping that to myself.

Sparkz 01-26-2002 08:39 PM

If anyone would like it, I could release a hack that gives administrators and mods the ability to give users points, but in stead of displaying the points in the user profile, the amount of points would actually decide the usertitle of the user...

I have this implemented on my own site and it works very well... If anyone wants this, let me know, and I'll make a release.

MaineI30 01-27-2002 02:14 AM

Quote:

Originally posted by Sparkz
If anyone would like it, I could release a hack that gives administrators and mods the ability to give users points, but in stead of displaying the points in the user profile, the amount of points would actually decide the usertitle of the user...

I have this implemented on my own site and it works very well... If anyone wants this, let me know, and I'll make a release.

i'd certainly be interested!

Sparkz 01-27-2002 02:39 PM

Quote:

Originally posted by MaineI30


i'd certainly be interested!

Give me a day or two - have a few things I need to sort before I start digging for this code.

Sparkz 01-31-2002 12:48 PM

Sorry for not having released this yet. I have been incredibly busy at work the past week. Will try to get this out during the weekend (which might be difficult, since I have to build my new computer and do some serious gaming ;) )

monitox 01-31-2002 04:52 PM

Just install it.. Works GREAT ! Thanks ! ;)

mas404 02-17-2002 08:08 AM

Great hack,
I use it for long time but...
I was thinking if it possible to insert links inside of the box.
So that I can remove the user best threads from his signature and insert it on his fields.

Palmer ofShinra 02-17-2002 08:56 AM

If you did it the way I did (rather than Reeve's alternate that has the default value set) then you should be able to...

Just use raw HTML

<a href=http://www.mydomain.com/board/showthread.php?threadid=12345>Check out my cool thread!</a>

Something like that. Just make sure it falls under the 250 character limit.

Reeve of shinra 02-17-2002 02:40 PM

Yeah, that edit I posted was only if you wanted a default number set. Otherwise its not needed.

Vivi Ornitier 02-17-2002 06:56 PM

for anyone wanting a shop: https://vborg.vbsupport.ru/showthrea...threadid=35156
here's my own version of it.

mas404 02-18-2002 12:32 PM

thank you Palmer ofShinra

it's work

cool

mewgood 03-03-2002 10:05 PM

why when I click on the points.php under postbit, it popup up a new window but nothing there.
only white background..
?
help please

Radon3k 03-03-2002 10:21 PM

mewgood...I had the same problem, make sure that the address in the link is pointed to the right source. If it isn't, you'll get that error, same thing happened to me :)

mewgood 03-06-2002 12:26 AM

nice

Saiyan XL 03-06-2002 12:52 AM

I have a great mod for this hack, go check it out here!! it will count your points automatically according to your posts, you get 2 points per post..

https://vborg.vbsupport.ru/showthrea...threadid=35754

mewgood 03-06-2002 04:14 AM

Quote:

Originally posted by Palmer ofShinra


In points.php

Replace
PHP Code:

$perms=getpermissions();
if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  } 

With
PHP Code:

if (!$bbuserinfo[usergroupid]==6) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  } 


In moderator.php

Replace
PHP Code:

if ($action=="points") {

  
$userid verifyid("user",$userid);

  
$permissions=getpermissions();
  if (
$permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canviewprofile=1")) 

With

PHP Code:

if ($action=="points") {

  
$userid verifyid("user",$userid);

if (!
$bbuserinfo[usergroupid]==6


??After I did this change, even admin cant add points now....
help please

Reeve of shinra 03-06-2002 12:29 PM

I think you need to change the group id to corrolate with group your trying to use here ....

ExcErr 03-06-2002 07:05 PM

makenavoption("Points","../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints");

THIS LINK DOESN'T WORK
can you help me ?

Reeve of shinra 03-06-2002 07:30 PM

If this is the link thats added to the admin panel then you have to change makenavoption to whatever is being used for the rest of the links....

Makenavoption started in 2.2.0 I think ,...

mewgood 03-06-2002 09:52 PM

It is 6.
what do I do now?

ExcErr 03-07-2002 06:22 PM

Quote:

Makenavoption started in 2.2.0 I think ,...
hm, but i have 2/2/2 !

Psychdrone 03-08-2002 12:18 AM

Shoot man, I was trying to make it so when mods/admins click Gill
There are two fields
one where they could add points ( already included)
and one where they could subtract points

Eh Palmer goo O" buddy!;)

Reeve of shinra 03-08-2002 02:10 AM

Psyc - just use a negative # to subtract points (ie: -510)

Exc - look at the other admin panel options and use that format per se.

ExcErr 03-08-2002 09:58 AM

ok, ok, i'will try it!

ExcErr 03-08-2002 10:03 AM

hm.......doesn't work, like
PHP Code:

makenavoption("Email Users","email.php?action=start","<br>");
makenavoption("Build Mailing List","email.php?action=genlist", "<br>");
makenavoption("Points","../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints");

and doesn't work, like
PHP Code:

makenavoption("Email Users","email.php?action=start","<br>");
makenavoption("Build Mailing List","email.php?action=genlist""<br>");
makenavoption("Points","../mod/points.php?action=masspoints"); 

it show's me page, but there aren't some input fields!

Reeve of shinra 03-08-2002 01:20 PM

No promises, but I will try to take a look at it over the weekend to see what needs to be changed for vb223 (if anything).

ExcErr 03-08-2002 03:48 PM

ok, thx, i'll wait....
may be i have error in my points.php????

Reeve of shinra 03-09-2002 05:24 AM

Exc -- if you want to do MASS POINTS, then you need to UNCOMMENT lines 27 & 77

As for the link you are adding to the admin panel it should look like this for VB 222 & 223b

PHP Code:

makenavselect("Points Hack","<hr>");
// *************************************************
makenavoption("Mass Points,"../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints","<br>");


Reeve of shinra 03-09-2002 05:30 AM

Installing for the first time to VB 223?

Use the install provided in the zip for 203. Your only change will be to the link in the admin panel. You will use this instead:

PHP Code:

makenavselect("Points Hack","<hr>");
// *************************************************
makenavoption("Mass Points,"../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints","<br>");



Upgraded your board to 223?

From 222: Make your template changes & add the code to Moderator.php

From 203: Do the same thing, only change the code mentioned above for the admin link.

Simple as that.

Psychdrone 03-09-2002 03:09 PM

Quote:

Originally posted by Reeve of shinra
Psyc - just use a negative # to subtract points (ie: -510)

Exc - look at the other admin panel options and use that format per se.

Thanks, Works like a charm!
I just made two forums thu, to make it easier on the mods and admins!

*cheers

freehtml 03-09-2002 04:44 PM

Great hack ! Installed as "gold" for my Romance of three kingdoms forum

Dez_U 03-09-2002 10:19 PM

hi all,

I have read through all this page and think I may have missed a bit somewhere :(

I get this error where I try to add points

There seems to have been a slight problem with the The ClanRam Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


and below

Database error in vBulletin Mod Control Panel 2.2.3:

Invalid SQL: SELECT field6 FROM userfield WHERE userid=Array[userid]
mysql error: You have an error in your SQL syntax near '[userid]' at line 1

mysql error number: 1064

Date: Sunday 10th of March 2002 12:18:07 AM
Script: http://www.clanram.com/forum/forum/mod/points.php
Referer: http://www.clanram.com/forum/mod/poi...ay%5Buserid%5D


any help please :)

freehtml 03-10-2002 04:43 AM

can we specify only certain mod can give the points?

And how to make it give out certain point at certain time,let said evrty beginning of the month, the system will generate 10 points for certain group of members

eiSecure 03-10-2002 04:05 PM

I was wondering if for the postbit, only moderators and aministrators can view the link under Gil, instead of all members being able to see the link.

Also, do you have any good "shopping systems" you could recommend that uses this hack and awards users custom titles and stuff?

Thanks,
Alex

freehtml 03-11-2002 01:22 AM

Quote:

Originally posted by eiSecure
I was wondering if for the postbit, only moderators and aministrators can view the link under Gil, instead of all members being able to see the link.

Also, do you have any good "shopping systems" you could recommend that uses this hack and awards users custom titles and stuff?

Thanks,
Alex

I am also looking for something simliar.

Radon3k 03-11-2002 02:05 AM

Works great on 2.2.4! :)


All times are GMT. The time now is 05:15 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.01559 seconds
  • Memory Usage 1,835KB
  • 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
  • (8)bbcode_php_printable
  • (6)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