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)

spaceman33 05-05-2007 06:17 PM

Quote:

Originally Posted by Black Tiger (Post 1241983)
@Spaceman33

I thing there is missing the amount here. Set money=money+.... should this not be money+5 or something like that?
However I don't know what's causing this so hopefully Blaine0002 can help you here.

That's what I noticed. I presume it should be -xx points, not a blank. I saw someone else with a similar problem but that was because they renamed their points system. That's not the problem here so hopefully someone has a fix :)

Scathmere 05-05-2007 07:15 PM

Quote:

Originally Posted by deezelpope (Post 1241818)
Nope...my members either send PMs or reputation to notify the recipient.

Well I'm wondering where there is a log. It says on the first page there is. =/

deezelpope 05-05-2007 07:31 PM

Ok, I found it. When you donate to a member, and afterward, if you go to their postbit/profile page, and click on where it says Donate, the log will come up. Even if you go to your own postbit/profile page, and click on your "Donate" the log will come up.

kylek 05-05-2007 08:23 PM

Quote:

Originally Posted by Black Tiger (Post 1241893)
Yes that is correct. The way to do this I've found in this thread too. It's just 1 page before posting #392, depending on how you have the pages set.

I Just took over the example and that worked it's in post #390.


Cool. Which code did you put in there to have Icash recognize it's the "new window" version of the game and not the normal version?


Charge game price in new window:

Create a new plugin called ibproarcade_play_game_popup

Use Blaine0002 code, just change the amount and your_error message to what you did for the ibproarcade_play_game plugin @ post 392

$amount = '1';

if ((
$vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) {
eval(
standard_error(fetch_error('your_error')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");

Scathmere 05-05-2007 09:16 PM

Quote:

Originally Posted by deezelpope (Post 1242021)
Ok, I found it. When you donate to a member, and afterward, if you go to their postbit/profile page, and click on where it says Donate, the log will come up. Even if you go to your own postbit/profile page, and click on your "Donate" the log will come up.

The only problem is, it only shows the last one. Not a history. ><

deezelpope 05-05-2007 09:22 PM

Hm...yeah, I guess you're right. We don't usually donate cash/points...just gifts. Sorry I couldn't help more.

Black Tiger 05-05-2007 11:20 PM

Quote:

Charge game price in new window:

Create a new plugin called ibproarcade_play_game_popup

Use Blaine0002 code, just change the amount and your_error message to what you did for the ibproarcade_play_game plugin @ post 392
Hmmz... i don't understand yet. Which hook you use then? The new-game hook?

The only thing which I see different then is the amount and the error message. Must the amount be different?

But where is the difference in code that points to a new window game in stead of the normal game?
There should be a lign somewhere that points to the different way of calling the game, isn't there?

In any case thanks very much so far for helping me with this!

kylek 05-05-2007 11:38 PM

Just do the same thing you did to create the first plugin except this plugin use the ibproarcade_play_game_popup hook when adding a new plugin.

The one I made;
Product - ibank (dont think it matters but I put them under IBank)
Hook location - ibproarcade_play_game_popup
title - new window (just my name for it)
Code:
$amount = '1';

if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) {
eval(standard_error(fetch_error('stars')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");

The only thing I changed from the original code from post 392 is your_error to stars as that is the name of the phrase I used to say you do not have enough stars to play a game.

If a members clicks on play a game the other one from post 392 charges the game cost, if they click on play game in new window this one charges them the cost of the game.

SilverVice 05-06-2007 01:14 AM

Quote:

$amount = '1';
Is it possible to charge 0.25 cent?

I've try:
Quote:

$amount = '0.25';
and
Quote:

$amount = '.25';
and it's not working, any idea?

Black Tiger 05-06-2007 02:02 PM

Kylek:
Quote:

Hook location - ibproarcade_play_game_popup
That was the one I was looking for, thanks a million!!!

@Silvervice:
I don't think it will help, but did you try 0,25?
However I'm afraid it only works with full numbers.


All times are GMT. The time now is 07:39 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.02476 seconds
  • Memory Usage 1,751KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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