Team_LX 3 Posted January 15, 2015 Report Share Posted January 15, 2015 Seems to have issues with the newest update of ubot when i run the locker desktop and lock the program it screws everything up anyone else having this issues with latest update of ubot ??? Quote Link to post Share on other sites
neutralhatter 0 Posted January 15, 2015 Report Share Posted January 15, 2015 Hi, I'm still running the first version of ubotlocker. Where can i find the latest update and is there an update.php file that keeps the existing data intact? Thank you, Quote Link to post Share on other sites
meter 145 Posted January 15, 2015 Author Report Share Posted January 15, 2015 Hi Team_LX, can you please describe problem? Hi neutralhatter, sending you a PM -meter 1 Quote Link to post Share on other sites
Team_LX 3 Posted January 15, 2015 Report Share Posted January 15, 2015 Hi Team_LX, can you please describe problem? Hi neutralhatter, sending you a PM -meteri just sent you a private message i can make a video if need be Quote Link to post Share on other sites
meter 145 Posted January 15, 2015 Author Report Share Posted January 15, 2015 Thank Team_LX! -meter Quote Link to post Share on other sites
Digital101 4 Posted January 17, 2015 Report Share Posted January 17, 2015 Hey meter have a question. Since we can add multiple bots to the same project can they share the same locker and license files or do they all need to be in separate folders? Thanks Quote Link to post Share on other sites
meter 145 Posted January 17, 2015 Author Report Share Posted January 17, 2015 Hi Volund, They must all be in separate folders. -meter Quote Link to post Share on other sites
Digital101 4 Posted January 18, 2015 Report Share Posted January 18, 2015 Hey Meter Having a bit of a problem. I went to log in to the admin area this morning and I am not able to get in. Basically nothing happens at all and there are no error messages or anything, the screen just does a little flash when I click on the login button. It was working fine yesterday and now nothing. Thanks Quote Link to post Share on other sites
Team_LX 3 Posted January 18, 2015 Report Share Posted January 18, 2015 Does anyone here have tut on how to add sendgrid too ubotlocker ?? or has done this as doesn't mine sending it over too me thanks Quote Link to post Share on other sites
FMG 0 Posted January 18, 2015 Report Share Posted January 18, 2015 Okay, I have a challenge on the licensing that I can't figure out how to implement. If I need to ask the question in another forum that is fine. Here goes...I want to be able to offer trial versions of my bots using UBotLocker and have the license keys expire some way after a set time. If the person wants to purchase the bots, I can reset/reactivate their key after successful purchase or something similar. Any suggestions on how to get a trial functionality working or programatically disable the license after a certain time? Thanks Quote Link to post Share on other sites
kev123 132 Posted January 18, 2015 Report Share Posted January 18, 2015 check back through the thread there's a addon that someone has shared to do this. May need some knowledge to get working. Quote Link to post Share on other sites
meter 145 Posted January 18, 2015 Author Report Share Posted January 18, 2015 Hey Meter Having a bit of a problem. I went to log in to the admin area this morning and I am not able to get in. Basically nothing happens at all and there are no error messages or anything, the screen just does a little flash when I click on the login button. It was working fine yesterday and now nothing. Thanks Hi Volund, This might happen sometimes if your host updated PHP and broke the sessions addon. Basically UbotLocker is unable to find cookies to authenticate you as logged in, so that's why you're seeing that. -meter Quote Link to post Share on other sites
Digital101 4 Posted January 19, 2015 Report Share Posted January 19, 2015 Hi Volund, This might happen sometimes if your host updated PHP and broke the sessions addon. Basically UbotLocker is unable to find cookies to authenticate you as logged in, so that's why you're seeing that. -meter I am on a dedicated box no php update has been done, currently running PHP 5.4.29. Now that I know to look for a sessions/cookie issue I will see if I can track it down. Quote Link to post Share on other sites
meter 145 Posted January 19, 2015 Author Report Share Posted January 19, 2015 It's 100% a cookie/sessions issue, either sessions for PHP aren't working, or cookies are not being saved by your browser. It's weird that a PHP update didn't cause this. You can open CheckLogin.php and try changing this: //session_register("myusername"); //session_register("mypassword"); //session_register("id"); session_start(); $_SESSION['myusername'] = $myusername; $_SESSION['mypassword'] = $mypassword; $_SESSION['id'] = $id; To this: session_register("myusername"); session_register("mypassword"); session_register("id"); //session_start(); //$_SESSION['myusername'] = $myusername; //$_SESSION['mypassword'] = $mypassword; //$_SESSION['id'] = $id; That might help, but I doubt it... especially if you're running PHP 5.4.29. -meter Quote Link to post Share on other sites
Team_LX 3 Posted January 19, 2015 Report Share Posted January 19, 2015 Meter do you have a tut on how to integrate sendgrid into the system or i know a few pages pack you had talked about adding support for using stmp etc... Quote Link to post Share on other sites
meter 145 Posted January 19, 2015 Author Report Share Posted January 19, 2015 Sorry dude, that's not something i have done, although I recall some people posted code samples in this thread. I am looking into adding smtp support to UbotLocker yes. -meter Quote Link to post Share on other sites
Digital101 4 Posted January 20, 2015 Report Share Posted January 20, 2015 I figured it out. I made some changes to the .htaccess file in the root of my domain and while I checked to make sure nothing was broken in the main part of the site I did not check the locker folder. Once I removed some of the changes it started working just fine. It is a bit odd as I do not see why it broke the sessions but I will play with it when I have more time and see if I can figure out exactly what is going on with it. Quote Link to post Share on other sites
Pete_UK 9 Posted January 20, 2015 Report Share Posted January 20, 2015 Can UbotLocker do this? ....... I want to give the buyer access to a bot for 48 hours only. Scenario is... BUY (payapl / jvzoo etc..)Issue license automaticallyUser uses the bot for 48 hoursLicense is automatically deactivated after 48 hours How can I do this? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted January 20, 2015 Report Share Posted January 20, 2015 set a custom ipn file to set the license details in db, with a log to a new column for current time (i prefer linux timestamp) then have a cron run hourly or however often as needed, to check if that timestamp + days (86400 * days) is less than current time and set to disabled for status if you want to hire me to build the ipn file and whats needed for this to happen let me know.skype: emw-dgnemail: admin@botguru.net Quote Link to post Share on other sites
Team_LX 3 Posted January 20, 2015 Report Share Posted January 20, 2015 So I was having a hard time with email deliverability with the licenses (no fault to ubotlocker but my host) so I switched over to sendgrid for that. 250 emails a day for free so not too bad. There are multiple ways to integrate with sendgrid but since I am on a shared hosting environment I went with this way. //Sendgrid stuff $from = 'noreply@$siteUrl'; $url = 'https://sendgrid.com/api/mail.send.json'; $fields = array( 'to' => urlencode($payerEmail), 'subject' => urlencode($subject), 'from' => urlencode($from), 'text' => urlencode($body), 'api_user' => urlencode("xxxxxxxx"), 'api_key' => urlencode("xxxxxxxxxxxxxxx") ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //execute post $result = curl_exec($ch); //close connection curl_close($ch); Just put that in your PaymentNotify.php and MailLicense.php and comment out the mail();i tired to set this up but still not working correctly at all ??? any help would be great Quote Link to post Share on other sites
Pete_UK 9 Posted January 22, 2015 Report Share Posted January 22, 2015 Hi Meter, I've setup Paypal as per instructions and the issuing of licenses works fine, but on testing refunds of 1-time purchase and subscription cancellations I see the license keys remain active for the users. Isn't the system suppose to deactivate the user license? Is there something special I have to do to get this working? Also, is it possible to log the transaction amount in the Paypal Log? Pete 1 Quote Link to post Share on other sites
meter 145 Posted January 22, 2015 Author Report Share Posted January 22, 2015 I Pete, UbotLocker doesn't currently log the transaction amount. Also, the license will expire when the subscription expires, not when it is cancelled. For example, if someone buys a 1 year subscription, then cancels the subscription 3 days later (but doesn't request a refund) then the license will expire when the subscription expires (in 1 year, NOT the data of cancellation). As for refund, this depends on the IPN protocol. For Paypal, they do not reliably report refunds through their IPN, so you must delete the licenses by hand. -meter 1 Quote Link to post Share on other sites
Pete_UK 9 Posted January 28, 2015 Report Share Posted January 28, 2015 Hi Meter, Is it possible to forward the Paypal IPN onto another url endpoint such as aweber/mailchimp? If so, can you give some pointers? Alternatively I could get paypal to send the IPN to a php script which could then forward onto ubotlocker & any other service I want. Will ubotlocker accept ipn's this way? ... any issueseo you see in the logic or ubotlocker? Quote Link to post Share on other sites
meter 145 Posted January 28, 2015 Author Report Share Posted January 28, 2015 Hi Pete, UbotLocker can accept forwarded Paypal IPNs without any problem. Also, UbotLocker can be recoded to forward an IPN. You would want to look into using curl from PHP to repost the IPN parameters to a new url. -meter 1 Quote Link to post Share on other sites
Pete_UK 9 Posted January 28, 2015 Report Share Posted January 28, 2015 Thanks Meter Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.