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)

Darkwaltz4 03-09-2008 01:12 AM

you should switch back to the original bitfield_vbulletin.xml file.

however, it wouldnt be a database error you would get..

if its still not working pm me login details and ill make sure its all good

romanticyao 03-09-2008 02:37 AM

hello, i've found a bug,

To avoid {1} {2} penalty for each active loan, you must pay back at least the minimum in each amount column by {3}. You can initiate automatic payments by entering a number of days, or use 0 for single payments. These can be changed or stopped at any time by entering a new number.

{3} shows as 1970-01-30

romanticyao 03-09-2008 04:04 AM

nvm, just need to run cronjob

Darkwaltz4 03-09-2008 05:27 AM

:-p well, actually refreshing the page should have been enough.

you see, due to mysql limitation, i had to make interest be individual and not global... (i had such an awesome query too!! :()

so now each user has a timestamp, and the forum has a timestamp, and those are constantly bouncing off against each other

when starting out, users have the timestamp of 0.. which was in 1970 :-p

reifegerste 03-09-2008 11:03 AM

Hi since the update i can't see the addpost Button.

I have changed any templates and the options in the Usergroup are correct

Moderate Post Awards yes
and
Can Award Negative Amounts yes

Sorry my english is not so good ;)

Can any help me to find a solution?

Cuu
Lars

Darkwaltz4 03-09-2008 04:17 PM

do you mean the reply button vanished, or the post award icon vanished?
if the icon vanished, make sure you set nonzero limits for the post award system for your usergroup (presumably admin)

if youre still having trouble, pm me an admin login

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

Magz 03-09-2008 06:26 PM

Ive had to temporarily disable vbcredits. Ive had several users tell me via msn they couldnt acces my site. The got a white page with the following:

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

I really want to get this mod up and running again, any ideas?

regards

WildWeb 03-09-2008 07:05 PM

Quote:

Originally Posted by Magz (Post 1460914)
Ive had to temporarily disable vbcredits. Ive had several users tell me via msn they couldnt acces my site. The got a white page with the following:

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

I really want to get this mod up and running again, any ideas?

regards

Same here! I even personally got the error when loggin into vbcredits.com site to report it. I sent an email to the admin...no reply as of yet.

cheat-master30 03-09-2008 07:06 PM

I just disabled all hooks in the config file, then re enabled and it worked when that happened to me.

Darkwaltz4 03-09-2008 09:49 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); 


petacat 03-10-2008 03:18 AM

Quote:

Originally Posted by Magz (Post 1460914)
Ive had to temporarily disable vbcredits. Ive had several users tell me via msn they couldnt acces my site. The got a white page with the following:

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

I really want to get this mod up and running again, any ideas?

regards

Simple workaround for this. Press backspace and the forum appears correctly.

romanticyao 03-10-2008 06:06 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1460516)
:-p well, actually refreshing the page should have been enough.

you see, due to mysql limitation, i had to make interest be individual and not global... (i had such an awesome query too!! :()

so now each user has a timestamp, and the forum has a timestamp, and those are constantly bouncing off against each other

when starting out, users have the timestamp of 0.. which was in 1970 :-p

well, in fact refreshing didn't do anythin...

Darkwaltz4 03-10-2008 06:49 AM

romanticyao, is it working for you now though?

Darkwaltz4 03-11-2008 07:06 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.

madotds 03-11-2008 07:10 AM

Hi thank you for the update. I am running 3.7 beta 5 and have installed this mod.

Everything seems fine apart from the credits don't show up anywhere :( I have all the settings in acp and all the template mods in TMS seem to be working when I do a "test template modifications" test

Any Ideas would be great

MyBoard

cheat-master30 03-11-2008 08:41 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1462093)
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.

Even though I fixed it for me, I'll try for the sake of another member on my site who gets the $validfields error.

Darkwaltz4 03-11-2008 08:55 AM

madotsds - check your visibility settings. also check to make sure you didnt set your usergroup (presumably admin) to be excluded from vbcredits :-p common mistake

if youre sure your settings are good, pm me an admin login with style perms

madotds 03-11-2008 09:22 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1462131)
madotsds - check your visibility settings. also check to make sure you didnt set your usergroup (presumably admin) to be excluded from vbcredits :-p common mistake

if youre sure your settings are good, pm me an admin login with style perms

Darkwaltz4

Thank you for your quick reply. Yes stupid me it was my admin permissions. I realized when i logged in as another member and could see the credits!!

Just one last thing though if you don't mind? I do not see the credit image displayed anywhere on my forum but unlike the screen shots i have a link "check" by the credits in the nav bar is this right? also the links for donate in the post bits are in text form?

cheers

Darkwaltz4 03-11-2008 09:46 AM

pixelfx hasnt finished making the screenshots yet >.<

the credit icon only appears when you have the post award system activated

and yes the donate link is text form now :)

madotds 03-11-2008 10:04 AM

Quote:

Originally Posted by Darkwaltz4 (Post 1462144)
pixelfx hasnt finished making the screenshots yet >.<

the credit icon only appears when you have the post award system activated

and yes the donate link is text form now :)

Ok thank you very much for the help

madotds

cheat-master30 03-11-2008 12:55 PM

Thanks for updating the modification, once done, the member on my own site who couldn't login could login again...

cygy2k 03-11-2008 04:17 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1462093)
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.

Do we also need to change back what you had us change for the credits DM user plugin if we're upgrading from rc2?

Darkwaltz4 03-11-2008 10:43 PM

no; since you fixed it with the previous little patch, you shouldnt be getting $validfield errors anymore :-p and so dont need to apply rev1.

but if you did do the patch, and want rev1 (which also fixes the problem of any plugins failing to execute [which is what the validfields error was an extension of], as well as a very trivial divide by zero potential error) then go ahead and import the product file again along with copying those two edited files :-p and thats it.

rolandogomez 03-11-2008 11:17 PM

I just want to state, I'm using the pro versions of this product along with a few other add-ons, on VB3.7B6 and not only does it work great, but the support is fantastic. Love it, for demo, please visit http://www.shotcritic.com/forums/ Thanks, rg sends!

romanticyao 03-12-2008 01:25 PM

I installed RC2 as soon as its released and running without problem, should I upgrade to rev1?

BBF 03-12-2008 03:58 PM

hello,
i was install this mod (1.4rc2) with VB 3.7 Beta 6.
when i enter to some threads that other users open i get this error:

Code:

Warning: Division by zero in /includes/functions_credits.php on line 28

Unable to add cookies, header already sent

File: /home/root1/domains/root.co.il/public_html/forums/includes/class_core.php
Line: 3189

but if i enter to my own threads it's work fine.

so, what can i do to solve this problem?

*sorry for my bad English.

Darkwaltz4 03-12-2008 05:21 PM

romanticyao - you only need to apply rev1 if you are getting a database error about missing column credits_interest, or if users on your board are getting login errors that deal with $validfields. if none of that is happening, you dont need to worry about the little update.

BBF - in the main vbcredits setting is the number of valid referrals per referral point. you have it set to 0. it should be 1 or higher. (i forgot to put a thing to validate that particular setting). if you dont want to award for referrals, make sure the award amount in the usergroup options is 0, not that global setting.

BBF 03-13-2008 09:22 AM

ok, thanks.
it's works fine now :)

bertwrld 03-15-2008 06:06 PM

Hello

There seems to be a conflict between this hack and vbportal, it was all working fine until the new rc2, then my portal went blank.

HybridIllusions 03-15-2008 06:48 PM

You know, when Darkwaltz4 makes a credits mod, he's not fooling anyone! Anything involving "credits" (except the store mod, soon to come), its in here! Crazy amount of ways to award credits, Bank, Loans, Lottery (Drawings), Donations... Just about anything you can think of (or in my case, all I could think of!)!!!

Anyways, great job and I was waiting for a 3.7 version <3 Even if still a RC stage, it's worth it.

Darkwaltz4 03-15-2008 08:33 PM

:D thanks, i just hope that its quality helps my case in it taking so long

bertwrld - do you have error display on for your server? there might be an error that you cant see. in either case, pm me an admin login and i will help you out. if possible, please open a support ticket on my site so i can maintain a trackable conversation with you :)

romanticyao 03-16-2008 07:17 AM

thanx for your answer

wicked80 03-20-2008 01:18 AM

Quote:

Originally Posted by wicked80 View Post

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.
I am using the latest release for 3.7 i.e vBCredits 1.4rc2 (rev1) vb3.7.I do have credits.php in the right place as well, for instance check this:
Works Fine:
http://www.cricfever.com/forum/credits.php

Does not Work:
http://www.cricfever.com/forum/credits.php?do=banking

I installed this before i installed CMPS and i had the same issues, so i dont think this issue has anything related to the CMPS as you can see from the link above. For sure its related to the mod_security thing i guess.
Any ideas now ... thanks again.

Darkwaltz4 03-20-2008 03:17 AM

hmm, error 406, not acceptable.

check your vbcredits templates, and revert any custom ones you have saved over a default one. if the problem persists, send me an admin login and i will poke around a bit until i find the solution :)

thanks for moving your question to this thread!

scotsmist 03-20-2008 01:04 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1465660)
:D thanks, i just hope that its quality helps my case in it taking so long

bertwrld - do you have error display on for your server? there might be an error that you cant see. in either case, pm me an admin login and i will help you out. if possible, please open a support ticket on my site so i can maintain a trackable conversation with you :)

I haven't found a moment to install your Mod and look where the conflict is. If you want any information on the vbPortal side please ask.

scotsmist 03-23-2008 02:54 PM

The reason why there is a blank portal page when using this add-on is due to the followong code at the beginning of plugins/credits_plugin.php

Code:

if (!defined('VB_AREA'))
{
        exit;
}

The page is blank because VB_AREA is not defined. vbPortal is not a VB_AREA, but it does use THIS_SCRIPT constant. Changing the above code to
Code:

if (!defined('VB_AREA') AND !defined('THIS_SCRIPT'))
{
        exit;
}

stops the exit and displays vbPortal. Looking at the add-ons code, the credits.php page has THIS_SCRIPT defined, so the above change doesn't affect this page, but I haven't any experience with the add-on to know if more testing is needed to ensure that line doesn't have unexpected results.

Darkwaltz4 03-23-2008 03:09 PM

uh, is vbportal including global.php from vb? if it did, vbarea gets defined.

the reason the vbarea conditional is there is so that the file cant be called outside of a vb powered page (directly)

i would recommend that vbportal be the one to change to be properly integrated with vb, and i dont anticipate adding that fix into later versions of vbcredits...

scotsmist 03-23-2008 03:55 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1472521)
uh, is vbportal including global.php from vb? if it did, vbarea gets defined.

the reason the vbarea conditional is there is so that the file cant be called outside of a vb powered page (directly)

i would recommend that vbportal be the one to change to be properly integrated with vb, and i dont anticipate adding that fix into later versions of vbcredits...

vbPortal doesn't include vB's global.php when viewing the portal pages hence why VB_AREA is not defined.

The code change suggestion would be the same as whats at the top of vBs init.php script. There is no need for vbPortal or add-ons to define VB_AREA if they are not in the VB_AREA, such as outside the forums.

I do not understand you not wanting to change one line of code, but this is your add-on. Thanks for your reply, I will post the one line fix at the vbPortal forum rather than users disable your add-on.

Darkwaltz4 03-23-2008 04:05 PM

well lets dissect this...

if the site shows up blank when using vbcredits, vbportal must be trying to run hooks from vbulletin.

if its running hooks from vbulletin, but not using global.php, then its integration must only be partial

if its partial, then its potentially dangerous, and they should just switch to using global.php, and everyone is happy

if i were to fix that one line, then i would be condoning and encouraging potentially dangerous partial integration with vbulletin, and by extension, vbcredits :D

i think with a hack starting with vb- it should be fully integrated. vbadvanced cmps has no issues doing it right. VB_AREA isnt that its in a "vb area" but that its in a vb-powered page. actual values set to VB_AREA include "forum" and "admin control panel", so "portal" could be acceptable... but simply not using it isnt.

scotsmist 03-23-2008 07:38 PM

Lol, that's funny but thanks anyway for your reply.


All times are GMT. The time now is 03:14 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.01966 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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