vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - vBCredits - Ultimate Points System (https://vborg.vbsupport.ru/showthread.php?t=172399)

Sarcoth 05-31-2008 09:12 PM

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;
$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' ");
}


PGAmerica 06-02-2008 09:14 PM

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?

PGAmerica 06-03-2008 04:33 PM

Anybody? Anybody?

jojo77 06-04-2008 07:50 PM

How do you turn off loan all together?

MorrisMcD 06-04-2008 08:03 PM

I still have the old version of vbbux/vbplaza on my board.. I know this is a noobish question for many of you.. But there has to be a way to simply copy over the amount the current users have in the vbbux and vbbank fields in the user table to the fields used by vbcredits.. Could someone kindly help me out with a query to do so?

Gottcha 06-05-2008 03:17 AM

<a href="http://www.vbcredits.com/forum/showthread.php?t=24" target="_blank">http://www.vbcredits.com/forum/showthread.php?t=24</a>

jojo77 06-05-2008 07:17 PM

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.

Scarface Claw 06-05-2008 08:53 PM

The release notes mentions that VBC can be used in conjunction with other mods, does anyone know of such mods?

OsideRida06 06-06-2008 07:40 AM

Installed!

Darkwaltz4 06-07-2008 05:58 PM

Quote:

Originally Posted by MSheraz86 (Post 1532415)
Hey Dark, i've just come across a small problem. I've set all of the awards to 0 as it turns out that members who make new threads get 2 points and if they reply to threads then they get 1 point without me allocating such points in the first place :(

I've been spending the past 2 hours trying to see how they're getting 2 points for new thread using a secondary account and can't seem to figure it out.

I want to offer them 5 points for new threads so is it worth me setting that to 3 (3 + the random 2 making it 5) and 1 point for posting replies so leaving that option to 0 cause of the random 1 point out of the blue for posting replies? As this might be a bug with the current version?

If it's not a bug then could you please help me solve this little problem? :D

Thanks

(P.S. It's 3:35am lol so my apologies if the above doesn't make 100% sense :p)

Did you make a forum override that set it as not 0? If this is still a problem PM me an admin login with usergroup permissions and I will check your settings.

Quote:

Originally Posted by massizero (Post 1533002)
k, thank you, now I get how it works, but for some reason I still cannot see the credits.gif image. I checked all the templates edit too (as in the install txt file..) but nothing, this image doesn't want to appear..
Meanwhile I changed in the template the condition to show the credits image, and I used the same as the "infractions" one. So now the credits.gif image shows up to the admin (because the infractions one is active) and the link related (http://www.myspace.com/forum/credits.php?p=xxxx) actually works fine.
So the problem should really be in the "if" condition.
If you have any other suggestion where the problem could be in the original If condition I'd really appreciate it.

What version of PHP are you using?

Quote:

Originally Posted by thompson (Post 1533036)
i am waiting for a german language file. anyone here who have one ?

The german translation can be found on my site

Quote:

Originally Posted by leylandfor (Post 1533937)
can someone please inform me how i configure vbcredits so that it doesnt deduct credits when people are not active on the forum

In your global award settings make sure that Activity is NOT checked as an Applicable Negtion award

Quote:

Originally Posted by sbarbz (Post 1534760)
i add the memberinfo temp and this no to be displayed ..
what i to do ?

I'm sorry, I do not understand your problem?


All times are GMT. The time now is 02:01 PM.

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.01627 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (5)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