Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Amount on URL
#1

I need to do php modification simple with this plugin.
I hope you understand me
as I can put the amount of points that will be sent in the URL?

example, I want to do this:
newpoints.php?action=donate&uid=1&amount=10

anyone know how?
#2

It is done on purpose so members can't trick other members. You sure you want to do it?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

I think ...
but yes, I need to do that on my forum ._.
#4

Ok then.

In template newpoints_donate
Replace:
<input type="text" name="amount" value="" class="textbox">

With:
<input type="text" name="amount" value="{$amount}" class="textbox">

In /newpoints.php
Find:
$plugins->run_hooks("newpoints_donate_start");

Add below:
$amount = floatval($mybb->input['amount']);
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

great!, it will me serve much...
but this serves to put in the url you put the amount in the "input", but if I would serve most to at put the url automatically give the points ... it would be so much to ask?, if not so okay xD hehe

thanks!
#6

Well that's an even bigger security it issue.
I could simply post a link saying "Click here to find who's John Doe" and the link would point to the donate page with an amount of 100,000 and if the the user who clicked it had that amount of points they'd get donated to me.

That's something I won't tell you how to do it since it's not reasonable at all
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.




Users browsing this thread: 1 Guest(s)