MyBB-Plugins Forums
Code not running? - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+----- Forum: Development (http://forums.mybb-plugins.com/Forum-Development)
+----- Thread: Code not running? (/Thread-Code-not-running)



Code not running? - kissu - 06-28-2017

I'll admit, I am new to php and am getting frustrated that it's server sided and not client sided :Sad I'm soon going to just call mysql queries from another language lol.

Can someone please tell me what is wrong here?

https://ghostbin.com/paste/38nrk

I used the coin flip plugin as a rough reference on the newpoints api but am just at a loss now with the lack of php I know.  I tried using ajax to call certain functions and that didn't seem to work either. Sad

Any help is greatly appreciated Smile


RE: Code not running? - Diogo Parrinha - 06-29-2017

Hi,

You need to explain what's the issue, otherwise I'm looking for a needle in a haystack Tongue

Regards,
Diogo


RE: Code not running? - kissu - 06-29-2017

(06-29-2017, 12:02 AM)Diogo Parrinha Wrote: Hi,

You need to explain what's the issue, otherwise I'm looking for a needle in a haystack Tongue

Regards,
Diogo

I'm more lost than you. My goal was to have a dice game for new points and can't figure out how to run the roll dice on a click of a button with Ajax so tried how the flip coin game worked and am just at a loss with ideas and what to do. Any help really would gen much appreciated. I know it's  horribly written php too.


RE: Code not running? - Diogo Parrinha - 06-30-2017

To run things with AJAX you need JavaScript in addition to PHP. The myAjax doesn't seem to called at all.