Thank you for your attention on this one. I still have access to the download area and I did re-upload all files and tested it.
1. The issue where user is charged 2x for creating new thread seems to be fixed.
2. However clicking on the post PREVIEW link charges the user again and it does it as...
Unfortunately that didn't fix anything. My forum still charges for post editing and hitting the Preview button. Perhaps you should write your instructions more clearly, you have some extra " } " in your code that wasn't there originally, but you wanted it replaced (marked in red):
if...
You must be using some different version of VBcredits, I'm using ver2 for VB 4.1.2 and the first part of your code does not exist:
VBCREDITS::apply($thread->vbcredits, $thread->fetch_field('threadid'));
Instead I got this:
$threadid = $thread->fetch_field('threadid')...
Thank you. On the testing forum I only have one Thread event, on the live site there are two. Both installations behave the same way. The above example is from a testing forum with only one Thread event with correctly set Thread amount and Thread Negation Amount to 50. Perhaps I'm the only one...
Ok, here is an example. I created a user with 500 Credits.
- user created a thread; log shows "spent 50" (450 left)
- user edited the same thread; log shows "earned 50" (400 left)
- user edited the same thread; log shows "earned 50" (350 left)
- user edited the same thread; clicked on...
I understand the theory behind this, but no, the user was charged 50 Credits even for editing only, while their log shows they earned 50. The log is correct and the real Credit count is not. So I have to manually adjust their Credits every time they post the thread, because they are 50 Credits...
I set up activity THREAD to charge users 50 Credits when posting new thread in certain area of the forum.
I'm getting inconsistent results when the same person is first time charged 100 Credits which is double the amount while transaction history still only shows -50 Credits. When I posted...
activity
admin
amount
bug
button
color
count
currency
database
different
double
download
error
event
forum
forumid
instance
issue
link
lite
live
more
new
news
only
php
post
pro
ten
test
thread
threads
track
update
updates
upgrade
upload
url
user
vbcredits
vbcredits ii
vbshop
vbulletin
version