2011-05-06, 01:10 PM
2011-05-07, 09:21 AM
(2011-05-06, 01:10 PM)superflo8 Wrote: [ -> ]it doesnt work...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.)
i type in: 1000
and: 0,007€
and it shows me 0,00 $ at buy.php (also on the paypal page)
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.
2011-05-07, 11:50 AM
Do we need to edit the files too?
2011-05-07, 08:01 PM
and how could i change the currency in Euro?
2011-05-08, 01:46 PM
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?
2011-05-08, 02:30 PM
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."
"Buy credit points using Paypal or SMS - Fortumo. This mod can be integrated with NewPoints, MyPS or Image Points."
2011-05-08, 03:03 PM
now... how could i use euros instead of Dollar? ($ -->€)
2011-05-08, 03:57 PM
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...
2011-05-08, 05:16 PM
please help me with my euros dollar problem
ok, i got it...
i had to add somtehing into the buy.php
ok, i got it...
i had to add somtehing into the buy.php
2011-05-13, 08:39 PM
(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?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 problemIf you like to do this please edit the file buy.php and search these lines:
ok, i got it...
i had to add somtehing into the buy.php
$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>";