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 - vBCredits - Ultimate Points System (https://vborg.vbsupport.ru/showthread.php?t=151924)

Chase 07-19-2007 12:38 AM

Darkwaltz...

You're getting me excited with this points system! I have been waiting for something like this!

-- Can you maybe give us an idea about how long it will be until you release the shop? I don't want to install iShop then have to uninstall it.

Chase 07-19-2007 12:39 AM

And by the way...

Keep up the GREAT work!

Mum 07-19-2007 01:15 AM

I'm really wanting integration with the ipbarcade, any idea on time frame at all? Are we talking weeks or months?

Darkwaltz4 07-19-2007 01:16 AM

Hopefully days or less, the issue with ibproarcade is that most of it unlocks when you use vbbux/plaza, NOT anything else............so would require editing :-/

jasculs 07-19-2007 01:51 AM

Darkwaltz4,

The first part of the Inferno Quiz integration calls for:
Code:

File: quiz.php
================================
FIND:
--------------------------------
                $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
--------------------------------
REPLACE WITH:
--------------------------------
                if ($vbulletin->userinfo['credits'] < $Quiz['credit_cost'])
                {
                        eval(standard_error(fetch_error('credits_quiz_notenough', vb_number_format($Quiz['credit_cost'], $vbulletin->options['credits_decimals']), $vbphrase['credits'])));
                }
               
                $db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits - " . $Quiz['credit_cost'] . " WHERE userid = " . $vbulletin->userinfo['userid']);

The code I need to find in quiz.php shows up twice. Should I replace it twice?

Darkwaltz4 07-19-2007 01:56 AM

I just checked, it only appears once for me in the quiz.php file. I used the version from the thread (2.2).

Also, good thing you showed me that, the command should be ADD BELOW NOT REPLACE WITH....so be sure to just add. updating the attachment

jasculs 07-19-2007 02:13 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1295246)
I just checked, it only appears once for me in the quiz.php file. I used the version from the thread (2.2).

Also, good thing you showed me that, the command should be ADD BELOW NOT REPLACE WITH....so be sure to just add. updating the attachment

That's weired because when I do a (Control F) to find that code it finds it twice.

In admin_quiz.php I also find this code twice using the find function in notepad:

Code:

$DB->query("delete from ".TABLE_PREFIX."quiz_submissions where sid='{$sub['sid']}'");

oldfan 07-19-2007 02:17 AM

Sounds great, thanks

PixelFx 07-19-2007 02:24 AM

Quote:

Originally Posted by jasculs (Post 1295259)
That's weired because when I do a (Control F) to find that code it finds it twice.

In admin_quiz.php I also find this code twice using the find function in notepad:

Code:

$DB->query("delete from ".TABLE_PREFIX."quiz_submissions where sid='{$sub['sid']}'");

thats cause he's doing Dream Weaver cs3 .. which allows for full block search and replace vs line by line editing, which most of us are used to...

;)

Both of us haven't slept much the last few days :P

jasculs 07-19-2007 02:32 AM

Well...I just added the code below each line I found anyway and it seems to be working just fine...Thanks again


All times are GMT. The time now is 11:44 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.02234 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (2)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