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)

ckevin 11-09-2001 01:50 PM

yes, i'm sure it is put into the /mod/ folder, that's why i think it's straight that mod. can't give out points :(

when the mod. go to /mod/points.php when they log off, the vB ask them to login first, then the /mod/points.php shows a blank page, but when they click the give out points link in the left column of the message, they got the "no permission" error :(

SaintDog 11-09-2001 01:59 PM

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

Do you have that code in the correct place, when I installed it for the first time, I did not set the correct URL destination and everything went wrong. If your URL is not like th above (this is guessing you haev 2.2.0) then that may be why it is not working. Other from that I can not be too sure what is wonrg unless you have not added something or have changed something that was not supposed to be changed.:(

ckevin 11-09-2001 02:22 PM

yup, i'm using 2.2.0 and i've done that in the mod. and admin panel, but still the same, only admin can add the points, the mod. only got the message "Do this again." after I click submit botton and the points have not been added. :(

SaintDog 11-09-2001 02:30 PM

Palmer, a little help over here please? :D - I am not sure what is the problem :confused:

dirgotronix 11-09-2001 05:39 PM

I had a problem with mine where only myself and supermods could give out points. That's because the default permissions check checks to see if they can see full user info. If your mods can't see full user info, they won't have permission. I changed that around to check for some other permission. :P

ckevin 11-09-2001 11:56 PM

yup, now i know admin and super mod. can give points without problems, but mod. can't, any idea on how to set the permission right, so all the mod. can give points? thanks a lot! :)

Palmer ofShinra 11-10-2001 11:07 AM

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.

ckevin 11-10-2001 01:51 PM

Palmer, thanks very much, it works perfectly now :)

Lesane 11-19-2001 12:50 PM

Thanks for this great Hack Palmer, one question: What to do if i only want that admins can give points?

Lesane 11-19-2001 01:10 PM

Is it also possible to give everyone, as default, 0?


All times are GMT. The time now is 05:01 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.01494 seconds
  • Memory Usage 1,729KB
  • 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)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