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)

Milad 07-15-2007 07:22 PM

If I install it, will it calculate the credits based on previous posts threads etc?

Darkwaltz4 07-15-2007 07:23 PM

Yes, use the tool at the bottom of the update counters screen.

cheat-master30 07-15-2007 07:24 PM

Quote:

Originally Posted by Milad (Post 1292077)
If I install it, will it calculate the credits based on previous posts threads etc?

You can update it to do that in the Admin CP I think. Otherwise my credits total on my forum without enhancement would not currently be 186,971 when I just implemented it today.

moonray 07-16-2007 12:01 AM

Hi,
Everything is working great and I love this hack. I have even disabled the built in reputation system in favor of this.

However, after upgrading to v1.2, I get this error when I delete a thread:
Code:

Database error in vBulletin 3.6.7:

Invalid SQL:

                              UPDATE vb_user SET
                                        credits = CASE  WHEN userid IN (0,1) THEN credits + -2.285
, posts = CASE  WHEN userid IN (0,1) AND posts > 1 THEN posts - 1
 ELSE 0 END
                              WHERE userid IN (0,1);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' posts = CASE  WHEN userid IN (0,1) AND posts > 1 THEN posts - 1
 ELSE 0 END
                      ' at line 3
Error Number : 1064

I have only changed the credits awarded for each action (+2 for thread, +0.03 per character of post and - for thread deletion). Even with the default credits value, when a thread is deleted, the author gets to keep the 'credits per character', or am I mistaken?

That may be reason for this, but I appreciate any help with this.

Thank you!

Darkwaltz4 07-16-2007 12:03 AM

no, credits per character is also taken into account, but i will check whats up with that error :)

yingzhou 07-16-2007 12:09 AM

I have this error when I delete a thread:

Database error in vBulletin 3.6.7:

Invalid SQL:

UPDATE user SET
credits = CASE WHEN userid IN (0,1) THEN credits + -6.8
WHEN userid IN (0,3) THEN credits + -16.5
, posts = CASE WHEN userid IN (0,1,3) AND posts > 1 THEN posts - 1
ELSE 0 END
WHERE userid IN (0,1,3);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' posts = CASE WHEN userid IN (0,1,3) AND posts > 1 THEN posts - 1
ELSE 0 END
' at line 4
Error Number : 1064
Date : Sunday, July 15th 2007 @ 06:07:37 PM
Script : http://pltho.net/forum/inlinemod.php...46,47,43,45,44
Referrer : http://pltho.net/forum/inlinemod.php?forumid=31
IP Address : 61.163.92.190
Username : yingzhou
Classname : vb_database

Darkwaltz4 07-16-2007 12:27 AM

Everyone using 1.2, please make this set of edits:

in functions_databuild.php, find all of the following (appears three times):

//obsolete

This will fix the deletion queries, sorry about that.
Updated the first post and the download.

Also, yes when posts/threads get deleted it detracts the character credit as well as applying the Deletion Post/Thread credit (typically negative). Also, when undeleting the perchar credit is returned and the posting credit is applied again.

aycan555 07-16-2007 02:00 AM

Thank you verry verry much for this mod i was realy need this mod :)
Please could you integrate this with the vissionscripts hidemod? when users recieve thanks gets credits? also can you do it like this:
[credit=20]hiden content here [/credit]
to view the content users need to pay 20 credit? to pay the credit there will be link like thank you buttons says: Sen 20 credit to user...

Can we do like this?

Thank you verrry much... I was really looking this mod for months...

Darkwaltz4 07-16-2007 02:05 AM

glad you like it :)

good news:
version 1.3 is under way, and with it - plugin hooks :)

whats that mean? addons for this and other hacks, such as infusing credits with scripts that dont normally use credits, such as the hidemod above.

if you are just getting here and you have NOT patched your 1.2, please do the edit on this post. Please note that if you just downloaded the hack within 2 hours ago, you dont need to patch anything, its already been fixed.

EDIT:
I have created a new converter for vbbux to vbcredits! It is located in the complementary/converters/ folder. Upload vbbuxplaza_to_vbcredits.php to your admincp and run it. It requires the newest versions of both hacks and allows the option to use both the onhand and bank credits.

I am looking at converters for other points systems as well as integratable hacks (I am looking at the arcade systems right now) which should be out before 1.3

yingzhou 07-16-2007 10:56 AM

Thank you for the fix. My forum is on the way. Thanks.

I think we should have some option in the ACP like: Admin donate to someone, Reset all the credit, the Bank ...


All times are GMT. The time now is 01:58 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.02140 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
  • (1)bbcode_code_printable
  • (1)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