vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [uShop] Mass-Give Points (https://vborg.vbsupport.ru/showthread.php?t=65420)

rob_daemon 05-22-2004 10:00 PM

[uShop] Mass-Give Points
 
What this will do is it will enable you to mass-give points to your users if you use the uShop system. I have tested this with uShop 0.93.

To install, upload gimme.php into either your modcp or admincp directory.

If you want a different usergroup to access it other than usergroup ID 6 (administrators), then look for this in gimme.php and then change the red number to the desired usergroup ID:

Code:

// ###################################################################
// ## CHANGE THIS SETTING
// ##        Make this the usergroup ID that will have access to this
// ##    script. All other usergroups will be denied.
// ###################################################################

define('CAN_ACCESS_UGROUP', 6);


sabret00the 05-30-2004 09:50 AM

this is great :)

Reeve of shinra 05-31-2004 02:39 AM

It doesnt seem to work right if your using a profile field to store the points in.

Logik 06-18-2004 03:52 AM

does this hack work?

Zachery 06-18-2004 04:00 AM

Quote:

Originally Posted by Reeve of shinra
It doesnt seem to work right if your using a profile field to store the points in.

I would assume it uses the default configureation ;)

b4ne 06-28-2004 06:55 PM

Im gettin this error when I click okay and on the screen where I have to confirm the transaction I get this error

Fatal error: Call to undefined function: floatval() in /home/virtual/extremeinc/home/httpd/html/vb/admincp/gimme.php on line 123

any idea ?

the Sandman 06-28-2004 08:25 PM

How can we incorporate this into the uShop AdminCP options - that would finish it off nicely!

rob_daemon 06-30-2004 06:01 AM

Quote:

Im gettin this error when I click okay and on the screen where I have to confirm the transaction I get this error

Fatal error: Call to undefined function: floatval() in /home/virtual/extremeinc/home/httpd/html/vb/admincp/gimme.php on line 123

any idea ?
Did you edit the file above like it said in the instructions? If so, what program did you use? And what version of PHP are you running?

Quote:

How can we incorporate this into the uShop AdminCP options - that would finish it off nicely!
I'll post the update with all of the uShop settings enabled in the file.

ChuanSE 07-04-2004 07:12 AM

Quote:

Originally Posted by ERROR
Fatal error: Call to undefined function: floatval() in /home/www/digitainment.org/www/community/admincp/gimme.php on line 123

edit what? i am group 6

rob_daemon 07-08-2004 06:16 PM

I have updated the file to work off of the uTT store settings.

ChuanSE, try re-uploading the file and see if that works. I'm not sure why that error is occurring.

the Sandman 07-08-2004 06:30 PM

Quote:

Originally Posted by rob_daemon
I have updated the file to work off of the uTT store settings.

I've uploaded gimme 1.1, but I don't see what the difference is from the previous version... Howzit work? :)

rob_daemon 07-08-2004 10:01 PM

Quote:

Originally Posted by the Sandman
I've uploaded gimme 1.1, but I don't see what the difference is from the previous version... Howzit work? :)

The hardcoded values of the points table are no longer there. You shouldn't notice any difference unless you change the uTT points settings for table names.

the Sandman 07-08-2004 10:52 PM

Ah, OK. Now, how can we access the Gimme page from the AdminCP without having to tye in the URL manually - in other words I'd like a link to it in the uTT Store Hack section.

rob_daemon 07-09-2004 02:15 AM

That isn't currently available, but you can do the following to add it in:

Find in ./admincp/index.php:

PHP Code:

    construct_nav_option("Add Action"'uttstoreadmin.php?do=add''<br />'); 

After add:

PHP Code:

    construct_nav_option("Gimme"'URL OF GIMME''<br />'); 


the Sandman 07-09-2004 02:38 AM

Quote:

Originally Posted by rob_daemon
That isn't currently available, but you can do the following to add it in:

Find in ./admincp/index.php:

PHP Code:

    construct_nav_option("Add Action"'uttstoreadmin.php?do=add''<br />'); 

After add:

PHP Code:

    construct_nav_option("Gimme"'URL OF GIMME''<br />'); 


Works great! Thanks, it really finishes off this add-on! :)

aranthorn 07-17-2004 03:35 AM

Naw-Ice! thx, makes rewarding people easy as pie

Battle_Ring 08-11-2004 01:26 PM

Easily Done, But You Should Make A Drop Down For Certain Member Groups Too, Like THe Pay Check...

mariannet 08-17-2004 08:15 PM

Quote:

Originally Posted by Battle_Ring
Easily Done, But You Should Make A Drop Down For Certain Member Groups Too, Like THe Pay Check...

That is just what I am looking for. In our old shop system I used Pay Check a lot to pay all my different moderators their montly "salary". It's no fun having to copy/paste all these names and they change a lot so lists are no solution.

PLEASE! A pay check version :)

y2krazy 08-29-2004 11:24 PM

/me clicks install!

rex_b 09-06-2004 06:53 PM

clicky

ThaEbilSlaya 09-21-2004 02:31 AM

i am having a lil trouble with this when i add a name to the input and add the number of points to give when i click to add them i get a database error


Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM user WHERE username = 'ThaEbilSlaya'
mysql error: Table 'twh1980_vb.user' doesn't exist

mysql error number: 1146

can anyone help with how to fix this

scriptjunkie 10-02-2004 01:21 PM

Click...Click...Click!

neila 12-09-2004 08:40 PM

Quote:

Originally Posted by ThaEbilSlaya
i am having a lil trouble with this when i add a name to the input and add the number of points to give when i click to add them i get a database error


Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM user WHERE username = 'ThaEbilSlaya'
mysql error: Table 'twh1980_vb.user' doesn't exist

mysql error number: 1146

can anyone help with how to fix this

I'm having an almost identical error. Can anyone help?


Code:

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE user SET uttpoints=uttpoints+100 WHERE userid IN('60')
mysql error: Table 'flyguyc_forums.user' doesn't exist

mysql error number: 1146

Date: Thursday 09th of December 2004 05:46:08 PM


Celtic_Mad 12-14-2004 06:14 AM

Is there any way I could get this to work with vBookie to give vCash if I'm not using uShop?

bahawolf 12-14-2004 08:47 PM

Is there a way to give every member points for say, Christmas?

trackpads 12-24-2004 04:59 PM

A usergroup addition would be awesome! Nice work!

docvader 12-24-2004 08:55 PM

Quote:

Originally Posted by trackpads
A usergroup addition would be awesome! Nice work!

Yes, that would be the way to go. Typing in all those names is a bit time consuming, LOL.

rob_daemon 12-25-2004 03:09 AM

Alright, the usergroup select is now ready :).

Happy holidays!

docvader 12-25-2004 03:21 AM

Awesome. Works great. Just in time to give out cash.

Thanks,
rich

Kalomax 01-01-2005 03:34 PM

sometime i get this error

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM user WHERE username = 'nhoclx'
mysql error: Table 'ldpit_dtlxit.user' doesn't exist

mysql error number: 1146

Date: Sunday 02nd of January 2005 12:29:55 AM
Script: http://x.x.x/forums/admincp/gimme.php
Referer: http://x.x.x/forums/admincp/gimme.php
Username: admin
IP Address: x.x.x.x

I'm in group 6 and my forum uses uShop 0.95b


And when it runs, i can add point for user group, but not for some username i put. I got "No users were requested."

rob_daemon 01-01-2005 11:59 PM

Quote:

Originally Posted by Kalomax
sometime i get this error

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM user WHERE username = 'nhoclx'
mysql error: Table 'ldpit_dtlxit.user' doesn't exist

mysql error number: 1146

Date: Sunday 02nd of January 2005 12:29:55 AM
Script: http://x.x.x/forums/admincp/gimme.php
Referer: http://x.x.x/forums/admincp/gimme.php
Username: admin
IP Address: x.x.x.x

I'm in group 6 and my forum uses uShop 0.95b


And when it runs, i can add point for user group, but not for some username i put. I got "No users were requested."

I'm not sure what would be causing that. It looks like an issue with your table prefix.

Kalomax 01-03-2005 07:35 AM

Now i can add points for user group, but i cant add points for only one or more.
Let me take a look on my data table prefix

Thank a lot,

docvader 01-07-2005 07:23 AM

I just discovered that I have the same problem. Can't give points to individuals, only to user groups.

My girlfriend is pissed at me now....

:)

Stifler 01-30-2005 01:49 AM

Quote:

Originally Posted by docvader
I just discovered that I have the same problem. Can't give points to individuals, only to user groups.

I'm also having the same problem...

Can anyone make a fix for this .95b and vb 3.0.6
please? I'll pay ya $5 over paypal if you can make a fix

rob_daemon 01-30-2005 06:32 AM

Resolved. Upgrade to 1.2.1 for the fix.

Stifler 01-30-2005 06:35 AM

thankyou! YOU ROCK~!

DeMiNe0 03-15-2005 01:07 AM

i get Fatal error: Call to a member function on a non-object in /home/digtoxn/public_html/includes/config.php on line 216 every time i try to access gimmie.php

DeMiNe0 03-15-2005 01:15 AM

nm, i didn't notice the chdir in the code.

jcr 03-24-2005 06:40 PM

]
Installed, and works like a charm!

I would really like to see a Cron on this one also! A cron where a defined usergroup gets x number of points each week / month and so on.

mclark2112 04-06-2005 04:57 PM

Anyone interested in modding the gimme.php code to work with vBookie, or does it already exist.


All times are GMT. The time now is 03:51 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.01513 seconds
  • Memory Usage 1,826KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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