MyBB Community Forums

Full Version: Buy Credit v1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
it doesnt work...

i type in: 1000
and: 0,007€

and it shows me 0,00 $ at buy.php (also on the paypal page)
(2011-05-06, 01:10 PM)superflo8 Wrote: [ -> ]it doesnt work...

i type in: 1000
and: 0,007€

and it shows me 0,00 $ at buy.php (also on the paypal page)
Yes, you are right. The problem it is caused by MySQL database. Your field, where points are set, have structure set to DECIMAL(10,2) (that means 2 digits, and you have 3.)
1. Deactivate plugin.
2. Search in buy_credit.php (from inc/plugins folder)
`amount` DECIMAL(10,2) NOT NULL,
and replace 2 with 3.
Then, search :
`points` DECIMAL(10,2) NOT NULL,
and replace 2 with 3.
3. Activate plugin.
4. Now, everything should work.
Do we need to edit the files too?
and how could i change the currency in Euro?
I'm trying to use this mod with MyPlaza Turbo, I set the table to Money, it worked at first and suddenly it's not working anymore... I have no decimals on my board's currency, help? PLEASE? Sad
It will not work with it in my opinion, mihu said in the mod database of mybb
"Buy credit points using Paypal or SMS - Fortumo. This mod can be integrated with NewPoints, MyPS or Image Points."
now... how could i use euros instead of Dollar? ($ -->€)
But it doesn't say that it can ONLY be integrated with those, and again, it did work at first, and suddenly it wont work now... I'd be willing to pay to get this to work flawlessly...
please help me with my euros dollar problem
ok, i got it...
i had to add somtehing into the buy.php
(2011-05-07, 11:50 AM)zZJoennZz Wrote: [ -> ]Do we need to edit the files too?
It is recommended.
(2011-05-08, 01:46 PM)Riggedid Wrote: [ -> ]I'm trying to use this mod with MyPlaza Turbo, I set the table to Money, it worked at first and suddenly it's not working anymore... I have no decimals on my board's currency, help? PLEASE? Sad
It is very strange how it worked first time and then no. Be sure that the MySQL field is decimal(10,2). Can you give me more details? Do you have an error_log file on your host?

(2011-05-08, 05:16 PM)superflo8 Wrote: [ -> ]please help me with my euros dollar problem
ok, i got it...
i had to add somtehing into the buy.php
If you like to do this please edit the file buy.php and search these lines:
$form = '
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="'.$mybb->settings['buy_credit_email_paypal'].'" />
<input type="hidden" name="item_name" value="'.$name.'" />
<input type="hidden" name="item_number" value="'.$mybb->user['uid'].'" />
<input type="hidden" name="image_url" value="'.$theme['logo'].'" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="notify_url" value="'.$mybb->settings['bburl'].'/dobuy.php" />
<input type="hidden" name="return" value="'.$mybb->settings['bburl'].'/" />
<input type="hidden" name="cancel_return" value="'.$mybb->settings['bburl'].'" />
<center><input type="image" src="images/paypal_button.gif" border="0"  name="submit"alt="Make payments with PayPal - it’s fast, free and secure!" /></center>
</form>'; 
After this line :
<input type="hidden" name="item_number" value="'.$mybb->user['uid'].'"/> 
add
<input type="hidden" name="currency_code" value="EUR">
Also you have to do another change!
Search this line in the same file :
$options.="<option value='$price'>$amount $name ($price $)</option>"; 
and replace it with :
$options.="<option value='$price'>$amount $name ($price euro)</option>"; 

Pages: 1 2 3 4 5