Thread: Major Additions - vBCredits - Ultimate Points System
View Single Post
  #312  
Old 06-07-2008, 06:07 PM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rknight111 View Post
Im thinking about adding this feature to my board, the only thing im wondering is my members are quite compedative and have built there casino $$ up quite a bit, now what would happen to that when I add this, is there a converter for that, or a process, or is this not compadable with that?

Thanks,
RON
The casino can be configured to work with vbcredits. I forget if the hack had its own internal points system or not, but if so I will make something to convert from it and then you select to have it use credits.

Quote:
Originally Posted by Sarcoth View Post
Thanks for the mod, I am using this with the ibProArcade.

I added a scheduled task to run every hour but am getting more out of it than I'd like. My goal is to increase the jackpot for every arcade game by 5 every hour. Here's my code.

Code:
$Jackpot = $vbulletin->db->query("SELECT * FROM vBull_games_list");
while($row = $vbulletin->db->fetch_array($Jackpot)) {
    $vbulletin->db->query_write("update vBull_games_list set jackpot = jackpot + '5'");
}
Rather than going up by 5, it is increasing by 40. Since I only have 8 games installed right now, it appears to by multiplying 5 x 8; is it running 8 times for each game?

What change should I make to have it only run once per game? Any idea?

Thank you for your time.

EDITED:

Well, this appears to have fixed my problem; I think there is an easier way. I remember doing an update similiar to this once upon a time, but I can't remember how.

Code:
$Game = 0;
Code:
$Jackpot = $vbulletin->db->query("SELECT * FROM vBull_games_list");
while($row = $vbulletin->db->fetch_array($Jackpot)) {
    $Game = $Game + 1;
    $vbulletin->db->query_write("UPDATE vBull_games_list SET jackpot = jackpot + '1' WHERE gid = '$Game' ");
}
You could just do this:

PHP Code:
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "games_list SET jackpot = jackpot + 5"); 
and use whatever number you want instead of 5 to increase every jackpot by.

Quote:
Originally Posted by PGAmerica View Post
I installed this mod and love it. However, at the bottom of every page is a piece of text that says "vBCredits v1.4 Copyright ?2007 - 2008, PixelFX Studios". This is nopt a problem. What is a problem is that when the links are clicked, it goes to these sites and leaves mine.

What I want to do is make the links open a new browser window. I cannot seem to find in the templates or phrases where these links are set. Can somebody please tell me how to make a modification to this so I can just add "target='_blank'" to these links?
This footer cannot be changed from its current form; I can only move it around for you. Branding free is available however.

Quote:
Originally Posted by jojo77 View Post
I found how to turn of loans but now I have 2 new questions:

1) Is negative awards working yet? Last time I asked Dark said it was turned off for the last release.

2) Where is the log of all member transactions? I can't seem to find that anywhere.

Thanks for the help.
1) all negation awards are working except for post/thread awards. Those do nothing.

2) You can use the moderate donations/award link in the acp to see all of that, or if you have the usergroup permission to view all user's transaction logs, a Check link will show up next to users' account amounts to take you to their specific log

Quote:
Originally Posted by Scarface Claw View Post
The release notes mentions that VBC can be used in conjunction with other mods, does anyone know of such mods?
On my site is a list of some addons that I have to integrate with other popular hacks. There are more that I generally dont track which you can just use a setting within that hack to make it use credits (for example the casino)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01227 seconds
  • Memory Usage 1,801KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete