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)

christicehurst 03-09-2008 03:32 PM

What use would this be for a writing forum?

Vinyljunky 03-09-2008 04:10 PM

I currently use iCash but I think I'll convert this week.

Darkwaltz4 03-09-2008 04:12 PM

people having trouble with the $validfields thing, try this:

in the plugin manager, replace the entire code contents of the
vBCredits - Define User DM Fields

with the following
PHP Code:

$this->validfields['credits'] = array(TYPE_NUMREQ_NO);
$this->validfields['credits_canearn'] = array(TYPE_BOOLREQ_NO);
$this->validfields['credits_canspend'] = array(TYPE_BOOLREQ_NO);
$this->validfields['credits_numrefs'] = array(TYPE_UINTREQ_NO);
$this->validfields['credits_saved'] = array(TYPE_NUMREQ_NO);
$this->validfields['credits_score'] = array(TYPE_INTREQ_NO);
$this->validfields['credits_interest'] = array(TYPE_UNIXTIMEREQ_NO); 

as for using this in a writing forum, you can make heavy use of the postsize award, so that users earn more for writing more, not necessarily often :-p but depends what you want to award them with

also, anyone interested in the changelog between 1.4rc1 and 1.4rc2, its been posted here
http://www.vbcredits.com/forum/showthread.php?t=1177

Droptop 03-09-2008 04:23 PM

Thanks for the fast reply Darkwaltz4. :) That new code seems to have fixed the problem for me. :up:

Doctor Death 03-09-2008 08:10 PM

Installed the update and now forums are inaccessible.

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE vywhbabh_user SET
posts = 6268,
credits = 965639.4,
usergroupid = 6,
credits_saved = 535612.5,
credits_score = 0,
credits_canspend = 1,
credits_interest = 1205096994,
usertitle = '-=SOG=- Admin/Owner',
customtitle = 1
WHERE userid = 4;

MySQL Error : Unknown column 'credits_interest' in 'field list'
Error Number : 1054
Date : Sunday, March 9th 2008 @ 05:09:54 PM
Script : http://www.ddsog.com/forums/
Referrer : http://www.ddsog.com/header.swf
IP Address : 70.161.71.189
Username : Doctor Death
Classname : vb_database
Any assistance in getting my forums functional again would be appreciated. Have run flawlessly for years until this.

Darkwaltz4 03-09-2008 10:16 PM

people having trouble with that database error:
you should NOT be running any forum files in your browser between uploading the new files and importing the product file.

if you did hit that, you should disable the old vbcredits prior to upgrade

if you cant access your acp because of the error, insert define('DISABLE_HOOKS', true); into your config.php file. remove it after upgrading

but again - i stress DONT LOAD ANY FORUM FILES BETWEEN UPLOADING NEW FILES AND IMPORTING THE PRODUCT. avoids that problem altogether :D

njoker555 03-10-2008 11:12 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1461056)
people having trouble with that database error:
you should NOT be running any forum files in your browser between uploading the new files and importing the product file.

if you did hit that, you should disable the old vbcredits prior to upgrade

if you cant access your acp because of the error, insert define('DISABLE_HOOKS', true); into your config.php file. remove it after upgrading

but again - i stress DONT LOAD ANY FORUM FILES BETWEEN UPLOADING NEW FILES AND IMPORTING THE PRODUCT. avoids that problem altogether :D

what do you mean by "forum files"? - isn't that running the forum ? lol, would shutting down the forum help? i plan to upgrade in a few days after my midterms are done

Darkwaltz4 03-10-2008 04:46 PM

forum files as in, non-admin control panel.
how did i know someone would ask that?? >.<

shutting down helps a lot, because then nobody else will trigger the error in their normal browsing. this is generally standard procedure when installing something really...

njoker555 03-10-2008 06:14 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1461625)
forum files as in, non-admin control panel.
how did i know someone would ask that?? >.<

shutting down helps a lot, because then nobody else will trigger the error in their normal browsing. this is generally standard procedure when installing something really...

yea, thats usually what i do with huge updates like this - my forum is due to move datacenters this week so it'll be good timing, it'll be locked down for the move and by the time DNS updates fully i'll have it installed :D

thanks

Darkwaltz4 03-11-2008 07:04 AM

vBCredits 1.4rc2 has been updated to rev1.

This minor release only addresses the 2 common upgrade problems people have been having.
Unless you are getting a database error during upgrade or have errors regarding $validfields, you do not need to apply this update.

If you wish to apply the rev1 over 1.4rc2, only the files credits_plugins.php and functions_credits.php need to overwritten to complete the update. If you have not upgraded to 1.4rc2 yet, then follow the full regular upgrade/install instructions.

phpnewbie 03-12-2008 02:51 PM

pls help me:

I installed this mod, exactly, i upgraded it from VbCredit 1.3
but the "Award Credit" button was not show in the Postbit (because the condition="$show['credits_postadd']")

however, i don't know how to resolve this problem. I have Enable this Mod, all feartures are still working well, expect Add Gain / Lose Credit for member per post...

thanks for your helping

Darkwaltz4 03-12-2008 05:14 PM

in 1.4, the post award system has been expanded. they are now the latter 6 options in the donations and post award system box.

to mimic the exact behavior from 1.3, set the group in question (presumably admin) to have all -1 for the 4 limiters.

the reason those are there is for people who want to allow their entire community to use the system on each other, but to keep it from getting out of hand.

if you are still having trouble understanding the new settings, ask me in a pm.

s0lidgr0und 03-14-2008 10:31 AM

My members and I have been unable to upload attachments since I've added this mod. I disabled the mod and we now have the ability to upload them again. How is this affecting this ability?

Darkwaltz4 03-14-2008 06:08 PM

please upgrade to the latest version and try again.

kotlt99 03-17-2008 11:59 AM

I'm using vbcredit 1.3.
Just want to ask:
If I still want to use vbcredit 1.3 (no Bank option), how must I do to make vbcredit 1.3 work with Ibank and stocktrader?

Where can I change field moneyrow of vbcredit table?
For example: icash is money so it works well with Ibank and Stocktrader

rooban12 03-17-2008 10:14 PM

thanks

Darkwaltz4 03-17-2008 10:58 PM

vbcredits does not and wont have the option to change the points column.

in ibank, you can change the money row in THAT to use vBCredits - use credits as the setting. im pretty sure the same thing for stocktrader, and certain for vbay.

you can use the icash -> vbcredits converter to transfer the old amount in the money column, so that you can carry on with what you are doing.

amroawad 03-18-2008 05:58 PM

I had this tool installed but I unistalled because I didnt use it.

So I have unistalled the xml file.
And I deleted the files on the server.

Do I also have to delete the script edits in the templates or does that go automatically when you uninstall the xml file???

Thanks

Darkwaltz4 03-18-2008 06:10 PM

unless you were using TMS, youll have to remove the template edits.

cheat-master30 03-18-2008 06:10 PM

Remove them, even though they don't have much effect without the modification.

amroawad 03-18-2008 06:15 PM

But I can't seem to find all edits? For instance to begin in the nav bar

amroawad 03-18-2008 06:17 PM

By the way, whats TMS?

Darkwaltz4 03-18-2008 06:29 PM

well, work backward through the installation txt file :-p if you cant find an edit, you probably put it somewhere else or never made it, in which case you should try using the template searching feature in your acp, and search for partial lines (not whole blocks) as whitespace varies widely from what i see people doing

TMS is the template modification system available here at vborg. basically allows you to manage template edits like plugins, allowing you to update vb without having to redo all of your now-expired templates.

i hope you change your mind in the future, especially after some of the addons are done :D btw, there is a vbcommerce demo on the official vbcredits site if anyone hasnt seen it yet :)

amroawad 03-18-2008 06:51 PM

No problem mate and thanks for good backup and I maybe in the future ;)

wicked80 03-19-2008 03:58 AM

Hi Friends,
I tried installing this great mod on my 3.7.0 beta 5 version site and everything went smooth, except the "check" link in the navbar is throwing this error:
Code:

An appropriate representation of the requested resource forum/credits.php could not be found on this server.
I searched on google and came across this thread which says mod_security rules cause these types of errors and i followed the steps as specified here:

http://www.vbulletin.com/forum/showthread.php?t=197290

But then i started getting "Internal Server Error". So for the time being i have disabled those links in the navbar i.e.:
Code:

[<a href="credits.php?$session[sessionurl]do=banking">$vbphrase[check]</a>]<if condition="$show['credits_purchase']"> [<a href="credits.php?$session[sessionurl]do=manage#purchase">$vbphrase[purchase]</a>]</if>
I dont' know which other links point to the credits.php class and i hope they might be failing as well.

So, I would appreciate if someone can give me some resolution to this issue.

Thanks

kotlt99 03-19-2008 03:58 AM

Thank you, Darkwaltz4 for your help

Just 1 more question:

Where can I set the amount that members can get when make a thread, reply and get from characters?

I've forgot where to change them T_T

Darkwaltz4 03-19-2008 04:12 AM

Quote:

Originally Posted by wicked80 (Post 1468427)
Hi Friends,
I tried installing this great mod on my 3.7.0 beta 5 version site and everything went smooth, except the "check" link in the navbar is throwing this error:
Code:

An appropriate representation of the requested resource forum/credits.php could not be found on this server.
I searched on google and came across this thread which says mod_security rules cause these types of errors and i followed the steps as specified here:

http://www.vbulletin.com/forum/showthread.php?t=197290

But then i started getting "Internal Server Error". So for the time being i have disabled those links in the navbar i.e.:
Code:

[<a href="credits.php?$session[sessionurl]do=banking">$vbphrase[check]</a>]<if condition="$show['credits_purchase']"> [<a href="credits.php?$session[sessionurl]do=manage#purchase">$vbphrase[purchase]</a>]</if>
I dont' know which other links point to the credits.php class and i hope they might be failing as well.

So, I would appreciate if someone can give me some resolution to this issue.

Thanks

first, make sure you are applying the installation for vb3.7, this is the vb3.6 version. (the link is in the top post at the top ;)) make sure you are using rc2. check that the credits.php file is uploaded to your forum root folder. if you are using a hack which is not in your forum root folder (cmps pages and the galleries are common examples) your links in the navbar will be wrong - edit the navbar template to include your whole forumpath.

Quote:

Originally Posted by kotlt99 (Post 1468428)
Where can I set the amount that members can get when make a thread, reply and get from characters?

usergroup settings :)

please continue any further support in the 3.7 version thread if you are using the 3.7 version :D thanks

xHLHx Darkskilz 03-20-2008 10:47 AM

Quote:

Originally Posted by xHLHx Darkskilz (Post 1460774)
When I log in as a admin in not having that problem

But when a register user logs in he'll get the same msg.


Fatal error: Field credits is not defined in $validfields in class vB_DataManager_User in /includes/class_dm.php on line 485

Quote:

Originally Posted by Darkwaltz4 (Post 1460814)
people having trouble with the $validfields thing, try this:

in the plugin manager, replace the entire code contents of the
vBCredits - Define User DM Fields

with the following
PHP Code:

$this->validfields['credits'] = array(TYPE_NUMREQ_NO);
$this->validfields['credits_canearn'] = array(TYPE_BOOLREQ_NO);
$this->validfields['credits_canspend'] = array(TYPE_BOOLREQ_NO);
$this->validfields['credits_numrefs'] = array(TYPE_UINTREQ_NO);
$this->validfields['credits_saved'] = array(TYPE_NUMREQ_NO);
$this->validfields['credits_score'] = array(TYPE_INTREQ_NO);
$this->validfields['credits_interest'] = array(TYPE_UNIXTIMEREQ_NO); 

as for using this in a writing forum, you can make heavy use of the postsize award, so that users earn more for writing more, not necessarily often :-p but depends what you want to award them with

also, anyone interested in the changelog between 1.4rc1 and 1.4rc2, its been posted here
http://www.vbcredits.com/forum/showthread.php?t=1177

Can i also uninstall and than re-install it? Do you think that will work? Because i dont get it what i need to you (you quote)

Darkwaltz4 03-20-2008 11:50 AM

Darkskilz - ignore those instructions, and download rev1 from the first post. To update rc2 to rev1, simply upload the credits_plugins.php and functions_credits.php to their corresponding locations on your server, and youre done, and your problem will go away :)

xHLHx Darkskilz 03-20-2008 01:03 PM

Think it worked, thanks.

EDIT: Is there a way disable bank and loans?

Darkwaltz4 03-22-2008 05:56 AM

to disable savings and loans, set a limit of 0 for maximum savings and maximum loans respectively, in the usergroup settings

Redeyedevil 03-23-2008 04:39 AM

Thanks i hope it will be intergrated to vbux

cdanik 03-27-2008 04:49 PM

Why does it show two point counters everywhere? On every post below usernames, it appears twice.

Darkwaltz4 03-27-2008 05:09 PM

Quote:

Originally Posted by Redeyedevil (Post 1472253)
Thanks i hope it will be intergrated to vbux

well, i dont know about the new version, but the old one had the ability to change the points row, and you could put 'credits' to make it use vbcredits..

Quote:

Originally Posted by cdanik (Post 1476004)
Why does it show two point counters everywhere? On every post below usernames, it appears twice.

you probably have tms installed, but made the manual template edits as well. or you pasted twice.

cdanik 03-27-2008 05:23 PM

I have TMS Installed, I don't think I did it twice. Though I did press rebuild twice I think. How do I fix it?

Darkwaltz4 03-27-2008 05:33 PM

using the installation instructions as a guide, go through your templates looking for the code you are supposed to be adding. if you find any of it, remove it. tms applies the template edits ON TOP of the regular templates, so the additions made by tms will be invisible in the editor, meaning what IS in there is actually a duplicate

cdanik 03-27-2008 05:48 PM

I never did any manual editing of files though. Was I supposed to put the modifications in the Master style, default style, or both?

Darkwaltz4 03-28-2008 03:40 AM

template edits, not file edits

MiahBeSmokin420 03-30-2008 04:06 AM

Transaction Alerts
Enabling this option will send a private message to users who receive credits outside of normal earning means. Please input the username of the user that these PMs are to be sent from. To alter or translate these messages, use the following links:

Ya them links that are right there

they dont work and as a matter of fact the phrases are not even in vb after the install

fix please ???

Darkwaltz4 03-30-2008 04:29 AM

aha, actually they are still there but the links are outdated (i since moved the phrases in question out of global and into vbcredits_global :-p)

so, for now you can search for phrase variables based on hovering over the old link, and e[global][something], search for the somethings.. :-p


All times are GMT. The time now is 10:28 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.03022 seconds
  • Memory Usage 1,851KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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