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)

Radon3k 12-12-2001 06:44 PM

Quote:

Originally posted by Palmer ofShinra
For NO PERMISSION problems, try this...

In MODERATOR.PHP

Change

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

INTO

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

(In short, remove the "AND canviewprofile=1")

And calling the script directly as just mod/points.php

Won't work. It needs the ?action=points as well as the other info in the URL to function.


Where does the "?action=points" go? That's the thing I'm tripped up on. Thanks :)

Palmer ofShinra 12-13-2001 12:25 AM

Any link to give points should read...

your.domain.here.com/board/mod/points.php?action=points

Reeve of shinra 12-13-2001 01:13 AM

Avenger,

I am not sure how to go about the decimal points then. I am kind of curious about this myself so I may putz around with it over the next couple of days. I will post if I find anything.

About your other question, we are currently using two instances of the points hack successfully.

The easiest way I can think to do this would be to install the first hack and get that working successfully. Then rename points.php to something else, lets be original and say points1.php, and install it the same way you went about installing the hack the first time around.

Just remember that you will need a NEW custom profle field that you will need to reference. You will also need to change link in the postbit to point to the correct file.

BTW: Is this for a win / loss record ?

Reeve of shinra 12-13-2001 01:24 AM

Sleepbryd,

Unfortunately, this will not work with vb 2.0.1 - when you create the custom profile field you are not presented with the option of making it invisible / uneditable by the user. Hence they can change the value placed.

If your moderately good with php and sql, you can manually add the field and reference it directly in the script. Thats about as much support as I could give pertaining to this.

Reeve

Radon3k 12-13-2001 08:03 PM

Ok I'm sorry I'm such a pest, but I truly don't understand this...In the template_postbit thing that you edit, when you add that big link so when a mod clicks on "Points" under someone's name they can add the points. But, it doesn't work becuz it just opens a blank page. I have read all of the posts in here several times ans I still cannot figure it out. I want mods to be able to give out points, and I realize you have to make the link point to where you want it to, and I've tried, but it doesn't work. Again, sorry for being such a pest!!

Palmer ofShinra 12-13-2001 08:05 PM

Did you edit moderator.php properly?

Radon3k 12-13-2001 09:56 PM

Yep, I added the stuff in the instructions like you said.

dotagious 12-13-2001 10:47 PM

[QUOTE]Originally posted by Reeve of shinra
Avenger,

I am not sure how to go about the decimal points then. I am kind of curious about this myself so I may putz around with it over the next couple of days. I will post if I find anything.

About your other question, we are currently using two instances of the points hack successfully.

The easiest way I can think to do this would be to install the first hack and get that working successfully. Then rename points.php to something else, lets be original and say points1.php, and install it the same way you went about installing the hack the first time around.

Just remember that you will need a NEW custom profle field that you will need to reference. You will also need to change link in the postbit to point to the correct file.

BTW: Is this for a win / loss record ?

Radon3k 12-15-2001 02:49 AM

Ok I've followed the instructions to the tee..But I still cannot figure out how to do the linking thing to points.php so that mods can give out points. Please assist if you can, thanks!! :)

Radon3k 12-15-2001 04:05 PM

I reistalled the hack, and the link where it says "Points:" still doesn't work. Everything else works, just I can't get that link to work...I'm gonna go crazy figruin this thing out... :confused:


All times are GMT. The time now is 04:58 AM.

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.01136 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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