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)

mac27 10-05-2006 05:46 PM

Yeah thanks. I have tried that already. I will go back and mess with it some more tonight. I got close but it didn't work.

It would be cool to have a page that showed the top 10 users with points. :)

Black Tiger 10-05-2006 10:11 PM

Yep, well, like I said, I'm not good enough for that, but hopefully someone else can give you the solving tip.

gamesmastervide 10-07-2006 09:15 AM

multiple currencys would be a great feature and ability to swap one for another would be even better...

Vric 10-20-2006 03:45 PM

Quote:

Originally Posted by Black Tiger
Problem solved. The installation notes missed 1 line.
You have also to put the above text in the postbit_legacy template, that's not in the instructions but for 3.6 gold it works now.

Thanks. I had the same problem.

Working fine now. Simple and effective.

Vric 10-21-2006 03:04 PM

Question:

Is it possible to show the points only by the member itself and Moderators ? (Not everyone)

rebonuk 10-21-2006 07:07 PM

Does ishop work with VBux? What other cash/points mods does this work with?

chkdgate 10-25-2006 01:33 AM

Any news on an ibproarcade integration?

freecodevn 10-26-2006 08:25 AM

Hi blaine and Armstrong.
This hack very cool. But have some problem.This hack is not log any donation. I want log all of donation bethween members and give for them (at them donation place) histories of all donate. How can i do that?

Quote:

Originally Posted by armstrong
Hi blaine. I modified your xml to log all points earned. For points earned for posting a response, I added this part:

Code:

$nplogentry = date('Ymd') . ' ' . strftime('%T') . ' response ' . $vbulletin->options['ppr'] . ' ' . $vbulletin->options['icashf'] . ' ' . $vbulletin->userinfo['username'];
$npearnlog = fopen('../../noypisoearnlog.txt','a') or die("can't open cashlog: $php_errormsg");
fwrite($npearnlog, $nplogentry . "\r\n");
fflush($npearnlog);
fclose($npearnlog) or die ($php_errormsg);

Now, I would also like to log the actual post number. What would the variable look like for this?


engedi05 11-05-2006 01:04 AM

Where is Blaine?

chkdgate 11-05-2006 03:49 AM

Quote:

Originally Posted by engedi05
Where is Blaine?

Question of the thread. Life happens. Plus, he's not getting paid for this.

chikkoo 11-05-2006 05:25 AM

I wanted to show the icash information in MEMBERINFO template.

I try to cut & paste the same information from Postbit, it's not showing the icash amount.

Anyone knows how to do it?

davidw 11-12-2006 01:28 PM

If you want to show decimal places as in real currency, you need to make one alteration. Remember to do a backup of your table before doing this. I will not be held responsible for any problems. This works on my forums just fine.

Go in to phpmyadmin or however you alter your database and run this query
[sql]alter table " . TABLE_PREFIX . "user modify money decimal(15,2);[/sql]

If you are running iBank, you will need to run this query as well
[sql]alter table " . TABLE_PREFIX . "user modify bankmoney decimal(15,2);[/sql]

If you haven't installed this mod yet, this change to the installer should work

Find

PHP Code:

<installcode><![CDATA[
$db->query_write("ALTER TABLE " TABLE_PREFIX "user ADD COLUMN money int(15) DEFAULT '0' NOT NULL");
    ]]></
installcode

Replace with

PHP Code:

<installcode><![CDATA[
$db->query_write("ALTER TABLE " TABLE_PREFIX "user ADD COLUMN money decimal(15,2) DEFAULT '0' NOT NULL");
    ]]></
installcode

:D

Blaine0002 11-15-2006 10:09 PM

Thx christian for helping, Marching band and finals are over hopefully I will be able to work on coding once again soon, though rebuilding my site is a priority (that means auction hack soon!)

davidw 11-15-2006 10:38 PM

No problem - there's a lot of stuff I'd like to see added, but as I add them (if I have time - and if you haven't already) I'll post them here. Right now, however, my concern is more focused on merging two sites together :P

Blaine0002 11-15-2006 11:25 PM

go right ahead, my mods are open to editing by anyone.

dartho 11-16-2006 12:33 PM

Quote:

Originally Posted by Blaine0002
(that means auction hack soon!)

Auction Hack? I've been toying with attempting to make a single bid auction hack, the format is: as a seller, you put in a start price and a reserve price, every hour (or x hours), the start price drops by y dollars. First bid wins the item. If no bids when it hits the reserve, the auction ends with no sale. No snipes, no tricks, no fake bids to up the price.

thetradingforum 11-17-2006 07:57 PM

Is there an addon to this hack which gives users points for posts made by their referrals.

I also need a page which displays the users with most points.

Can anyone help?....needed desperately!

Blaine0002 11-21-2006 06:50 PM

Quote:

Originally Posted by dartho (Post 1118561)
Auction Hack? I've been toying with attempting to make a single bid auction hack, the format is: as a seller, you put in a start price and a reserve price, every hour (or x hours), the start price drops by y dollars. First bid wins the item. If no bids when it hits the reserve, the auction ends with no sale. No snipes, no tricks, no fake bids to up the price.

I see what you mean with this, but i believe if there are not many users on the website, the seller can get screwed over on this. If we can get in contact maybe we could join forces on this.

thetradingforum 11-26-2006 11:00 AM

Quote:

Originally Posted by thetradingforum (Post 1119561)
Is there an addon to this hack which gives users points for posts made by their referrals.

I also need a page which displays the users with most points.

Can anyone help?....needed desperately!


I guess not then :(

dartho 11-26-2006 11:48 AM

The second option shouldn't be too hard to do with Logicians Web Templates

I've attached a template for use with Logicians Web Templates which should work with iCash default installation, just import it in to webtemplates

This should show the 10 richest and 10 poorest members of you site and should be very easy to change to suit you own requirements

thetradingforum 11-26-2006 07:29 PM

thank you so much dartho! I'll give it a try tomorrow.

Kat-Sybermoms 12-07-2006 06:00 PM

I'm getting ready to install this, and was wondering if there was an add-on or something that allowed members to steal points/money from other members?

I'm also looking for a banking system for the points, that would be IBank, correct? I'll search for it as well, but if someone has a handy-dandy link I would be eternally grateful!!! :)

davidw 12-07-2006 06:02 PM

You mean, this ibank? https://vborg.vbsupport.ru/showthread.php?t=122729

Kat-Sybermoms 12-07-2006 06:20 PM

Quote:

Originally Posted by christianb (Post 1134007)

That's it!

Thanks - Love ya!!!!

Kat-Sybermoms 12-07-2006 07:54 PM

ICash all installed... IBank all installed.

Both working great! My members are very happy right now to have their points again.

Off to look at the store hack I saw listed when I downloaded the IBank!

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

My members like to be able to steal points from each other.

I figured if they can put in a negative number, they can effectively steal points. But the hack doesn't allow a negative number to be "donated."

Is this an easy fix in the code to allow a negative donation by members and not just admin?

dartho 12-07-2006 11:08 PM

I think it should be very easy to remove the less than 0 checking and thus allow negative donations. Try editing the donate.php file and search for this:
PHP Code:

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

and place a double slash ( // )at the start of each of those lines or make a backup of the file first, and then delete those lines.

Just tested it - works fine.

Kat-Sybermoms 12-08-2006 02:38 PM

dartho - That totally worked by just deleting that line.

THANK YOU!!!!!

Kat-Sybermoms 12-08-2006 02:41 PM

Last question... promise :lol

When people donate points, are those points going from their account to the other person's account?

******** NEVERMIND!! Figured that one out.*********

Kat-Sybermoms 12-08-2006 03:45 PM

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.

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 12:40 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.01689 seconds
  • Memory Usage 1,852KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (11)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
  • (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