vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - ICash, Simple, stand alone point system. (https://vborg.vbsupport.ru/showthread.php?t=119086)

Blaine0002 12-08-2006 06:47 PM

Quote:

Originally Posted by Kat-Sybermoms (Post 1134612)
OK, with people being able to steal from each other, I want to prevent the balance from going into the negative. How do I do that? I read the thread, and noticed it was asked, but I want to allow my members to negatively donate, but don't want their balance to go below zero. So if one member has 400 points, I don't want someone to be able to "steal" 500 from them and put that person at -100 points.

where this was
PHP Code:

if ($amount || $amount == 0) {
      eval(
standard_error(fetch_error('error_icash_sendmsomthing')));
      } 

Make a query that calls the member who you are stealing/donating from
lets call it $theiramount
replace it with somthing like
PHP Code:

if ($theirammount $amount || $theiramount $amount 0) {
      eval(
standard_error(fetch_error('error_icash_errorhere')));
      } 

Sorry, typed this up quickly, will type up somthing more useful when i get home. maybe somone will beat me to it :P

mcyates 12-08-2006 07:01 PM

Its not working with vBookie, i have changed the "money row" to vbookie_cash.

I have 20 points but its not letting me bet?

Kat-Sybermoms 12-08-2006 07:50 PM

Thank you Blaine!!!

Blaine0002 12-08-2006 09:33 PM

hmm, as long as vbookie is working correctly, it should work, the only thing it shares is the same dbfield.

armstrong 12-11-2006 01:45 AM

Hello Blaine, nice to have you back. :)

I got logging to work with donations, but couldn't figure out how to do this for posts and referrals. I wanted to have one-line log entries that stored the following:
- for posts: timestamp, username, post number (I couldn't figure out how to reference this variable in my mod of your code), points given
- for referrals: timestamp, username, referral username, points given

I need this to be able to detect points fraud, since point on my forum can be redeemed for cash and stuff. Also, did you get to look into the double-credit bug? https://vborg.vbsupport.ru/showpost....&postcount=131

Thanks for your help.

dartho 12-11-2006 10:09 AM

Hi Armstrong - I have attached an edited version of Blains XML using the code from your original logging post - see attached (search for $logentry = date('Ymd') in the XML to see the logging lines - you can edit the text to suit your own logs.

Just import this new XML and overwrite teh existing - make sure you have a backup etc and know what your current settings etc are!

This should add to the log file for all iCash earnings

chkdgate 12-12-2006 04:03 AM

I'm trying to install Cloudrunner's paypal donation hack 3.5.0 but it'll require for me to overwrite ICash's donate.php file on my forum's root folder. I cannot let go of ICash so is there any way around this?

armstrong 12-12-2006 10:28 AM

Quote:

Originally Posted by dartho (Post 1136243)
Hi Armstrong - I have attached an edited version of Blains XML using the code from your original logging post - see attached (search for $logentry = date('Ymd') in the XML to see the logging lines - you can edit the text to suit your own logs.

Just import this new XML and overwrite teh existing - make sure you have a backup etc and know what your current settings etc are!

This should add to the log file for all iCash earnings

Thanks dartho, this will indeed help. But looking over your code, it still doesn't log "post number" or "referral username". I'm not familiar enough with vb to know how to get this data, so I'm kinda stuck at this point.

dartho 12-12-2006 10:33 AM

@armstrong - The referal one is easy, search for
PHP Code:

$logentry date('Ymd') . ' ' strftime('%T') . ' ' $vbulletin->options['ppreferp'] . ' Referal Points Given To User ' $vbulletin->GPC['referrername']; 

and change to
PHP Code:

$logentry date('Ymd') . ' ' strftime('%T') . ' ' $vbulletin->options['ppreferp'] . ' Referal Points Given To User ' $vbulletin->GPC['referrername'] . ' for refering ' $vbulletin->userinfo['userid']; 

not sure about post number/ thread id...

@chkdgate - simply rename the donate.php to something like - cashdonate.php and reapply the postbit edit as per instructions using the new name rather than donate.php

chkdgate 12-13-2006 04:57 AM

Quote:

Originally Posted by chkdgate (Post 1136833)
I'm trying to install Cloudrunner's paypal donation hack 3.5.0 but it'll require for me to overwrite ICash's donate.php file on my forum's root folder. I cannot let go of ICash so is there any way around this?

Anyone have any news on this?

Quote:

Originally Posted by dartho (Post 1136961)
@chkdgate - simply rename the donate.php to something like - cashdonate.php and reapply the postbit edit as per instructions using the new name rather than donate.php

Sorry I didn't see your post at me. Which donate.php file are you referring to, ICash's?


All times are GMT. The time now is 06:20 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.02146 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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